AnsweredAssumed Answered

RT1052 jump to application

Question asked by br li on Aug 20, 2019
Latest reply on Aug 25, 2019 by br li

Hi,

 

For RT1052 boot on flexspi nor flash, I locate one user application's start address at 0x60000000, and locate another user application's start address at 0x60020000.

I want to let 1st application jump to 2nd application's reset handle directly,  Now PC pointer can jump from the 1st application to 2nd application and work continue, but it can't back to breaked point when response interrupt. my jump code as following, very appreciate for your suggestion!

 

typedef void (*Fun_t)(void);

 

 

/*jump follow code*/

SCB->VTOR = 0x60022000;

__set_MSP(0x20040000);

__set_PSP(0x20040000);

pFun = (Fun_t)(*((volatile uint32_t*)(0x60022004)))

(void)(pFun)();

 

 

Thanks!

Br Li

Outcomes