AnsweredAssumed Answered

STM32F0 IAP function

Question asked by yao.jeff on Nov 19, 2015
Latest reply on Nov 23, 2015 by Clive One
Hi all

I try to implement a boot loader that can be jump to user application of STM32F030R8 chip , and I find the IAP sample as follow. ... 743/LN1734/PF258152

It seams look like have the feature I need, but this sample is for STM320518-EVAL, I can't use it on STM32F030R8 directly.
So I find out the function code for jump as below and add these to my main function.

     if (((*(__IO uint32_t*)APPLICATION_ADDRESS) & 0x2FFE0000 ) == 0x20000000)
      /* Jump to user application */
      JumpAddress = *(__IO uint32_t*) (APPLICATION_ADDRESS + 4);
      Jump_To_Application = (pFunction) JumpAddress;
      /* Initialize user application's Stack Pointer */
      __set_MSP(*(__IO uint32_t*) APPLICATION_ADDRESS);
      /* Jump to application */

Then, debug with IAR step by step, it was executed the "Jump_To_Application" , but I didn't see the address have jump to the APPLICATION_ADRRESS.

So does anyone can point where is I missing?

Thank you very much.