Skip to main content
Graduate
June 12, 2023
Question

Is there any way to jump to system bootloader without using Boot0 pin

  • June 12, 2023
  • 4 replies
  • 1705 views

I want to flash the microcontroller while in running state, because I can't connect any pin to Boot0 to bring the microcontroller in bootloader mode on Power up,

So is there a way to to call system bootloader form USER application ?

    This topic has been closed for replies.

    4 replies

    Visitor II
    June 12, 2023

    Maybe if the user flash is 100% erased ?

    Graduate II
    June 12, 2023

    Depends on the MCU

    You can typically transfer control to code anywhere, including the ROM, what it does and whether it comes back are a whole different thing.

    They do generally assume the ROM is mapped at ZERO, the SCB->VTOR points at it, interrupts are enabled at an MCU level, you that you don't have random peripherals and clocks initialized, and interrupts firing from those or system handlers..

    You can surely write your OWN code to provide for update methods which don't need to follow ST protocols, unless there's some prescient reason to do so.

    Writing your OWN user facing applications also allows you to control and support that experience.

    Super User
    June 12, 2023

    Yes, you can jump to the bootloader from application code.

    https://community.st.com/s/article/STM32H7-bootloader-jump-from-application

    vchau.2Author
    Graduate
    June 21, 2023

    I used Openbootloader, now everything is working 

    Thanks to all