• gnu GCC option to enforce 8-byte stack alignment (necessary for R52)?

    BenjaminEhlers
    BenjaminEhlers

    Hello,

    ARM support and R52 TRM have indicated that the R52 core requires maintaining an 8-byte aligned Stack (meaning compiler shall always push/pop registers in even numbers), and I see in my current setup the GNU GCC compiler is not adhering to that…

    • 29 days ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • Dwarf Error: Could not find abbrev number 38 / undefined reference to `memcpy'

    Davy Souza
    Davy Souza

    Hello guys,

    I`m trying to compile a simple UEFI Hello World using EDKII and a GCC cross compiler as described in this post:

    • https://developer.arm.com/tools-and-software/open-source-software/firmware/edkii-uefi-firmware/building-edkii-uefi-firmware-for…
    • 29 days ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • Cannot build first stage gcc for a configured cross-compiler

    m3taw1lL
    m3taw1lL

    I'm trying to build a gcc cross-compiler from source, and whenever I try to build the first stage gcc it results in multiple errors. I'd appreciate any help!

    Ubuntu 18.04.3 LTS
    gcc-7.5.0
    autoconf-2.69

    ./configure options
    --target=arm-none-eabi…
    • 1 month ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • Altera Baremetal GCC toolchain supported on ARM DS Gold Edition?

    Adeeljs
    Adeeljs

    I am working on Cyclone V device with Altera baremetal GCC toolchain in DS-5. Can I continue my work in latest DS Gold Edition with the same toolchain?

    • 1 month ago
    • Open Source Software and Platforms
    • Arm Development Platforms forum
  • Catching C++ Exceptions with GCC Arm None EABI

    Thomas Willson
    Thomas Willson

    I've been struggling to get exceptions to work properly on a Cortex-M4 project with the Arm's GCC distribution. The throw seems to work successfully but not the catch.

    class MyExc : public std::exception {
    	virtual const char* what() const noexcept…

    • Answered
    • 2 months ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • Position inpdeped code for bootloader.

    Semiory
    Semiory

    Hello,

    I'm creating a custom OTA firmware update on cc2640 chip from TI. (Cortex M3)
    For this reason two memory regions are reserved for firmware images.
    The problem is, the code works only if it is stored in one of the regions. (According to the…

    • 2 months ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • libsupc++_nano.a and C++ exceptions

    tgree
    tgree

    Hi,

    We'd like to add support for C++ exceptions (yes...) to our embedded firmware.  Up until now we've been linking against libsupc++_nano.a and it has worked great.  However, we've found that it does not work for throwing C++ exceptions.  The…

    • 3 months ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • repository for Gnu Arm Embedded Toolchain

    mastupristi
    mastupristi

    I found this repository https://github.com/ARM-software/toolchain-gnu-bare-metal that seems to contain the files I expected to find.

    However, it contains only one tag that refers to version 9-2019-q4.

    Is this the right repository? Why isn't version 9…

    • 4 months ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • CortexM4 -mfloat-abi=hard, linker error

    Sven Savic
    Sven Savic

    I am trying to build baremetal binary for cortexm4 using fpu=fpv4-sp-d16 and float-abi=hard options.

    While building with float-abi=soft works fine, as soon as I switch to hardware fpu, i get linker error about 

    VFP register arguments in libc.a(lib_a-abort…
    • 4 months ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • float-abi hard, linker error on CortexM4

    Sven Savic
    Sven Savic

    I am trying to build a bare metal CortexM4 code for LPC5410x microcontroller. While code builds and links fine using soft floating point option, as soon as I enable hard float-abi, I get linker errors about libc.a

    I am using : gcc-arm-none-eabi-9-2020…

    • 4 months ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • Equivalences between flags (parameters) of the cc and gcc compilers

    HugoEspinosa
    HugoEspinosa

    Hi. First of all, I appreciate your time spent on your response.

     

    I need to compile an application and the makefile it provides uses the cc compiler and the parameters (flags) are not equivalent with my compiler. I have the gcc 4.6.1 compiler.

     

    Could…

    • 5 months ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • Stack initialisation in GNU ARM toolchain

    Vaso
    Vaso

    Checking the startup file provided as an example in the GNU ARM toolchain, I couldnt understand one thing.

    Code snippets provided here are taken from examples included in GNU ARM Embedded Toolchain files downloaded from your website. Code compiles and…

    • 6 months ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • Strange behaviour of ld saving vma and lma infos into elf

    mastupristi
    mastupristi

    The question concerns the vma and lma that can be expressed in the linker script with the keyword AT.

    let’s take the following linker script:

    /* Entry Point */
    ENTRY(main)
    
    /* Specify the memory areas */
    MEMORY
    {
      FLASH (rx)      : ORIGIN…

    • 6 months ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • arm-none-eabi-nm: some symbols are not related to any source file

    mastupristi
    mastupristi

    In my embedded project I compile `amazon-freertos/lib/FreeRTOS-Plus-TCP/FreeRTOS_Sockets.c` in this way:

    /opt/gcc-arm-none-eabi-8-2019-q3-update/bin/arm-none-eabi-gcc \
    	-std=gnu11 \
    	-mcpu=cortex-m7 \
    	-mthumb \
    	-mapcs \
    	-mfloat-abi=hard \
    	-mfpu…

    • 8 months ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • md_apply_fix when using trick to simulate __attribute__(at())

    Alex Earl
    Alex Earl

    I am using a "trick" to simulate __attribute__(at()) from the ARM toolchain in GCC. I have a macro defined as 

    #define __AT(name, addr) asm(".equ " #name ", " #addr)

    Then I have something like the following:

    extern volatile…

    • 9 months ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • arm-none-eabi-gcc default parameters

    mastupristi
    mastupristi

    how to know exactly which parameters are enabled/disabled by default for arm-none-eabi-gcc?

    I have the doubt thinking about the parameter `-fshort-enum`.

    Try to compile this example (main.c):

    #include <stdio.h>
    
    typedef enum
    {
    	A,
    	B,
    	C,
    	
    	max_e…

    • 9 months ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • Cross-compiling and building a simple Hello world application for running on Heterogenous architecture

    TakiEddine
    TakiEddine

    I am new to ARM

    I would like to cross-compile a simple Hello world c++ code for Linux distribution in order to debug and run it on my Hardkernel ODROID-XU4 board. For this purpose I'm following this tutorial https://developer.arm.com/tools-and-software…

    • 10 months ago
    • Open Source Software and Platforms
    • Arm Development Platforms forum
  • printf retargetting for nano-specs Cortex M0

    eugch
    eugch

    With nano-specs I can't get printf statements like this to work where it needs to take in values from a variable.

    printf ("Data1 %d\n", data1);

    A simpler printf with just characters work ok.

    printf ("abc\n");

    Per the standard CMSDK…

    • over 1 year ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • Default crt0.o startup for GCC - Cortex M0

    eugch
    eugch

    I am trying to write a bootloader that fits within a 4Kbyte space and I'm trying to keep the essential code as small as possible.

    However, with the standard default setup from the CMSDK Cortex M0 enviroment, even with a empty main(), I notice that…

    • over 1 year ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • Using Compute Library in a c++ project as static library, build with linaro gcc 7.3

    Yunus Y.
    Yunus Y.

    Hi again;

    I've built ComputeLibrary in an Linux Environment using gcc 7.x version targetted for bare_metal and armv7a. Build was succesfull and I have 3 library (.a extension) files called

    'arm_compute__core-static'

    'arm_compute_graph…

    • over 1 year ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • Multiple Application Code with Bootloader

    eugch
    eugch

    Hello,

    Looking for some pointers on the scenario below. I'm fairly new to firmware and bare-metal programming.

    In the system I'm working on, I am looking to get a bootloader and 2 application programs compiled. The 2 application programs will be placed…

    • Answered
    • over 1 year ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • [CMSIS-Driver] Rationale of volatile in type of GetStatus

    Zeb
    Zeb

    Dears,

    Whould you please help me understanding why "volatile" has been introduced since CMSIS-Driver v2.2 into the "status" type?

    For instance, here : https://github.com/ARM-software/CMSIS_5/blob/develop/CMSIS/Driver/Include/Driver_I2C…

    • over 1 year ago
    • Open Source Software and Platforms
    • Arm Development Platforms forum
  • Optimization difference between C and C++

    B_Cartier
    B_Cartier

    I  noticed a optimization difference between compiling a simple source code with ARM GCC in C and C++. The C++ version seems to optimize a lot less stack usage.

    To demonstrate this problem, I compiled the following code with arm-none-eabi-gcc version gcc…

    • over 1 year ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • multiple definition of `__stack_chk_fail'

    Alexandre Gonzalo
    Alexandre Gonzalo

    Hi,
    I am trying to migrate GCC from 7.2.1 to 8.3.
    To do so, I took the prebuilt binaries from your website
    developer.arm.com/.../downloads

    I used to take the packages from Linaro in the past.
    I am using the bare metal binaries for AArch64.
    I have the following…

    • over 1 year ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • how do i install gcc-arm-none-eabi-8-2018-q4-major-linux.tar.bz2 in ubuntu 18

    jenewari
    jenewari

    how do i install  gcc-arm-none-eabi-8-2018-q4-major-linux.tar.bz2 in ubuntu 18.

    I have unzipped it to a directory as explained but I couldn't use it.

    any help, thanks

    • over 1 year ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • View related content from anywhere
  • More
  • Cancel
>