1、在MDK下,修改IROM1地址范围,如图
2、修改中断向量表地址,如下
void NVIC_Configuration(void)
{
#ifdef VECT_TAB_RAM
/* Set the Vector Table base location at 0x20000000 */
NVIC_SetVectorTable(NVIC_VectTab_RAM, 0x0);
#else /* VECT_TAB_FLASH */
/* Set the Vector Table base location at 0x08000000 */
NVIC_SetVectorTable(NVIC_VectTab_FLASH, 0x10000);
#endif
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
}