Skip to main content
MBirk.1
Associate
August 25, 2022
Solved

SBSFU combined elf - application erased by bootloader

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

This topic has been closed for replies.
Frantz LEFRERE
Frantz LEFREREBest answer
ST Technical Moderator
August 25, 2022

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.

1 reply

Frantz LEFRERE
Frantz LEFREREBest answer
ST Technical Moderator
August 25, 2022

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.