新手上路
- 积分
- 39
- 金钱
- 39
- 注册时间
- 2014-1-4
- 在线时间
- 2 小时
|
刚实现通过IAP下载APP的功能,但发现跳转之后APP无法运行,请大家帮忙分析下:
MCU:STM32F103CBT6
IAP大小为8K
APP IROM地址设置为0x08002000 大小:0xE000
APP中的向量偏移地址 NVIC_SetVectorTable(NVIC_VectTab_FLASH, 0x2000);
IAP跳转代码:
startaddr = (*(__IO uint32_t*)ApplicationAddress);
/* Test if user code is programmed starting from address "ApplicationAddress" */
if ((startaddr & 0x2FFE0000 ) == 0x20000000)
{
/* Jump to user application */
JumpAddress = *(__IO uint32_t*) (ApplicationAddress + 4);
Jump_To_Application = (pFunction) JumpAddress;
/* Initialize user application's Stack Pointer */
__set_MSP(*(__IO uint32_t*) ApplicationAddress);
Jump_To_Application();
}
ApplicationAddress = 0x08002000
通过调试运行Jump_To_Application();之前JumpAddress 跳转地址正常 为0x08002101
但跳转之后APP没有运行
请教各位可能是什么原因呢???
|
|