STM32 多个个APP的跳转
扫描二维码
随时随地手机看文章
#define IapApplicationAddress 0x08000000//这里是要跳转的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;
//初始化用户程序的堆栈指针
__set_MSP(*(__IO uint32_t*)IapApplicationAddress);
Jump_To_Application();
}