stm32开发问题集锦.docVIP

  • 44
  • 0
  • 约6.94万字
  • 约 5页
  • 2016-12-23 发布于贵州
  • 举报
[本文摘自:/govern/blog/category/it%CE%C4%D5%C2] 1 在flash中跑程序时,能进入中断,但在ram中跑时,进不了中断的原因。 看以下的中断配置函数可以知道,要在ram中调试程序,需要定义VECT_TAB_RAM。 定义方法a:在Project\Options for taget xxx 的对话框的c/c++中定义宏VECT_TAB_RAM 定义方法b:在程序中直接定义 void NVIC_Configuration(void) { NVIC_InitTypeDef NVIC_InitStructure; #ifdef VECT_TAB_RAM /* Set the Vector Table base location at 0*/ NVIC_SetVectorTable(NVIC_VectTab_RAM, 0x0); #else /* VECT_TAB_FLASH */ /* Set the Vector Table base location at 0*/ NVIC_SetVectorTable(NVIC_VectTab_FLASH, 0x0); #endif /* Configure and enable ADC interrupt */ NVIC_InitStructure.NV

文档评论(0)

1亿VIP精品文档

相关文档