1
完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
本帖最后由 pdshyh 于 2021-2-4 21:08 编辑
Keil uVision5点亮LED灯错误 距离点亮LED灯编程只有一步之遥了 还得请教各位老师问题在哪, 对着《STM32库开发实战指南》示例已经修改了几次错误,还是存在错误 错误提示..STM_led.axf: Error: L6218E: Undefined symbol GPIO_RestBits (referred from main.o).直译:STM_led.axf:错误:L6218E:未定义符号GPIO_RestBits(从main.o引用)。 谢谢,回复,是GPIO_ResetBits(GPIOC,GPIO_Pin_3 )写错了GPIO_RestBits(GPIOC,GPIO_Pin_3 )少了个e,更改后问题又出来了:..STM_led.axf: Error: L6200E: Symbol GPIO_ResetBits multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o).
|
|
相关推荐
7个回答
|
|
LED1没有定义啊,不能直接用
最佳答案
|
|
|
|
有void LED1(参数);//声明
和void LED1(参数)//定义 { ……; } 这两个吗?有的话再看看有没有 extern void LED1(参数);//引用其他.c文件中的函数 |
|
|
|
GPIO_RestBits没定义
|
|
|
|
谢谢,回复,是GPIO_ResetBits(GPIOC,GPIO_Pin_3 )写错了GPIO_RestBits(GPIOC,GPIO_Pin_3 )少了个e,更改后问题又出来了:..STM_led.axf: Error: L6200E: Symbol GPIO_ResetBits multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o).
|
|
|
|
*** Using Compiler 'V5.06 update 1 (build 61)', folder: 'C:Program Files (x86)keilKeil_v5ARMARMCCBin'
Rebuild target 'Target 1' assembling startup_stm32f10x_md.s... compiling main.c... led.h(34): warning: #1-D: last line of file ends without a newline main.c: 1 warning, 0 errors compiling stm32f10x_it.c... compiling led.c... led.h(34): warning: #1-D: last line of file ends without a newline led.c: 1 warning, 0 errors compiling stm32f10x_gpio.c... compiling misc.c... compiling stm32f10x_adc.c... compiling stm32f10x_bkp.c... compiling stm32f10x_can.c... compiling stm32f10x_cec.c... compiling stm32f10x_crc.c... compiling stm32f10x_dac.c... compiling stm32f10x_dbgmcu.c... compiling stm32f10x_dma.c... compiling stm32f10x_exti.c... compiling stm32f10x_flash.c... compiling stm32f10x_fsmc.c... compiling stm32f10x_gpio.c... compiling stm32f10x_i2c.c... compiling stm32f10x_iwdg.c... compiling stm32f10x_pwr.c... compiling stm32f10x_rcc.c... compiling stm32f10x_rtc.c... compiling stm32f10x_sdio.c... compiling stm32f10x_spi.c... compiling stm32f10x_tim.c... compiling stm32f10x_usart.c... compiling stm32f10x_wwdg.c... compiling core_cm3.c... compiling system_stm32f10x.c... linking... ..STM_led.axf: Error: L6200E: Symbol GPIO_ResetBits multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o). ..STM_led.axf: Error: L6200E: Symbol GPIO_SetBits multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o). ..STM_led.axf: Error: L6200E: Symbol GPIO_Init multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o). ..STM_led.axf: Error: L6200E: Symbol GPIO_DeInit multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o). ..STM_led.axf: Error: L6200E: Symbol GPIO_AFIODeInit multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o). ..STM_led.axf: Error: L6200E: Symbol GPIO_StructInit multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o). ..STM_led.axf: Error: L6200E: Symbol GPIO_ReadInputDataBit multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o). ..STM_led.axf: Error: L6200E: Symbol GPIO_ReadInputData multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o). ..STM_led.axf: Error: L6200E: Symbol GPIO_ReadOutputDataBit multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o). ..STM_led.axf: Error: L6200E: Symbol GPIO_ReadOutputData multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o). ..STM_led.axf: Error: L6200E: Symbol GPIO_WriteBit multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o). ..STM_led.axf: Error: L6200E: Symbol GPIO_Write multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o). ..STM_led.axf: Error: L6200E: Symbol GPIO_PinLockConfig multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o). ..STM_led.axf: Error: L6200E: Symbol GPIO_EventOutputConfig multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o). ..STM_led.axf: Error: L6200E: Symbol GPIO_EventOutputCmd multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o). ..STM_led.axf: Error: L6200E: Symbol GPIO_PinRemapConfig multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o). ..STM_led.axf: Error: L6200E: Symbol GPIO_EXTILineConfig multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o). ..STM_led.axf: Error: L6200E: Symbol GPIO_ETH_MediaInterfaceConfig multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o). Not enough information to list image symbols. Not enough information to list the image map. Finished: 2 information, 0 warning and 18 error messages. "..STM_led.axf" - 18 Error(s), 2 Warning(s). Target not created. Build Time Elapsed: 00:00:06 |
|
|
|
我没有学习STM32,正准备入手一块!
|
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
503 浏览 0 评论
求助一下关于51系列单片机的Timer0的计时问题,TH0、TL0+1的时间是怎么算的?
1756 浏览 1 评论
【RA-Eco-RA4E2-64PIN-V1.0开发板试用】开箱+Keil环境搭建+点灯+点亮OLED
1183 浏览 0 评论
【敏矽微ME32G070开发板免费体验】使用coremark测试敏矽微ME32G070 跑分
1053 浏览 0 评论
【敏矽微ME32G070开发板免费体验】开箱+点灯+点亮OLED
1287 浏览 2 评论
【youyeetoo X1 windows 开发板体验】少儿AI智能STEAM积木平台
12020 浏览 31 评论
小黑屋| 手机版| Archiver| 德赢Vwin官网 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 17:37 , Processed in 0.848771 second(s), Total 87, Slave 70 queries .
Powered by 德赢Vwin官网 网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
德赢Vwin官网 观察
版权所有 © 湖南华秋数字科技有限公司
德赢Vwin官网 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号