cancel
Showing results for 
Search instead for 
Did you mean: 

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

vchau.2
Associate III

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 ?

4 REPLIES 4
S.Ma
Principal

Maybe if the user flash is 100% erased ?

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

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

I used Openbootloader, now everything is working 

Thanks to all