Questions tagged [arm-none-eabi-gcc]
87 questions
0
votes
0 answers
S-record files output by objcopy are smaller than the original binaries
After using arm-none-eabi-gcc to build a file in ELF format, I am using arm-none-eabi-objcopy to create an S-record file. The command that my makefile runs is:
$(TOOLCHAIN)-objcopy --srec-len 10 -O srec "$<" "$@"
The makefile can build with various…

AJM
- 1,317
- 2
- 15
- 30
0
votes
2 answers
arm-none-eabi-as bne.n misbehaves (or I do)
I sometimes have to dabble with a bit of assembler, and am not too sure of the correct use of directives. While investigating what should be the simplest delay loop I got an unexpected result, and my question is:
Do I misuse directives, or if the…

Baard
- 809
- 10
- 26
0
votes
0 answers
Apparent missing opcode in `beq` instruction in ARM bare-metal startup code
I've used arm-none-eabi-objdump to look at the internals of a crt0.o file. To be specific, this is is one of the crt0.o files that came packaged with the arm-none-eabi toolchain.
I'm confused by the use of the beq opcode near the start of the .text…

AJM
- 1,317
- 2
- 15
- 30
0
votes
1 answer
Error: libusb_open() failed with LIBUSB_ERROR_ACCESS visual studio code
I want to debug a Raspberry Pi Pico with another Raspberry Pi Pico but when I try to debug "hello_uart.elf", I receive the following output error:
Reading symbols from /usr/bin/arm-none-eabi-objdump --syms -C -h -w…

Blanca Tonda Pedraja
- 1
- 1
- 2
0
votes
0 answers
Cross compile unit tests to arm-none-eabi and emulate in qemu
I've got code that is some what compiler dependent and I'd like to run the unit test written in gtest in qemu. I've found this tutorial that explains how to do it for arm-linux-gnueabihf all though it doesn't work any more I've made a docker…

Gian Laager
- 474
- 4
- 14
0
votes
3 answers
Why does clock() returns -1 in C
I'm trying to implement an error handler using the clock() function from the "time.h" library. The code runs inside an embeeded system (Colibri IMX7 - M4 Processor). The function is used to monitor a current value within a specific range, if the…
0
votes
2 answers
Why can I not use std::string with the arm-none-eabi-g++ compiler?
This compiler business is not my forte...
I want to use the template library in my embedded c++ code.
For example (sudo code):
#include
int main() {
std::string str = std::to_string(3.87628);
}
When I try to compile this code,…

scottc11
- 716
- 2
- 7
- 20
0
votes
1 answer
How to quickly determine arm-none-eabi-gcc flags for a stm32 board?
I'm new to stm32 and I program on linux shell.
Everytime I watch a arm gcc makefile example, I saw a lot of gcc flags attached. I wanna know how to determine these flags for a specific type of board (stm32f10x, for example). Or should I say what…

LunarEclipse
- 661
- 1
- 4
- 14
0
votes
1 answer
How to generate a elf file to run in eclipse on windows using arm-non-eabi-gcc as cross compiler?
I am using arm-non-eabi-gcc as cross compiler.
I have created a simple hello world program in eclipse.
I am able to compile the program using arm-non-eabi-gcc, and helloworld.out[arm/le] file is getting generated but I cannot run it as it is runable…

ams
- 315
- 4
- 17
0
votes
0 answers
float values of array are not assigned during a for loop (STM32 / arm-none-eabi-gcc)
I want to convert a bunch of uint16_t values from an ADC into floating point voltages.
For this I use a for loop to loop through the uint16_t array and write the values to a float array.
But the float array remains 0 as if no assignment is ever…

mnemocron
- 23
- 1
- 4
0
votes
1 answer
Cmake not passing compiler options to compiler test
Just started using CMake for cross compilation of a library for ARM cortex M7.
cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=../.CMake/toolchain_armcortexm7.cmake -DOQS_USE_OP ENSSL=OFF ..
When running the cmake build, it first checks if the compiler is…

mnemocron
- 23
- 1
- 4
0
votes
2 answers
ARM Cortex-A9 NEON and VFP
I am using ARM Cortex-A9 (zynq7000) and I want to enable the neon SIMD but not to use it for floating points unless specified.
When compiled by arm-none-eabi-gcc with following fpu options (seperately)…

Salinda
- 3
- 2
0
votes
2 answers
how to force arm gcc compiler to not to use 32bit access for an unaligned memory
I work on a memory which cannot handle 32bit access on an unaligned address. For unaligned addresses the memory supports 8bit level access.
In my code there is a memcpy, when I pass a unaligned address to memcpy the chip was getting stuck.
Upon…

0xAB1E
- 721
- 10
- 27
0
votes
1 answer
Is compiler language support common to all compiler ports
I'm using GNU Arm Embedded Toolchain 10-2020-q4-major (arm-none-eabi-* 10.2.1) and I would like to take advantage of modern c++ features.
So I'm trying to find out which c++ features (language core features as well as libstdc++ features) are…

Hugo S
- 11
- 4
0
votes
0 answers
CMake error: AR19DD~1.EXE: fatal error: cannot specify -o with -c, -S or -E with multiple files compilation terminated
I am trying to create an executable from a project consisting purely of C files.
When I try to create a library as in the following:
add_library(application)
target_sources(application PUBLIC main.c)
target_include_directories(application PUBLIC…

sanjanaraju_inde
- 1
- 1
- 2