if (((*(volatile uint32_t*)FLASH_APP_ADDR) & 0x2FFE0000 ) == 0x20000000)
{
/* Jump to user application */
NVIC->ICER[0] = 0XFFFFFFFF;
JumpAddress = *(volatile uint32_t*) (FLASH_APP_ADDR + 4);
Jump_To_Application = (pFunction) JumpAddress;
/* Initialize user application's Stack Pointer */
for(i = 0;i<48;i++)
{
*((uint32_t*)(0x200000000 + (i << 2))) = *(volatile unsigned int*)(FLASH_APP_ADDR+(i<<2));
}
SYSCFG_MemoryRemapConfig(SYSCFG_MemoryRemap_SRAM); //将入口地址映射成为SRAM
__set_MSP(*(volatile uint32_t*) FLASH_APP_ADDR);
Jump_To_Application();
}
m0 内核的单片机我在网上查找的情况在做iap时,是要进行内存的重映射,把中断向量表映射到ram中进行使用,但没有找到与SYSCFG_MemoryRemapConfig 类似的函数。这种情况下如何处理,有没有人做过这个单片机iap升级 |