2014-11-19 02:48 PM
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 RegardsSrivatsav2014-11-19 03:53 PM
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.2014-11-19 06:37 PM