2025-08-05 4:19 AM - last edited on 2025-08-05 4:46 AM by Andrew Neil
Hi, i have been developing custom bootloader with start address at 0x08000000 and a main application at address 0x08003800 were i planned 14KB for bootloader and next 40kb for main app.
i can see the bootloader works fine, but bootloader doesnt triggers the main app properly.
were this is how i am pointing to the main app
typedef void (*pFunction)(void);
pFunction Jump_To_Application;
uint32_t JumpAddress;
on this
__set_MSP(*(__IO uint32_t*) APPLICATION_ADDRESS);
were #define APPLICATION_ADDRESS ((uint32_t)0x08003800)
could anyone help me to solve the isue?
2025-08-05 4:26 AM
Here's code to jump to the bootloader. Replace the address with the address of your application to jump there instead. You're missing the equivalent SysMemBootJump() call.
How to jump to system bootloader from application ... - STMicroelectronics Community