将文件夹STM32F10xFWLib替换为STM32F10x_StdPeriph_Lib_V3.0.0\Libraries,
将文件”stm32f10x_conf.h”替换为标准外设库V3.0.0附带的最新版本,在用户把代码从旧的stm32f10x_it.c复制到新的中以后,还需要把stm32f10x_it.h替换为在标准外设库V3.0.0提供的新版本。
做了以上几步,但不行,一大堆警告D:\keil\ARM\Examples\ST\Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_hd.c(60): warning: #1207-D: attribute "__interrupt__" ignored
D:\keil\ARM\Examples\ST\Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_hd.c(156): warning: #144-D: a value of type "void *" cannot be used to initialize an entity of type "void (*const)(void)"
D:\keil\ARM\Examples\ST\Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_hd.c(240): warning: #144-D: a value of type "void *" cannot be used to initialize an entity of type "void (*const)(void)"
D:\keil\ARM\Examples\ST\Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_hd.c(260): warning: #223-D: function "asm" declared implicitly
D:\keil\ARM\Examples\ST\Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_hd.c(301): warning: #161-D: unrecognized #pragma
D:\keil\ARM\Examples\ST\Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_hd.c(302): warning: #161-D: unrecognized #pragma
D:\keil\ARM\Examples\ST\Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_hd.c(303): warning: #161-D: unrecognized #pragma
D:\keil\ARM\Examples\ST\Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_hd.c(304): warning: #161-D: unrecognized #pragma
D:\keil\ARM\Examples\ST\Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_hd.c(305): warning: #161-D: unrecognized #pragma
D:\keil\ARM\Examples\ST\Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_hd.c(306): warning: #161-D: unrecognized #pragma
D:\keil\ARM\Examples\ST\Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_hd.c(307): warning: #161-D: unrecognized #pragma
D:\keil\ARM\Examples\ST\Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_hd.c(308): warning: #161-D: unrecognized #pragma
我在升级的过程中也遇到问题,编译后提示错误:
..\Output\Template.axf: Error: L6218E: Undefined symbol SysTick_CounterCmd (referred from st_cor_hw_conf.o).
..\Output\Template.axf: Error: L6218E: Undefined symbol SysTick_ITConfig (referred from st_cor_hw_conf.o).
..\Output\Template.axf: Error: L6218E: Undefined symbol SysTick_SetReload (referred from st_cor_hw_conf.o).
..\Output\Template.axf: Not enough information to list image symbols.
..\Output\Template.axf: Finished: 1 information, 0 warning and 3 error messages.
Target not created
求指教!
RE:请问stm32固件库怎么升级(2.0.3-3.0.0)
RE:请问stm32固件库怎么升级(2.0.3-3.0.0)
将文件”stm32f10x_conf.h”替换为标准外设库V3.0.0附带的最新版本,在用户把代码从旧的stm32f10x_it.c复制到新的中以后,还需要把stm32f10x_it.h替换为在标准外设库V3.0.0提供的新版本。
做了以上几步,但不行,一大堆警告D:\keil\ARM\Examples\ST\Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_hd.c(60): warning: #1207-D: attribute "__interrupt__" ignored
D:\keil\ARM\Examples\ST\Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_hd.c(156): warning: #144-D: a value of type "void *" cannot be used to initialize an entity of type "void (*const)(void)"
D:\keil\ARM\Examples\ST\Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_hd.c(240): warning: #144-D: a value of type "void *" cannot be used to initialize an entity of type "void (*const)(void)"
D:\keil\ARM\Examples\ST\Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_hd.c(260): warning: #223-D: function "asm" declared implicitly
D:\keil\ARM\Examples\ST\Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_hd.c(301): warning: #161-D: unrecognized #pragma
D:\keil\ARM\Examples\ST\Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_hd.c(302): warning: #161-D: unrecognized #pragma
D:\keil\ARM\Examples\ST\Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_hd.c(303): warning: #161-D: unrecognized #pragma
D:\keil\ARM\Examples\ST\Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_hd.c(304): warning: #161-D: unrecognized #pragma
D:\keil\ARM\Examples\ST\Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_hd.c(305): warning: #161-D: unrecognized #pragma
D:\keil\ARM\Examples\ST\Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_hd.c(306): warning: #161-D: unrecognized #pragma
D:\keil\ARM\Examples\ST\Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_hd.c(307): warning: #161-D: unrecognized #pragma
D:\keil\ARM\Examples\ST\Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_hd.c(308): warning: #161-D: unrecognized #pragma
RE:请问stm32固件库怎么升级(2.0.3-3.0.0)
警告肯定有的,需要你把里面部分内容修改一下。这个都好处理,你可以加深理解。
RE:请问stm32固件库怎么升级(2.0.3-3.0.0)
RE:请问stm32固件库怎么升级(2.0.3-3.0.0)
RE:请问stm32固件库怎么升级(2.0.3-3.0.0)
RE:请问stm32固件库怎么升级(2.0.3-3.0.0)
..\Output\Template.axf: Error: L6218E: Undefined symbol SysTick_CounterCmd (referred from st_cor_hw_conf.o).
..\Output\Template.axf: Error: L6218E: Undefined symbol SysTick_ITConfig (referred from st_cor_hw_conf.o).
..\Output\Template.axf: Error: L6218E: Undefined symbol SysTick_SetReload (referred from st_cor_hw_conf.o).
..\Output\Template.axf: Not enough information to list image symbols.
..\Output\Template.axf: Finished: 1 information, 0 warning and 3 error messages.
Target not created
求指教!