现在IAP跳转到APP根据ST的demo,把中断向量拷贝到RAM中,已经没什么问题,但是APP跳转到IAP不行,执行跳转后就不动了,跳转代码如下:
ClearInterrupt();
GreenLedOff();
RedLedOff();
/* Remap SRAM at 0x00000000 */
SYSCFG_MemoryRemapConfig(SYSCFG_MemoryRemap_Flash);
// Jump to user application
JumpAddress = *(__IO uint32_t*) (IAPSTART + 4);
Jump_To_Application = (pFunction) JumpAddress;
// Initialize user application's Stack Pointer
__set_MSP(*(__IO uint32_t*) IAPSTART);
// Jump to application
Jump_To_Application();
|