linking时报错

2019-07-14 14:28发布

linking...
d:/keil_v5/ARM/5.2_2015q4/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol _start; defaulting to 00008000
./objects/startup_STM32f0xx.o: (.text+0x0): undefined reference to `_sidata'
./objects/startup_stm32f0xx.o: (.text+0x4): undefined reference to `_sdata'
./objects/startup_stm32f0xx.o: (.text+0xc): undefined reference to `_sbss'
./objects/startup_stm32f0xx.o: (.text+0x10): undefined reference to `_ebss'
./objects/startup_stm32f0xx.o: In function `LoopFillZerobss':
E:STM32F0project/../Libraries/CMSIS/Device/ST/STM32F0xx/Source/Templates/gcc_ride7/startup_stm32f0xx.s:101: undefined reference to `SystemInit'
E:STM32F0project/../Libraries/CMSIS/Device/ST/STM32F0xx/Source/Templates/gcc_ride7/startup_stm32f0xx.s:76: undefined reference to `_sidata'
E:STM32F0project/../Libraries/CMSIS/Device/ST/STM32F0xx/Source/Templates/gcc_ride7/startup_stm32f0xx.s:82: undefined reference to `_sdata'
E:STM32F0project/../Libraries/CMSIS/Device/ST/STM32F0xx/Source/Templates/gcc_ride7/startup_stm32f0xx.s:87: undefined reference to `_sbss'
E:STM32F0project/../Libraries/CMSIS/Device/ST/STM32F0xx/Source/Templates/gcc_ride7/startup_stm32f0xx.s:97: undefined reference to `_ebss'
./objects/startup_stm32f0xx.o: (.isr_vector+0x0): undefined reference to `_estack'
collect2.exe: error: ld returned 1 exit status
".ObjectsSTM32F051.elf" - 1 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed:  00:00:05

以上是linking是出现的报错。
我试过禁止编译Thume指令;clean整个工程,然后重新编译连接。都没成功。
目前使用的IDE是Keil V5+gcc。startup文件用STM32F0xx_StdPeriph_Lib_V1.0.0LibrariesCMSISDeviceSTSTM32F0xxSourceTemplatesgcc_ride7的文件。
请问有朋友知道是怎么回事么?请多指教,谢谢。
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
7条回答
你我然后
1楼-- · 2019-07-14 18:48
先用CCARM成了后,再用gcc
Xavier_1995
2楼-- · 2019-07-14 19:27
缺少链接文件吧。。。。
colin1125
3楼-- · 2019-07-15 01:14
怎样解决呢?
Xavier_1995
4楼-- · 2019-07-15 05:17
我这里没有这个文件,自己在论坛搜搜
亲爱的娜娜
5楼-- · 2019-07-15 10:11
请问链接文件叫什么?
hu_wfllll1
6楼-- · 2019-07-15 14:57
 精彩回答 2  元偷偷看……

一周热门 更多>