STM32 多個(gè)個(gè)APP的跳轉(zhuǎn)
#define IapApplicationAddress 0x08000000//這里是要跳轉(zhuǎn)的APP的起始地址。
typedef void (*pFunction)(void);
uint32_t JumpAddress;
unsigned int systime;
pFunction Jump_To_Application;
void JumtoIap(void){
JumpAddress = *(__IO uint32_t*) (IapApplicationAddress + 4);
Jump_To_Application = (pFunction) JumpAddress;
//初始化用戶(hù)程序的堆棧指針
__set_MSP(*(__IO uint32_t*)IapApplicationAddress);
Jump_To_Application();
}