cancel
Showing results for 
Search instead for 
Did you mean: 

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 ?

TCast.1
Associate

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

2 REPLIES 2
TDK
Guru

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
Associate

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