#ifdef VECT_TAB_SRAM
SCB->VTOR = SRAM_BASE |VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM. */
#else
SCB->VTOR = FLASH_BASE |VECT_TAB_OFFSET; /* Vector Table Relocation in Internal FLASH. */
#endif//此处为flash偏移地址,app应当修改这个地址
#define VECT_TAB_OFFSET 0x2000/*!< Vector Table base offset field.
This valuemust be a multiple of 0x200. */欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |