2012-09-19, 18:27:57
(This post was last modified: 2012-12-22, 14:12:19 by Mikael Gustavsson.)
Hi,
I'm trying to make your bootloader work on my hardware but I'm having a very strange issue (IMHO).
The bootloader runs and works perfectly if I compile it in debug mode (The little green arrow and pink square toolbar button in mplabx, the one right before the program counter indicator) but if I compile it in release it isn't working.
It compiles and program the mcu, but when I try to load a hex file trough the ds30Loader gui i get write verification errors as soon as it tries to write something.
This is the gui output:
I disabled any write code protection through the linker configuration gui and through the configuration bits in the code.
I attach my settings.inc file.
I'm using a PIC24HJ256GP610 on a custom board running at 40MHz with a 8 MHz crystal just like the explorer16 demo board.
Does anyone have an idea about what's happening?
Thank you!
I'm trying to make your bootloader work on my hardware but I'm having a very strange issue (IMHO).
The bootloader runs and works perfectly if I compile it in debug mode (The little green arrow and pink square toolbar button in mplabx, the one right before the program counter indicator) but if I compile it in release it isn't working.
It compiles and program the mcu, but when I try to load a hex file trough the ds30Loader gui i get write verification errors as soon as it tries to write something.
This is the gui output:
Code:
Initiating write...
Creating port: High-Speed USB Serial Port (COM13)
Opening port High-Speed USB Serial Port (COM13)@19200
Searching for bl .
Found PIC24HJ256GP610 fw ver. 4.0.3
Bootloader placement/size: 1/1
Waiting for the boot loader to be ready...ok
Hex file successfully parsed in 0ms
Writing flash....
Erasing page 0 @ 0x0000...ok
Writing row 0 @ 0x0000...verification error, try 1, verification error, try 2, write failed
Write flash failed
Closing port
Tx 601 bytes / Rx 8 bytes / 0,6s
Write failed
I disabled any write code protection through the linker configuration gui and through the configuration bits in the code.
I attach my settings.inc file.
I'm using a PIC24HJ256GP610 on a custom board running at 40MHz with a 8 MHz crystal just like the explorer16 demo board.
Does anyone have an idea about what's happening?
Thank you!