在APP的程序中添加如下代码
#define APP_START_ADDRESS (uint32_t)(0x8008000)
main()
{
memcpy((uint8_t *)SRAM_BASE, (uint8_t *)APP_START_ADDRESS, 48*4); //这里复制中断向量表
RCC_APB2PeriphClockCmd(RCC_APB2Periph_SYSCFG, ENABLE);
SYSCFG_MemoryRemapConfig(SYSCFG_MemoryRemap_SRAM);
.
.
.
.
.
}
|