Questions tagged [arm-none-eabi-gcc]
87 questions
0
votes
1 answer
How can I generate elf file with debug info using arm-none-eabi-ld?
I'm trying to remote debug compiled code for arm on qemu. But I cannot set breakpoints based on symbols.
Below is my mk script:
ARM=arm-none-eabi
QEMU=qemu-system-arm
$ARM-as -o ts.o ts.s -g
$ARM-ld -T t.ld -o t.elf ts.o
$ARM-nm t.elf
$ARM-objcopy…

shino
- 71
- 7
0
votes
1 answer
Undefined reference to `posix_memalign' in arm-none-eabi
I am trying to build liboqs (https://github.com/open-quantum-safe/liboqs) on Ubuntu to use as a library on STM32L432. I successfully ran cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=../.CMake/toolchain_armel.cmake -DOQS_USE_OPENSSL=OFF .. and after running…

tarun14110
- 940
- 5
- 26
- 57
0
votes
0 answers
Redundant lines in disassembly file generated by arm-none-eabi toolchain
I'm working on an embedded program for an ARM Cortex-M0 microcontroller using the arm-none-eabi toolchain and standard GNU make. I'm noticing some redundant .word lines in the disassembly output, and I'm wondering if there's a way to get rid of…

Matej Gomboc
- 161
- 3
- 10
0
votes
0 answers
What compiler do I use for VSCode FreeRTOS Embedded Programming? Should I see GNU in the list?
I am using a Mac and VSCode and have installed the GNU embedded GNU Arm Embedded toolchain. When I right click on CMakeLists.txt and select Build All Projects it asks me to select a compiler. Should I see the GNU one in the list?
I expect…

lcj
- 1,355
- 16
- 37
0
votes
1 answer
How to set a value at specified address in an elf file
I have a project for a cortex M4 microcontroller, which compiles and runs fine.
I'd like to add the checksum of the file to the file itself, so I can check the correctness of the binary at runtime.
The address where the checksum needs to be in the…

Bil_Bomba
- 183
- 1
- 8
0
votes
0 answers
Why is a static const "variable" not seen as constant for static assert
In a software for a STM32 arm microcontroller I have a bunch of constant parameters that should be configured before compilation. These are defined as static const integers and not as #defines to enable type checking at compile time.
For example:
…

Martin Korinek
- 1
- 2
0
votes
0 answers
why no error message when alias function with different prototype?
test.c
void __f () { /* Do something. */; }
int f (int) __attribute__ ((weak, alias ("__f")));
test.h
void f ();
main.c
//call f
f();
the __f() and alias f() has different prototype.
use build tools gcc-arm-none-eabi-4_9, no error or warning…

yyd
- 33
- 5
0
votes
1 answer
argument unused during compilation: '-mcpu=cortex-m7' when using arm-none-eabi-g++ with clang-tidy
I am using CMake to run clang-tidy while compiling my embedded target.
if(CLANG_TIDY)
set(CMAKE_CXX_CLANG_TIDY "clang-tidy")
endif()
CMake sets the correct driver mode automatically:
--tidy="clang-tidy;--extra-arg-before=--driver-mode=g++"
But…

elhe
- 122
- 10
0
votes
1 answer
Eclipse truncates my compiler problem descriptions
For a while now, my Eclipse makefile project has been truncating all compiler problem descriptions, both in the code space and in the "Problems" window.
Examples in images below - does anyone know what might cause this please?
I've searched the…

ZetaSeeker
- 23
- 1
- 5
0
votes
0 answers
Missing sources for clang compilation with gcc-arm-none-eabi toolchain
I do clang --target=arm-unknown-none-eabi compilation and lld linking with the toolchain (STL headers and libraries)…

ge45mue
- 677
- 8
- 23
0
votes
0 answers
Can't assemble a .S file using arm-none-eabi-gcc
I am following a tutorial on how to make an operating system for the raspberry pi. I want to follow this tutorial on a Raspberry Pi running Raspbian.
When I try to assemble some assembly using arm-none-eabi-gcc (arm-none-eabi-gcc -mcpu=cortex-a7…

Nexuss
- 23
- 3
0
votes
1 answer
Multiple undefined reference during linking of a CMake project using ARM toolchain
I'm developing a build system using CMake to build applications using the arm-none-eabi toolchain.
This is my folder structure:
project/
├── apps/
│ ├── test_app
│ │ ├── inc/
│ │ ├── src/
│ │ ├── CMakeLists.txt
├── arch/
│ ├──…

Gaspar S.
- 1
- 1
0
votes
0 answers
Why "undefined reference to vtable for" is depending from IDE
I try move some library from Arduino IDE to Eclipse IDE. In both cases the same compiler is used arm-none-eabi-gcc. But example in Arduino is linked succesfull, but project in Eclipse while linked have error:
RemoteXYWire.h:30: undefined reference…

kv193
- 1
- 1
0
votes
0 answers
why alignment of char array is 4 byte(gcc-arm-none-eabi-4_9, cotrex-M4F)
define const char aa bb cc variables, the alignment of memory map seems likes difference between const char bb and const char bb[1]
const char aa = 0;
const char bb = 1;
const char cc = 2;
.rodata.aa
0x0005dbb0 0x1…

yyd
- 33
- 5
0
votes
0 answers
STM32 sudden binary size increase
I am currently playing around with embedded C++ programming, I am trying to understand the C HAL provided by ST, rework it in modern C++, optimize some stuff away, etc.
I got to the point where I can blink an LED. The size of my current binary is…

Marcell Juhász
- 528
- 3
- 9