Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » ARM MCU (Crosscompile toolchain)
ARM MCU [message #1840000] Sat, 03 April 2021 15:52 Go to next message
Zocsi DiGiorgio is currently offline Zocsi DiGiorgioFriend
Messages: 4
Registered: April 2021
Junior Member
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 20:52 Go to previous message
Pavel.A Mising name is currently offline Pavel.A Mising nameFriend
Messages: 5
Registered: November 2011
Junior Member
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 20:56]

Report message to a moderator

Previous Topic:Console has different output in debug and normal run mode
Next Topic:How to use a Linked folder (path) variable in Build variables?
Goto Forum:
  


Current Time: Thu Apr 25 03:56:45 GMT 2024

Powered by FUDForum. Page generated in 0.03009 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top