cancel
Showing results for 
Search instead for 
Did you mean: 

SBSFU combined elf - application erased by bootloader

MBirk.1
Associate II

I am trying to run a debug session with the built application which is built upon the secure bootloader. Note: All security mechanisms are disabled for debugging purposes.

The issue seems to be the combined elf file. Loading this using a debugger, the target boots up into the bootloader. The bootloader does not find a valid application in the master slot and erases the flash, since it is not empty and asks for an sfb-file via YMODEM.

Flashing the target with the resulting binary file, using cube programmer, works as expected.

But i want to be able to debug my application. Have anyone else had this issue ?

regards,

Martin

1 ACCEPTED SOLUTION

Accepted Solutions
Frantz LEFRERE
ST Employee

The simplest way is to download the combined image with an external progarmmer ( like CubeProgrammer) . Then in your IDE, removing the flash of the binary for the debug and only load the symbol.

View solution in original post

1 REPLY 1
Frantz LEFRERE
ST Employee

The simplest way is to download the combined image with an external progarmmer ( like CubeProgrammer) . Then in your IDE, removing the flash of the binary for the debug and only load the symbol.