Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Program Checksum issue [solved]
#3
(2012-03-18, 16:00:46)Mikael Gustafsson Wrote: That is not expected behavior. It is supposed to fill with 0xff. Can you send me the the two hex files.
The checksum won't match anyway because the goto at 0x00 is moved to just before the boot loader and in it's a goto to the boot loader is placed.

My checksum generation and checking skips the reset GOTO at 0. The difference between MPLAB and bootloader programming is two words at 0x100 (the start of the aivt which is a gap in the hex file) and a block after the last address (excepting the config words) in the hex file. These are FFs with MPLAB and 00s with the bootloader.

I have worked around the problem by filling in the gap with this
Code:
int hexpad[2] __attribute__ ((space(prog), address(0x100)));
in the program.
Reply


Messages In This Thread
Program Checksum issue [solved] - by GerryB - 2012-03-16, 21:36:54
RE: Program Checksum issue - by GerryB - 2012-03-18, 18:19:34
RE: Program Checksum issue - by GerryB - 2012-03-18, 22:32:55

Forum Jump:


Users browsing this thread: 1 Guest(s)