How to jump from one application to another application located at different location
Hi,
i'm using STM32H743 Nucleo Board, I'm new to it,
- first I want to know can we flash two executable's on two different location of flash memory?
- If yes, then trying to jump from one application located at 0x08000000 to another application located at 0x08020000 location. I tried it by changing linker script flash address to 0x08020000 for another application. but it can not worked for me. program is like this,
void (*Jump_To_application)(void);
volatile uint32_t BootAddr = 0x08020000;
void jump_To_sector()
{
/* Disable all interrupts */
__disable_irq();
/* Disable Systick timer */
SysTick->CTRL = 0;
SysTick->LOAD = 0;
SysTick->VAL = 0;
/* Set the clock to the default state */
HAL_RCC_DeInit();
SCB->VTOR = BootAddr;
Jump_To_application = (void (*)(void)) (*((uint32_t *) ((BootAddr + 4))));
__set_MSP(*(__IO uint32_t*)BootAddr);
Jump_To_application();
}
Please help me here to solve this.
Thanks in advance.
