SysTick_CLKSourceConfig 和NVIC_PriorityGroupConfig 未定义怎么解决呀

2019-07-20 22:52发布

Build target 'LED-DEMO'
linking...
STM32-DEMO.axf: Error: L6218E: Undefined symbol SysTick_CLKSourceConfig (referred from delay.o).
STM32-DEMO.axf: Error: L6218E: Undefined symbol NVIC_PriorityGroupConfig (referred from sys.o).
STM32-DEMO.axf: Not enough information to list image symbols.
STM32-DEMO.axf: Not enough information to list the image map.
STM32-DEMO.axf: Finished: 2 information, 0 warning and 2 error messages.
Target not created

一直提示这两个symbol未定义。我在cof.h中已经把所有头文件都包含进来了还是不行

 #include "stm32f10x_adc.h" 
 #include "stm32f10x_bkp.h" 
 #include "stm32f10x_can.h" 
 #include "stm32f10x_crc.h" 
 #include "stm32f10x_dac.h" 
 #include "stm32f10x_dbgmcu.h"
 #include "stm32f10x_dma.h"
 #include "stm32f10x_exti.h"
 #include "stm32f10x_flash.h"
 #include "stm32f10x_fsmc.h" 
#include "stm32f10x_gpio.h"
 #include "stm32f10x_i2c.h" 
 #include "stm32f10x_iwdg.h" 
 #include "stm32f10x_pwr.h" 
#include "stm32f10x_rcc.h"
 #include "stm32f10x_rtc.h" 
 #include "stm32f10x_sdio.h" 
 #include "stm32f10x_spi.h"
 #include "stm32f10x_tim.h"
 #include "stm32f10x_usart.h"
 #include "stm32f10x_wwdg.h" 
#include "misc.h" 
请问怎么解决呀?
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
3条回答
正点原子
1楼-- · 2019-07-20 23:59
 精彩回答 2  元偷偷看……
herbert-lu
2楼-- · 2019-07-21 02:21
帮顶!   还是看看.h的文件里面是否真的包含了!另外看看设置的 include path的路径是否正确!
kaolacahan
3楼-- · 2019-07-21 07:29
SysTick_CLKSourceConfig和NVIC_PriorityGroupConfig在misc.c文件里,应在FWLIB文件夹中包含misc.c文件。

一周热门 更多>