stm32 eclipse下编译错误

2019-08-15 16:07发布

ubuntu下用eclipse + arm-none-eabi-gcc 搭建的环境,新建一个工程,什么代码也没写直接编译,结果出错。
make: *** [system/src/stm32f1-stdperiph/misc.o] Error 1    stm_f103
recipe for target 'system/src/stm32f1-stdperiph/misc.o' failed    subdir.mk
费了牛劲也没找到错误。哪位大侠指导一下。
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
4条回答
beifanggd
1楼-- · 2019-08-15 17:23
解决了,从链接http://embdev.net/topic/216192获得提示,下了个Binary Utilities包,解决问题。
beifanggd
2楼-- · 2019-08-15 17:47
CONSOLE的内容如下:
make all 
Building file: ../system/src/stm32f1-stdperiph/misc.c
Invoking: Cross ARM C Compiler
arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wall -Wextra  -g3 -DDEBUG -DUSE_FULL_ASSERT -DTRACE -DOS_USE_TRACE_ITM -DSTM32F10X_HD -DUSE_STDPERIPH_DRIVER -DHSE_VALUE=16000000 -I"../include" -I"../system/include" -I"../system/include/cmsis" -I"../system/include/stm32f1-stdperiph" -I/usr/include -std=gnu11 -MMD -MP -MF"system/src/stm32f1-stdperiph/misc.d" -MT"system/src/stm32f1-stdperiph/misc.o" -c -o "system/src/stm32f1-stdperiph/misc.o" "../system/src/stm32f1-stdperiph/misc.c"
arm-none-eabi-gcc: error trying to exec 'cc1': execvp: No such file or directory
system/src/stm32f1-stdperiph/subdir.mk:24: recipe for target 'system/src/stm32f1-stdperiph/misc.o' failed
make: *** [system/src/stm32f1-stdperiph/misc.o] Error 1
正点原子
3楼-- · 2019-08-15 20:13
 精彩回答 2  元偷偷看……
河夕弄鱼
4楼-- · 2019-08-16 00:25
beifanggd 发表于 2014-11-28 21:50
解决了,从链接http://embdev.net/topic/216192获得提示,下了个Binary Utilities包,解决问题。

楼主,我也遇到了和你一样的问题,请问如何解决?谢谢。

一周热门 更多>