Questions tagged [arm-none-eabi-gcc]
87 questions
1
vote
1 answer
Disassembled arm code seems to have off by one error
I'm compiling some test code for an embedded ARM chip using a test C file.
test.c is as follows:
int main(){
*(int*)0xFFFFF400 = 7;
}
I compile the file with the following command
arm-none-eabi-gcc -march=armv4 -mtune=arm7tdmi -specs=nosys.specs…

Willis Hershey
- 1,520
- 4
- 22
1
vote
0 answers
arm-none-gcc-ld error : cannot find the object file even though it exists with the proper path
So this is a snippet from my makefile to build my target:
#include header files directory
vpath %.h = include
vpath %.o = obj
#create a list of *.c from the source directory
SRC = $(wildcard src/*.c)
OBJ = $(SRC:src/%.c=%.o)
main.elf: $(OBJ)
…

nalostta
- 43
- 1
- 9
1
vote
2 answers
unrecognized option --gc-keep-exported on arm ld
Right now, I'm trying to integrate a GitHub Action that checks if some code on a pull request compiles properly (VEX Robotics for anyone interested). However, when it gets to running the make command, I get this error:
Building Project
make:…

Zium
- 163
- 9
1
vote
1 answer
arm-none-eabi-gdb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
Ubuntu 20.04.1 LTS
64-bit
3.36.3 Gnome
Intel core-i7-975H
31.2GiB Memory
1.6 TB Disk Space
Had my flu vaccine
COVID-19: Neg, but I'm boring and don't go anywhere anyway...
I've tried a few fixes, including this one:
Message "Unable to run…

Carbon
- 11
- 1
- 4
1
vote
1 answer
GNU Arm Embedded Toolchain | arm-none-eabi-gcc options: What is a difference between Thumb (-mthumb) and Arm (-marm) state?
I have a maybe trivial question, but what is a difference between Thumb (-mthumb) and Arm (-marm) state and why most of the tutorials recommend to use Thumb state?
I am curious what exactly does it mean? What it is related to?
Best!

JStand Jakub Standarski
- 115
- 1
- 9
1
vote
1 answer
Eclipse with cmake4eclipse: Editor does not recognize symbols defined in CMakeLists.txt
Windows 10 Version 1809
Eclipse IDE for C/C++ Developers (Version: 2019-06 (4.12.0))
cmake4eclipse 2.1.1
cmake version 3.17.0
GNU Make 4.2.1
repository for a simple example project:…

Guti_Haz
- 2,528
- 2
- 15
- 20
1
vote
3 answers
GDB convenience variable doesn't expand in .gdbinit
I run gdb with a .gdbinit file, which has some convenience variables that just won't expand.
1. My setup
I wrote the following .gdbinit file to flash an executable to a microcontroller through a blackmagic probe (see…

K.Mulier
- 8,069
- 15
- 79
- 141
0
votes
0 answers
arm-none-eabi-gdb python fatal error (Ubuntu 22.04)
in my Ubuntu 22.04, I wanted to open a GDB client to connect to openocd. So I used arm-none-eabi-gdb, however I received the following error
Could not find platform independent libraries
Could not find platform dependent libraries…
0
votes
1 answer
arm-none-eabi-gcc: packed attribute causes inefficient alignment
When adding the -Wpacked option to arm-none-eabi-gcc combiler it issues the following warning:
warning: packed attribute causes inefficient alignment for 'struct field name'
For example,
struct Struct_test
{
uint32_t ch1;
uint16_t ch2;
…

tonyjosi
- 717
- 1
- 9
- 17
0
votes
0 answers
Bare-Metal : During Makefile I receive this error "..../arm-none-eabi/bin/ld: error: .: read: Is a directory"
I am using Ubuntu 22.04 to do some bare metal programming.
I have 3 files to compile and link to create a .elf file name app.elf (im using Makefile to do this).
However I encountered the error below:
$ make all …
0
votes
2 answers
CMake - Dynamically determine CPU Architecture
I am working on a CMake build script that requires the ARM embedded toolchain. Depending on the user's OS and CPU architecture, a different version of the toolkit needs to be downloaded. This is fine when only differentiating OSs, as I can do…

Farzan
- 11
- 5
0
votes
0 answers
Reduce command size given to gcc in windows
I am trying to build free RTOS application. My application has may submodules and the paths are getting very long. I have updated the windows path limit. but the problem is that the command to give to bash is getting very long [33192] bytes in size.…

ALK007
- 23
- 7
0
votes
0 answers
Writing volatile variable optimized by compiler
I am using C++ with the arm-none-eabi-gcc compiler and I am wondering why the new compiler version (10.3.1) decides to optimize out a function call which modifies a volatile variable while the old compiler version (7.3.1) does not.
Following are the…

Martin
- 11
- 1
0
votes
0 answers
arm-none-eabi-gcc build from source with --enable-threads
I am trying to use the arm-none-eabi-gcc and enable the std::mutex and other Thread support on it. I tried to re-compile the compiler from source as I found the source code from here
However, I am failing to enable it. Is there any possible way to…

kowshik
- 1
- 1
0
votes
1 answer
Linking issue with arm-none-eabi-gcc compiler - warning: cannot find entry symbol _vectors; defaulting to 0000000010260000
I am trying to do a very simple exercise as shown below
Compiler a simple C program using arm-none-eabi-gcc compiler for a Cortex-R5 MCU target.
Link it with the respective linker file and create a executable so I can load it and debug.
What have…

kowshik
- 1
- 1