Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problems in Release [solved]
#1
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:
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!


Attached Files
.txt   settings.txt (Size: 9.41 KB / Downloads: 11)
Reply


Messages In This Thread
Problems in Release [solved] - by dainesesrl - 2012-09-19, 18:27:57
RE: Problems in Release - by Mikael Gustavsson - 2012-09-19, 22:33:15
RE: Problems in Release - by dainesesrl - 2012-09-20, 10:04:43
RE: Problems in Release - by dainesesrl - 2012-09-20, 11:09:44
RE: Problems in Release - by Mikael Gustavsson - 2012-09-21, 20:18:08

Forum Jump:


Users browsing this thread: 2 Guest(s)