AnsweredAssumed Answered

stm32_IAP

Question asked by unknown on Mar 28, 2013
Latest reply on Mar 29, 2013 by unknown
Hi,
My application requires a bootloader that loads an application into a FLASH device. I have created two different applications:
bootloader.  start  0x08000000
A FLASH application.            start 0x08001000

if i creat an application without interruption (flash led) the jump from bootloader to appli work but when i creat an application that use timer interrupt to flash the led the jump don't work
the code of jump is:
NVIC_DeInit();
            NVIC_DISABLE();
            NVIC_SetVectorTable(NVIC_VectTab_FLASH, 0x1000);
            SCB->VTOR =  0x08001000;
            /* Jump to user application */
            JumpAddress = *(__IO uint32_t*) ((uint32_t)0x08001000 + 4);
            Jump_To_Application = (pFunction) JumpAddress;
            __disable_irq();
            /* Initialize user application's Stack Pointer */
            __set_MSP(* ( __IO uint32_t* ) 0x08001000);
            //__enable_irq();
            Jump_To_Application();
can anyone help me plz

Outcomes