cancel
Showing results for 
Search instead for 
Did you mean: 

Load multiple applications to flash and pass execution from one to another

DBurr
Senior

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

10 REPLIES 10
Piranha
Chief II

> 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.