This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Debugging application starts bootloader

Hello,

i a have a problem debugging application with bootloader installed. I work with GCC for the application.

What is happening is the following: If i program application with DFU, and then lauch Eclipse debug it works. But if i do some changes in the code, rebuild and debug, the device goes into DFU, and i get an error in gdb

"No source available for 0x00".

If i flash new application with DFU i can debug again. If no bootloader installed everything works fine. I'm using SDK 13.

Is this a correct behaviour?

Thank you

Parents
  • The bootloader keeps a checksum (CRC) of the application when it is flashed via DFU. When you change the application later via SWD, the bootloader - which runs on reset before the app - checks this CRC and refuses to start a modified program.

    Workaround: Flash the bootloader anew, too. The default bootloader settings page contains a blank CRC value that would fit any application program flashed via SWD.

Reply
  • The bootloader keeps a checksum (CRC) of the application when it is flashed via DFU. When you change the application later via SWD, the bootloader - which runs on reset before the app - checks this CRC and refuses to start a modified program.

    Workaround: Flash the bootloader anew, too. The default bootloader settings page contains a blank CRC value that would fit any application program flashed via SWD.

Children
Related