AnsweredAssumed Answered

STM32 standard bootloader question

Question asked by saliba.george on Sep 28, 2012
Latest reply on Sep 29, 2012 by saliba.george
Hi all,

I need to be able to reprogram an STM32F103 device in the field through a USB connection on UART1. It is critical that the firmware update is performed without any direct user intervention on the board (apart from maybe a power cycle of the board). I really like the fact that the STM32 devices come with an inbuilt bootloader and would like to use this bootloader if possible.

I have successful managed to force the device to jump to the bootloader using a serial command parsed through the main firmware and that works flawlessly.  The problem is what would happen if the firmware update process is abruptly interrupted leaving the main firmware in a corrupt state. The device would remain inaccessible via UART1.

Is it possible to have the device always boot on the internal bootloader but then jump to the main firmware if there is no communication on UART1 after x seconds ? This would at least provide a recovery method involving only a power cycle of the board. 

Thanks,
George

Outcomes