• stmdb instruction *appears* not to work correctly - Cortex M4 / SAM4L

    HarryAtElpro
    HarryAtElpro

    I'm struggling to track down a problem here. It appears to be that the stmdb instruction isn't pushing all of the requested registers, and when the corresponding ldmia.w instruction executes, it pops a PC value that sends the processor executing code…

    • 2 days ago
    • Processors
    • Cortex-M / M-Profile forum
  • fopen in simulation

    AFR
    AFR

    Hello,

    I try to understand how I can use fopen with the simulator of keil. The processor use is a CORTEX-M4.

    I need to do that because I develop unit test under RTRT and use Keil to run the instrumented code. The function fopen is added by RTRT to save…

    • 3 days ago
    • Software Tools
    • Keil forum
  • Compiling libgcc not optimized

    EnricoTabanelli
    EnricoTabanelli

    Good moorning,

    I am trying to compile libgcc for arm-none-eabi target from scratch, since I need to compare Floating Point SW emulation on an ARM Cortex-M4 and Risc-V based processors. The problem is that by default GCC includes the optimized version…

    • 10 days ago
    • Processors
    • Cortex-M / M-Profile forum
  • Problem with debugging mode

    Hellcat
    Hellcat

    Hi 

    I was using Keil 5 to debug my code on #1 board, somehow the code was kind of stuck, it has no response to reset, and cannot run anywhere, the same code works with no issue on the other self-build board(these two are basically the same), this #1 board…

    • 15 days ago
    • Software Tools
    • Keil forum
  • How to realise Real-time detection of access of memory beyond the bounds of an allocation block, instead of period detection in Cortex-M4. Please give me any idea.

    Gray
    Gray

    In my application, I have already redefine malloc and free with keil. Now I hope that the program
    will be stopped immediately at the exact location at which the program wrote beyond the
    allocated data.

    Is there any idea to achieve it?

    • 16 days ago
    • Processors
    • Cortex-M / M-Profile forum
  • CMSIS5: Matrix assignment doesn't work in my code. How to debug?

    Guglie
    Guglie

    Matrix assignment doesn't work in my code, seems a very strange bug, probably in my code, but how can I debug?

    I tested with CMSIS 5.6 and 5.7

    arm_matrix_instance_f32 Hm;
    static float H[3] = {0}; 
    arm_mat_init_f32(&Hm, 1, 3, (float *)H);
    …
    • 1 month ago
    • Processors
    • Cortex-M / M-Profile 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…
    • 2 months ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • FVP Debug problems for Blinky Example project on Cortex-M4

    Sagittarius
    Sagittarius

    Hi,

    I'm using ARM DS 2020, I have imported a Blinky Example Project for Cortex M4 STM32 Nucleo.

    When I'm trying to build a model debug connection for it and run the project on FVP Fast Model, the debug process stuck at SystemCoreClockConfiguration…

    • Answered
    • 3 months ago
    • Software Tools
    • Arm Development Studio forum
  • Create a shared library for multiple applications for ARM cortex-m4

    Robi123
    Robi123

    Hello everyone!

    I'm trying to create project which contains a drivers library and two separate application (Booltloader + app), now I want to share the drivers library between the two apps in order to save space on the flash...

    I saw this tutorial…

    • 3 months ago
    • Software Tools
    • Keil forum
  • Which bit fields are for Cortex-M4F SCB_ICSR.VECTORPENDING

    JL.Zhang
    JL.Zhang

    Hi Team,

    I would like to check the SCB_ICSR register, the content of 'Cortex-M4 Devices Generic User Guide' makes me confused. 

    According to the document DUI0553B, this figure shows the VECTORPENDING bit is [21:12]. But the Table 4-15 shows that…

    • 3 months ago
    • Processors
    • Cortex-M / M-Profile forum
  • Reading analog pin while boundary scanning

    ronit
    ronit

    Hii everyone,

    I'm just starting to boundary scanning methods. After seeing a diagram in one of your blog, I come to know that there is a scan cell between register and actual pin, from where we can see the state of a pin whether it is high or low by checking…

    • 4 months ago
    • Processors
    • Cortex-M / M-Profile forum
  • Reading suggestions to start programming with STM32H747 like mcu, especially with GCC

    Carlos Delfino
    Carlos Delfino

    I'm starting my studies on programming for Single Chip MCU with multicore, and I'm having a little trouble finding material on this topic.

    I read a post here in the community about the NXP's LPC4300 which is a Cortex-M4 + M0, which was very instructive…

    • 4 months ago
    • Processors
    • Cortex-M / M-Profile forum
  • Moving from Keil Compiler 5.6 to 6.13

    kelapuress
    kelapuress

    Hello,

    I want to move from Keil Compiler 5.6 to 6.13 for my FreeRTOS based code on Cortex M4. I found out the following problems in doing so,

    1) cmsis_armclang.h was not found. For this I found a compatible version from web and used that, it works but…

    • 4 months ago
    • Software Tools
    • Keil 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…

    • 5 months ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • Problem when dynamically loading code (Cortex-M4)

    Mrat
    Mrat

    Hello everyone.

    I want to implement dynamic loading of functions in RAM for a Cortex-M4.  It partially works but with a small hack which is not ideal.

    First I create the binary data for the function by compiling my desired function:

    int f1(int a,int b)…

    • 5 months ago
    • Processors
    • Cortex-M / M-Profile 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…
    • 5 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…

    • 5 months ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • GSM driver in Arm Cortex-M4F

    vinoth
    vinoth

    Hi All,

    I needs to port GSM driver in Cortex M4 Core. I am working on IMX8QM have Cortex-M4 Core. Will you please provide the GSM driver ?

    Regards,

    VinothS,

    • 5 months ago
    • Processors
    • Cortex-M / M-Profile forum
  • FPB BreakPoint(without Debugger)

    shincm
    shincm

    Hello,
    My App (cortex m4) needs to set up a breakpoint directly from code, in order to jump to an interrupt when an instruction from a certain address is fetched.
    This without using a debugger.
    I searched in the forum and tried the method.

    1. DebugMon…

    • Answered
    • 6 months ago
    • Processors
    • Cortex-M / M-Profile forum
  • Example of what happpens inside the Cortex-M 4

    Frederikke Kold
    Frederikke Kold

    Hello i am a student at cphbusiness in Denmark, and i am currently doing a research project on the Cortex-m 4. 
    i am hoping someone can help me understand what exactly is going on inside the processor. I have attached a picture, and i am hoping someone…

    • 6 months ago
    • Processors
    • Cortex-M / M-Profile forum
  • Display layout configuration

    vinoth
    vinoth

    Hi All,

    I am working in Arm Cortex M4. I needs to rotate the display to 90 deg. Will you please provide the solution. I am using Display Processing Unit.

    Thanks & Regards,

    Vinoth S,

    • Answered
    • 6 months ago
    • Developer Community
    • Infrastructure Solutions
  • STM32H745 dual-core debugging with IAR toolchain

    madhan719
    madhan719

    Hi All!

     

    I am working on STM32H745 dual-core controller and IAR Embedded Workbench for ARM toolchain V8.40.1 for development.

    I have completed all my work on individual core test and debugging with help of ST-Link V3 as debugger but unfortunately, I am…

    • 6 months ago
    • Processors
    • Cortex-M / M-Profile forum
  • Program does not run with optimization disabled, except if debugging

    Enzo Redivo
    Enzo Redivo

    Hello.

    I've been having issues with a program of mine that works perfectly fine while running with optimizations enabled but if I disable it, it doesn't seem to get to main, the only exception being running in debug mode.  I have set up the pins…

    • 7 months ago
    • Software Tools
    • Keil forum
  • Performance ratio between A35 and M4

    Mohamed_Tarek
    Mohamed_Tarek

    I am working on project and i used A35 to measure the performance of Application and this application will be ported on M4 , is there a fixed ratio or an equation so i can estimate the execution time of the application on CM4 ?

    • Answered
    • 7 months ago
    • Processors
    • Cortex-A / A-Profile forum
  • How can we use HAL library in S32K146 MCU as i have learnt STM32F4 Discovery using HAL library, and currently using S32Design Studio for ARM?

    ShivamGupta
    ShivamGupta

    I am currently working on a bettery managament system for one of of my electric vehicle project. for that i am using S32K146 MCU.

    • Answered
    • 7 months ago
    • Developer Community
    • Infrastructure Solutions
>