AnsweredAssumed Answered

problem jump application after reset

Question asked by oulahrir.samir on Dec 6, 2016
Latest reply on Dec 6, 2016 by Clive One

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:

 

#define 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 !

Outcomes