2020-05-26 02:08 PM
Hi,
I'm using an STM32F746ZG and writing my own custom bootloader. The bootloader will work by initially running and determining which of 2 applications to launch, both stored at different locations in the MCU's internal flash memory. How do you pass execution on to one of these 2 applications from the bootloader?
Thanks,
Doug Burrell
Solved! Go to Solution.
2020-06-18 02:08 PM
> The solution @Piranha (Community Member) has suggested won't work for this application because it needs to determine which of 2 application partitions it should branch to and this is done by reading data from a flash chip.
My solution basically passes a commands between the bootloader and the application. One can add additional commands and virtually any amount of parameters, which bootloader can pass to itself going through the reset.
As for that example and your problem... Well, it's ST's code! For example, not using the required memory barriers is a classic from those brainless code monkeys. My example has them even with a short explaining comments.