Program was working until I messed around with ICD


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,615


    Did you find this post helpful? Yes | No

    Default

    Hi,

    Overwriting the bootloader when loading the chip WITH the bootloader should be pretty hard to do. As long as you DEFINE LOADER_USED 1 (which you have done) it should tell you if your program is growing too big and "into" the region of the bootloader.

    Verifying that the bootloader IS in the chip is done with your programmer and its software. Usually the programmer/software automatically verifies after programming but it should be possible to "manually" issue a verify. Put the chip in, open the 16F876A_04.hex (or whatever) and run verify. (I'm not familiar with your particular programmer though...)

    When you ICD Compile and program the compiled code is different from when you Compile and program. However, simply doing a normal Compile and program should work. The fact that the bootloader software doesn't see the PIC reset indicates something might be up with the serial connection to the PC. Check and recheck that everything is OK on that part (correct serial port selected, MAX232 etc wired correctly).

    You could also try to load the .hex of YOUR program with the U2 programmer and see if it works then. If it does you KNOW that it's something with the bootloader and/or connection and NOT with the PIC itself.

    /Henrik.

  2. #2
    Join Date
    Mar 2010
    Location
    Los Angeles, CA
    Posts
    13


    Did you find this post helpful? Yes | No

    Default

    Thank you for your reply, Henrik.

    I was able to successfully load my program using the U2 programmer and the circuit works correctly, so it's definitely not the programmer, as you suggested.

    I didn't mess with the serial connection or change COM port or settings, but I'll check again just to rule it out. I did change the baud rate of the COM port in an attempt to get it working, so maybe that's not consistent; I'll check that too.

    Were the steps I took to load the bootloader correct?

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