Skip to main content
Visitor II
September 13, 2022
Question

Update bootloader from firmware

  • September 13, 2022
  • 4 replies
  • 1285 views

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.

    4 replies

    Graduate II
    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..

    CB20Author
    Visitor II
    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

    Graduate II
    September 13, 2022

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

    Graduate II
    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.

    CB20Author
    Visitor II
    September 15, 2022

    Do you have any example of this?