cancel
Showing results for 
Search instead for 
Did you mean: 

Bootloader+ main app

aravindpv
Associate II

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?

1 REPLY 1
TDK
Super User

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

If you feel a post has answered your question, please click "Accept as Solution".