• Importing CPP libs to CubeMX project

    winterGrey
    winterGrey

    Hi,

    I am trying to import .cpp  file to stm32f103c8 CubeMX project. I have a CPP file I want to import to keil. How can I compile CPP and C files at the same time on Keil. Can I do that?

    I want to use the HAL library also I have one cpp file.  I couldn't…

    • Answered
    • 15 days ago
    • Software Tools
    • Keil forum
  • How to download aarch64 corss compiler?

    gamecss
    gamecss

    I go to GNU Arm Embedded Toolchain,but only support 32-bin arm.

    I go to GNU Toolchain for the A-profile architecture,but version too old.

    • 3 months ago
    • Software Tools
    • Arm Compilers 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
  • (ARMLMD_LICENSE_FILE) ERROR

    Fabiano Junqueira
    Fabiano Junqueira

    Hello, how are you?

    I'm working on a project and I have to get DAP-Link to run, however, I'm having some difficulties getting the environment to run. I'm following the tutorial link github.com/.../DEVELOPERS-GUIDE.md

    I am having problems in…

    • 3 months ago
    • Software Tools
    • Arm Compilers forum
  • std::mt19937 with ARM Compiler 6 uses sys_open and breaks retarget.c

    Roman Khazanskii
    Roman Khazanskii

    I'm using Keil V5.30.0.0 and ArmClang.exe V6.14.

    When I tried using std::mt19937, like so:

    #include <random>

    std::mt19937 mt;
    std::uniform_int_distribution< uint32_t > dist(0);

    auto a = dist( mt );

    I got linker errors:

    .\obj\rcu.axf: Error:…
    • 4 months ago
    • Software Tools
    • Keil forum
  • Making the most of the Arm architecture with GCC 10

    Kyrylo Tkachov
    Kyrylo Tkachov

    The GCC 10.1 release

    The GNU Compiler Collection is used to program a rich variety of systems: from the fastest of supercomputers to the tiniest of micro-controllers. We at Arm love ecosystems. The recently released GCC 10.1 is the culmination of a year…

    • 5 months ago
    • Software Tools
    • Tools, Software and IDEs blog
  • 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
  • Building C++/ARM project with console

    Luís Tavares
    Luís Tavares

    I have to make an automation for a school project. But in order to do that I need to have a DS-5 executable file for a specific project. Is there any way to compile a multi C++ file project with assembly code in the console?

    • 5 months ago
    • Software Tools
    • Arm Compilers forum
  • Removed .c and .h files from project, but got an error

    IlgarSky
    IlgarSky

    Hello,

    I`ve added the .c with .h files to project. After removed them both from folders. But now got compiler error. Seems compiler still searching for it. How to fix it?

    Using Keil uVision

    *** Using Compiler 'V5.06 update 6 (build 750)', folder: 'C:\Keil_v5…

    • 6 months ago
    • Software Tools
    • Keil forum
  • Debugging and Optimizing Performance of Applications on AWS Graviton2

    Florent Lebeau
    Florent Lebeau

    If you like movies, you may spend a lot of time browsing which one you are going to watch next… What if we ask the world for advice?

    Let us use one of the many movie review databases available online. In this article, we are going to write a simple…

    • 5 months ago
    • Software Tools
    • Tools, Software and IDEs blog
  • Problem in understanding behaviour of GCC compiler (aarch64-none-elf-gcc) on Neon intrinsics for ARM cortex a53

    khan777
    khan777

    Hi,

    I am using IDE Xilinx SDK 2019.1 for my application and running it on ARM cortex a53  processor with Neon and floating point engine support available. I am working on a bare metal application.

    The problem I am facing is that, I am unable to understand…

    • 7 months ago
    • Processors
    • Cortex-A / A-Profile forum
  • Linking an armcc pre-compiled lib with a GCC project

    AloyseTech
    AloyseTech

    Hi,

    Would it be possible to link a library that has been compiled using armcc 5 to a GNU (GCC) based project?

    • 7 months ago
    • Software Tools
    • Keil forum
  • __attribute((used))has been declared, but the variable is still deleted when linking

    lrc
    lrc

    test code:

    int TestMain()
    {
    g_TestTest++;
    return 0;
    }

    #pragma clang section rodata=".rti_fn.6"
    __attribute((used)) const init_fn_t __rt_init_TestMain = TestMain;
    #pragma clang section rodata=""

    If you link to a .o file, no problem. But…

    • over 1 year ago
    • Software Tools
    • Arm Compilers forum
  • CPSR status back to C variable

    Luken8r Luken8r
    Luken8r Luken8r
    Note: This was originally posted on 17th November 2008 at http://forums.arm.com

    Im using the TI Code Composer suite with an ARM 7 and Im looking for a way to get the CPSR back into a C variable. I was looking through the documentation that came with the…
    • over 7 years ago
    • Processors
    • Classic processors forum
  • 6 ARM Compiler tutorials to help you write better software

    Joe Alderson
    Joe Alderson

    Gain a deeper understanding of the ARM® Compiler and the optimization techniques it uses. By understanding how to control these optimizations, your code can benefit from speed increases, size savings and lower redundancy. These tutorials have been…

    • over 6 years ago
    • Software Tools
    • Tools, Software and IDEs blog
  • How to access local C variables in Inline-Assembly?

    Muzahir
    Muzahir

    How do I access local C variables in Keil using ARM inline Assembly?

    • over 2 years ago
    • Software Tools
    • Keil forum
  • How do I declare a variable in inline ARM Assembly?

    Muzahir
    Muzahir

    How do I declare a variable in ARM inline Assembly?

    And how do I move the value from register to variable and vice versa?

    Looking for something like this,

    __asm(

        variable: Word #22222222

        mov r0, variable

        mov variable, r0

    )

    • over 2 years ago
    • Software Tools
    • Arm Compilers forum
  • Arm GCC lambda optimization

    B_Cartier
    B_Cartier

    Hello,

    I am working on an IoT project, mixing C and C++, and I am having stack issues with lambdas.

    The following code was compiled by gcc-arm-none-eabi-8-2018-q4-major-win32, with -Os and runs on a NUCLEO-L476RG. I monitored stack usage with Ozone.

    …
    • Answered
    • over 1 year ago
    • Software Tools
    • Arm Compilers forum
  • IAR Linking issue at High optimization level

    Ashi Gupta
    Ashi Gupta

    Hi,

    I am using IAR for development. 

    When i change the compiler option from None to High, it generates below linking error 

    Error[Lp011]: section placement failed

    However if i disable static clustering option, it works even when optimization level is set…

    • over 1 year ago
    • Software Tools
    • Arm Development Studio forum
  • TM4C123 UART1_Handler

    Mission
    Mission

    Hi All;

    I'm using uvision compiler. Below A portion of my code regarding UART1 RX interrupt.

    I was using reading flags. I want to use interrupt.

    I didn't get an interrupt. What is wrong?

    #define UART_INT_EN *((unsigned long int *)(0xE000E100…

    • over 1 year ago
    • Software Tools
    • Keil forum
  • Hi, I need RVCT V3.1 569 Any idea how / where can I get it?

    BrownT
    BrownT

    Would need it for a quite new project that involves an older firmware.

    • over 1 year ago
    • Software Tools
    • Arm Compilers forum
  • ARM NN with ONNX Parser

    Anto85
    Anto85

    Hi all, it has been already quite a few days that i've been trying to build the libraries for arm nn with onnx support. I always get to the last step and it fails. If i follow the official guide on this site, it seems like it cannot link the right compiler…

    • Answered
    • over 1 year ago
    • Open Source Software and Platforms
    • Machine Learning forum
  • ARM Compiler 6 - Optimization guidelines

    ToddS
    ToddS

    In the V5 to V6 compiler migration document is the following with respect to optimzations

    -O0 No Optimization. Not recommended for use in ARM Compiler 6.6

    -O1 Limited Optimization. This is currently the recommended level for source level debugging.

    …
    • over 1 year ago
    • Software Tools
    • Arm Compilers forum
  • Armcc vs gcc - which is better compiler

    Umehta
    Umehta

    Hello All,

    we use gnu gcc compiler with optimize option for our build.  But optimize option inline everything and hard to debug, can't see local variables & symbols.  General question, which is better compiler ARMCC (i know we have to pay license…

    • over 1 year ago
    • Software Tools
    • Arm Compilers forum
  • Why cant assign a structure pointer to uint8_t pointer in IAR embedded workbench

    Radoslav
    Radoslav

    Hi guys.

    I have the following problem. In my code I have to assign a structure pointer to uint8_t pointer so I can write into the structure byte by byte. Both are pointers that point to data of different types. Why I cant assign them each other. I am…

    • Answered
    • over 5 years ago
    • System
    • Embedded forum
>