AnsweredAssumed Answered

Stm32f103 Memory Jumping with parameters

Question asked by lemoussel.christian on Dec 17, 2014
Latest reply on Dec 19, 2014 by lemoussel.christian
Hello,

I'm working with the STM32f103RB and I'm trying to jump to a section of flash where I will begin executing another program there

My code should look like this (variable ApplicationAddress is 0x08008000) :

  __disable_irq();
  JumpAddress = (uint32_t) (void *) ApplicationAddress + 4;
  Jump_To_Application = (pFunction) JumpAddress;

  /* Initialize user application's Stack Pointer */
  __set_MSP(*(__IO uint32_t*) ApplicationAddress;


  Jump_To_Application();

But I will executing another program with paramaters (like main(int argc, char * argv[])
Is it possible ? Have you some idea to do that ?

Thank you

Outcomes