本帖最后由 放屁蹦出屎 于 2023-7-27 11:09 编辑
GD32F303 BOOTLOAD 升级问题,为什么我的栈顶地址设置不合法,跳转不了app程序 0x08003000 app的启始地址
if (((*(__IO uint32_t*)ApplicationAddress) & 0x2FFE0000 ) == 0x20000000) //判断栈顶地址是否在合法范围内
{
JumpAddress = *(__IO uint32_t*) (ApplicationAddress + 4);
/* Jump to user application */
Jump_To_Application = (pFunction) JumpAddress;
/* Initialize user application's Stack Pointer */
__set_MSP(*(__IO uint32_t*) ApplicationAddress);
Jump_To_Application();
}
C:\Users\admin\Desktop\新建文件夹 (12)
|