按下面的说法添加USE_STDPERIPH_DRIVER,SM32F10X_HD时出现
d:\Keil\ARM\Inc\ST\STM32F10x\stm32f10x.h(8297): error: #5: cannot open source input file "stm32f10x_conf.h": No such file or directory
添加STM32F10X_HD时出现compiling sys.c...
..\SYSTEM\sys\sys.c(22): warning: #223-D: function "assert_param" declared implicitly
..\SYSTEM\sys\sys.c(22): warning: #223-D: function "IS_NVIC_VECTTAB" declared implicitly
..\SYSTEM\sys\sys.c(23): warning: #223-D: function "IS_NVIC_OFFSET" declared implicitly
..\SYSTEM\sys\sys.c(70): error: #136: struct "<unnamed>" has no field "IPR"
..\SYSTEM\sys\sys.c(121): error: #20: identifier "NVIC_VectTab_FLASH" is undefined
arning: #223-D: function "assert_param" declared implicitly;assert_param(IS_GPIO_ALL_PERIPH(GPIOx));
参考:这时候我们需要在“Target Options” 中的“C/C++”选项卡中如图-2所示红框中添加USE_STDPERIPH_DRIVER、STM32F10X_HD。这样才能使编顺利通过。 图-2 |