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
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

一周热门 更多>