cancel
Showing results for 
Search instead for 
Did you mean: 

Update bootloader from firmware

CB20
Associate II

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

5 REPLIES 5

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
Up vote any posts that you find helpful, it shows what's working..
CB20
Associate II

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
Chief III

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

Piranha
Chief II

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.

Do you have any example of this?