Skip to main content
TCast.1
Associate
September 30, 2021
Question

Recover after ST Bootloader is interrupted; eg, power loss

  • September 30, 2021
  • 2 replies
  • 712 views

Hi, I'm using STM32f072cbu I'm using ST bootloader (with UART interface).

If the firmware upgrade process is interrupted for some reason (power loss for example) , is it possible to recover and load the firmware again ?

 

in my board I don't have access to any boot pins. The only pins that can use are TX e RX.

 

I'm using ST Flash Loader and ST Cube Programmer to load the firmware .

 

Thanks

This topic has been closed for replies.

2 replies

TDK
Super User
September 30, 2021

How do you enter the bootloader if you don't have access to the boot pins? Do you jump there in your program? If so, then no, there's no way to recover without getting the chip into bootloader mode first.

One solution would be a custom bootloader which checks for a valid image or jumps to the system bootloader if not detected. Other solutions exist as well. The BOOT_SEL/nBOOT0 option bits could be used temporarily until the image is verified.

"If you feel a post has answered your question, please click ""Accept as Solution""."
TCast.1
TCast.1Author
Associate
September 30, 2021

Hi TDK,

thanks for your answer,

When I get a new board I load the firmware using ST Link programmer. The firmware that is loaded accepts some commands , one of them is the command to jump to the system bootloader.

I think I'll follow your suggestion and create a custom bootloader, that will decide if it should jump or not to the system bootloader

Thanks