cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F0 internal bootloader mode

svenkatesan
Associate II
Posted on November 19, 2014 at 23:48

Hi All,

   I would like to jump to the internal bootloader mode from my application code.

Previous research on this topic in this forum suggested not to directly jump to the system memory from the application code but to set a magic number in the RAM, perform a reset and modify the startup code to jump to the bootloader.

But does STM32F0 RAM retain data after reset?

What is the correct way to enter bootloader mode from application program?

Best Regards

Srivatsav

2 REPLIES 2
Posted on November 20, 2014 at 00:53

RAM is not touched by a reset.

The boot loader is not designed to be called from an application, but at reset under reset conditions. To be successful the application would need to emulate these conditions.

You can jump to any code you choose, in a fashion permitted by the CPU core, which I presume you have some familiarity with.

Things which generally complicate the process would be the memory mapped/shadowed at zero, the interrupts enabled, the clocks running the processor, etc.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
svenkatesan
Associate II
Posted on November 20, 2014 at 03:37

Thanks Clive... Your suggestions worked...