Madness, 18F2550!


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Join Date
    Oct 2004
    Location
    Zagreb, Croatia
    Posts
    27


    Did you find this post helpful? Yes | No

    Angry

    I'm very disappointed because I have a huge application which controls
    solar machine and it works great and my customer is very satisfied.
    Because of new features planing to add I have to migrate the whole
    design to 18F. And I am stucked for almoust a month without any success.
    The program is acting very strange - don't react on buttons, don't count time... But when I use bootloader from MCS everything WORKS as expected!
    Of course, my customer have only ICPROG they don't use bootloader so what should I do, start to write the whole application from the beginning in C?????

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default Cool down a little bit...

    Well, do as you wish... but i doubt it will solve the problem.

    At least make sure the Config fuses are correctly transfered from MCS to your XYZ programmer software and that your XYZ software is set to program those fuses.

    I'd never trusted ICPROG and ALL freebies one anyways, and guess what? I think it's the main problem here.

    When you don't use the bootloader, how do you program your PIC, In-circuit?, on a ZIFF (or else) socket? Wich programmer/interface. Is PGM tied to GND (or at very least loaded to GND)?

    Did you do a 'programming check' once it's programmed?

    Any schematic of your stuff? ... just in case.

    EDIT: i remind Malc-C already had problem programming this PIC with software like that... no coincidence at all

    EDIT #2 : ICPROG don't have the 18F2550 in it's list... at least if their wonderful website is up-to-date...
    Last edited by mister_e; - 10th February 2007 at 18:49.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by tom View Post
    Of course, my customer have only ICPROG they don't use bootloader so what should I do, start to write the whole application from the beginning in C?????
    As a stopgap, you could program chips for him, until you sort this out.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  4. #4
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Have you tried the 'exact' same config fuse settings that are in your loader file
    when programming it without the loader?
    Last edited by Bruce; - 10th February 2007 at 23:25.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  5. #5
    Join Date
    Oct 2004
    Location
    Zagreb, Croatia
    Posts
    27


    Did you find this post helpful? Yes | No

    Smile Solved finally!

    That helps Bruce!
    By careful comparision of every fuse programmed with and without bootloader I noticed some XINST=Extended Instruction Set Enable Bit which was dissabled in working version and enabled in non working version! In WinPicProgrammer this fuse is called "ENHCPU Extended CPU Enable". This fuse is related with some 18F specific data addressing techniques. To be sure that this fuse is my problem I reprogrammed several times exactly the same program (with other fuses the same) with XINST OFF and XINST ON and YES! With XINST ON the program is acting very strange and completely unfunctional. I try with programmer and with bootloader, symptoms are the same. So, dear friends, thanks everyone for help and write down in your notebook of 18FXXX' secrets following line:
    Code:
    @ __CONFIG    _CONFIG4L, _XINST_OFF_4L
    cheers!

Similar Threads

  1. 18F2550 timing
    By sstt1976 in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 22nd August 2008, 00:30
  2. Error compiling 18f2550
    By sirvo in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 13th May 2008, 23:22
  3. 18f2550 + 24lc512
    By mpardinho in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 20th December 2007, 22:02
  4. 18f2550 'access is denied' USB error?
    By Giulio in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 30th December 2006, 14:29
  5. 18F2550 config fuses, is my setup OK?
    By peu in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 28th July 2006, 03:48

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts