2023-06-12 05:59 AM
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 ?
2023-06-12 08:18 AM
Maybe if the user flash is 100% erased ?
2023-06-12 10:31 AM
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.
2023-06-12 04:39 PM
Yes, you can jump to the bootloader from application code.
https://community.st.com/s/article/STM32H7-bootloader-jump-from-application
2023-06-20 08:52 PM
I used Openbootloader, now everything is working
Thanks to all