Skip to main content
CB20
Associate
September 13, 2022
Question

Update bootloader from firmware

Hi! Has anyone developed a firmware that is able to rewrite the bootloader that is written in the flash? Thanks

This topic has been closed for replies.

5 replies

Tesla DeLorean
Guru
September 13, 2022

A bit non-specific.

There are many STM32 parts, perhaps narrow this down.

The ROM (likely OTP) based System Loader cannot be updated.

For your own loader in FLASH, yes those can be updated, along with application code which is more typically upgraded.

Yes, written assorted boot loaders, being a developer working on embedded systems, SoC, etc..

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
CB20
CB20Author
Associate
September 13, 2022

Sorry, I mean my own loader in flash.

I’m able to update my application but, because of the swd conmector is no more accessible, I need, in some cases, to update also my loader.

I’m using a STM32G0 with can interface.

Thanks

MM..1
Super User
September 13, 2022

Write this isnt big , but erasing bootloader part is safety problem if something breaks = brick

Piranha
Principal III
September 14, 2022

In such cases one can implement a separate updater or second level bootloader. The first bootloader should never be updated, but it must be capable of doing an emergency recovery, in case both - updater and application - fail.

CB20
CB20Author
Associate
September 15, 2022

Do you have any example of this?