Hi,team:
I using MSPM0G3507 evaluation board. we plan to run APP1 in the first 16k space of the flash and APP2 in the back space. The customer has two questions:
1. How to jump between two APPs while they are running?like this:
This is the function of the jump:
void run_app(uint32 appxaddr)
{
//if (((*(vu32*)appxaddr) & 0x20000000 ) == 0x20000000)
{
//SCB->VTOR = (vu32)0x4000;
jump2app=(iapfun)*(vu32*)(appxaddr+4);
__set_MSP(*(vu32*)appxaddr);
//__disable_irq();
jump2app();
}
}
and interrupt vector table also need to make the corresponding offset:SCB->VTOR = FLASH_BASE | 0x10000;
2. Since APP2 does not start running FROM flash address 0, what modifications and settings need to be made to the compiler keil5 and APP2 codes? Can you provide these development materials or sample code?like this:
Thanks a lot!