如果你用的是FWlib2.0.3及以下版本的固件库,
NVIC_Configuration()这个函数中,根据是否定义了“VECT_TAB_RAM ”来把中断向量放到相应的位置:
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, 0x0); #endif ...... }
|