Skip to main content
vchau.2
Associate III
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

S.Ma
Principal
June 12, 2023

Maybe if the user flash is 100% erased ?

Tesla DeLorean
Guru
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.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
TDK
June 12, 2023

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

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

"If you feel a post has answered your question, please click ""Accept as Solution""."
vchau.2
vchau.2Author
Associate III
June 21, 2023

I used Openbootloader, now everything is working 

Thanks to all