|[Solved] Cannot understand toolchain configuration [message #1844201]
||Mon, 06 September 2021 09:43
| Jack White
Registered: September 2021
Solved: You must add the toolchain binaries directory as the compiler directory, the tool directory *and* to the path. |
I am struggling to get the ARM GCC toolchain working in Eclipse 2021-06 (4.20.0) on Ubuntu 20.04.
Previously, I had installed the ARM GCC toolchain from the Ubuntu software repos, however, this installation does not include GDB, so I eventually removed those packages and downloaded the latert full toolchain from the ARM website.
I have installed the toolchain in /opt/gcc-arm-none-eabi-10.3-2021.0. The binaries are in the bin/ subdirectory. I have added this directory to my PATH environment variable, so I am able to run the tools from the command line.
I cannot, however, build my project in Eclipse:
/bin/sh: arm-none-eabi-gcc: command not found
I have investigated adding the toolchain to Eclipse in Project->Properties->C/C++ Build->Settings->Toolchains.
Name: GNU MCU Eclipse ARM Embedded GCC (arm-none-eabi-gcc)
Toolchain path: /opt/gcc-arm-none-eabi-10.3-2021.07/bin
Build tools path: /opt/gcc-arm-none-eabi-10.3-2021.07/bin
However, I do notice that in Project->Properties->C/C++ Build->Tool Chain Editor, the current toolchain is ARM Cross GCC, and the Used Tools list reads: "Cross ARM GNU Assembler; Cross ARM GNU C Compiler; etc, etc"
"Arm Cross GCC" is not a toolchain listed in the Name listbox of Project->Properties->C/C++ Build->Settings->Toolchains.
This is my current state, and still the build does not find the toolchain binaries. What am I doing wrong? Is there one central place in Eclipse where I can definitively configure the toolchain?
[Updated on: Mon, 06 September 2021 15:32]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02808 seconds