ARM MCU [message #1840000] |
Sat, 03 April 2021 11:52  |
Eclipse User |
|
|
|
After downloading the latest Eclipse IDE for embedded C/C++ developers, I installed Build tools for Windows and decided to use Linaro toolchain for crosscompiling. When I created new project - the Blinky one, that came with this distribution of Eclipse, the following appeared in Console tab, after starting build process :
make all
Building file: ../system/src/stm32f3-stdperiph/stm32f30x_gpio.c
Invoking: GNU Arm Cross C Compiler
arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -Wall -Wextra -g3 -DDEBUG -DUSE_FULL_ASSERT -DTRACE -DOS_USE_TRACE_SEMIHOSTING_DEBUG -DSTM32F30X -DUSE_STDPERIPH_DRIVER -DHSE_VALUE=8000000 -I"../include" -I"../system/include" -I"../system/include/cmsis" -I"../system/include/stm32f3-stdperiph" -isystem"C:\Eklipsa\TChain\gcc-linaro-4.9-2014.11-i686-mingw32_arm-eabi\libc\usr\include" -std=gnu11 -MMD -MP -MF"system/src/stm32f3-stdperiph/stm32f30x_gpio.d" -MT"system/src/stm32f3-stdperiph/stm32f30x_gpio.o" -c -o "system/src/stm32f3-stdperiph/stm32f30x_gpio.o" "../system/src/stm32f3-stdperiph/stm32f30x_gpio.c"
53
system/src/stm32f3-stdperiph/subdir.mk:21: recipe for target 'system/src/stm32f3-stdperiph/stm32f30x_gpio.o' failed
make: *** [system/src/stm32f3-stdperiph/stm32f30x_gpio.o] Error 181
"make all" terminated with exit code 2. Build might be incomplete.
Obviously it failed at the first file in compilation row. Don't know why, as well as meaning of number 53, above.
|
|
|
Re: ARM MCU [message #1840546 is a reply to message #1840000] |
Sun, 18 April 2021 16:52  |
Eclipse User |
|
|
|
GNU make error messages like "Errror NN" are documented here: https://www.gnu.org/software/make/manual/html_node/Error-Messages.html
"These errors are not really make errors at all. They mean that a program that make invoked as part of a recipe returned a non-0 error code ... which make interprets as failure". Try to run the cross-compiler manually.
Number 53 is probably a spawned subprocess ID. To ease troubleshooting, disable parallel build.
Also, for best results with STM32, use their CubeIDE. It comes with a choice of ARM toolchains.
-- pa
[Updated on: Sun, 18 April 2021 16:56] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03772 seconds