Question
problem jump application after reset
Posted on December 06, 2016 at 11:31
I have problem with jump to application by bootloader after reset.
The device used is the STM32F098.The code of the bootloader making the jump is:
&sharpdefine APPLICATIONADDRESS (uint32_t)0x08008000
/* Test if user code is programmed starting from address 'ApplicationAddress' */
if (((*(__IO uint32_t*)APPLICATIONADDRESS) & 0x2FFE0000 ) == 0x20000000) { /* Jump to user application */ JumpAddress = *(__IO uint32_t*) (APPLICATIONADDRESS + 4); Jump_To_Application = (pFunction) JumpAddress; /* Initialize user application's Stack Pointer */ __set_MSP(*(__IO uint32_t*) APPLICATIONADDRESS); Jump_To_Application(); }the first time after download application, jump to program works perfectly.
But when reset occure, the application deleted and program start at bootloader !
#problem-jump-application-after-reset