Browse By Tags

  • Cortex-M RTOS related exceptions and concepts

    Hello,

    Recently, I came back to digging into RTOS working principles at the lowest level on Cortex-M family processors. I understand the concept of SysTick (or other time base), SVC and PendSV as RTOS system exceptions. Though, one question is still itching…

  • Is SVC pendable on cortex-m?

    Hey.

    I read ARMv7-M Arch manual.

    SHCSR register have SVCALLPENDED bit.

    So that, It seem SVC is pendable.

    But, 'Priority escalation' is written,

    When the group priority of a pending synchronous fault or supervisor call is lower than or equal to…

  • DMB, DSB, ISB on Cortex M3,M4,M7 Single Core parts

    I have been reading through the ARM documentation on memory and instruction barriers. 

    I have read that the single core ARMv7-M parts do not reorder instructions, as such the DSB and ISB are not needed, is this correct? 

    I have also read the same about…

  • When an exception is taken into account

    Hi

    Related to ARMv7-M architecture:

    I am searching through all infocenter documents but still cannot find anything and answer this question: "When an exception is taken into account?" I mean, are exceptions only serviced after the current instruction…

  • DWT

    Hello,

    I use DWT in Cortex-M4 to catch instructions that write or read memory contents and the problem is it doesn't stop immediately where I expect, it stops after 2-3 instruction later than where it should and the contents of registers are overwritten…

  • Can't understand the difference between armv7e-m and armv7e-m-pic?

    Hello people. I'm trying to do libgcc extraction for hard FPU's for k70 tower board. However, when I look at the libgcc library for arm targets, I find armv7-m, armv7e-m and armv7e-m-pic. I'm able to deduce from the armv7-m reference manual that the difference…

  • Link to download gcc support for TrustZone for ARMv8-M

    * All GCC 6 features, plus latest mainline features:
      + Full ARMv8-M support including atomics and Security Extensions
      + ARM PURECODE support for ARMv7-M and ARMv8-M Mainline
      + Co-processor intrinsics support
      + Cortex-M23 and Cortex-M33 support
      + -mthumb…
  • When an exception is taken into account

    Hi

    Related to ARMv7-M architecture:

    I am searching through all infocenter documents but still cannot find anything and answer this question: "When an exception is taken into account?" I mean, are exceptions only serviced after the current instruction…

  • Is a DMB required between loading BASEPRI and storing BASEPRI_MAX?

    Hi,

    I have a question regarding BASEPRI, BASEPRI_MAX, and DMBs as they relate to both the V7-M and V7E-M architectures.

    Let's say I have the following assembly,

    // stuff
    mrs r0, BASEPRI
    msr BASEPRI_MAX, #3
    // more stuff

    Is it necessary to put a…

  • New online training course - DesignStart Cortex-M3, An introduction to Armv7-M

    Following on from the launch of our new online training service, we have recently published a new video-based training course for developing software for the Arm DesignStart Cortex-M3 processor - DesignStart - An introduction to Armv7-M.

    This 1hr 15min…

  • M4 Assembly - Set Enable also enables the Clear Enable Interrupt Register

    Hi,

    I have some assembly for Cortex M4 (Arm 7M Thumb), I want to enable an interrupt that is connected to a push button on an STM32 F407. It works, but for some reason when I enable the set enable register, the clear enable register also gets set ? Is…

  • Present program counter address

    Good day,

    I want to refresh and (or) update my knowledge on ARMv7.

    Is it true for ARMv7-M that when CPU starts execute one instruction, PC value has already been updated/is being updated in parallel with address of the next instruction? Or PC is updated…

  • ARMv7-M: Question about syn/asynchronous exception?

    Hi all,

    I have little experience with bare metal programming at STM32 series and currently studying exception behavior in "ARMv-7m Architecture Reference Manual".

    I'm confused about syn/asynchronous exception at B1-569. I have one question about…

  • Is ARMv7-M3 thumb instructions compatible to ARMv7-A thumb?

    Hello guys,

    I am trying to verify some features of ARMv7-M3 in a software simulator platform for ARM. But this simulator only support ARMv7-A ISA.

    Is ARMv7-M3 instructions compatible to ARMv7-A, especially thumb instructions?

    Thank you very much.

  • What is the meaning of a 64 bit aligned stack pointer address?

    According to ARM Architecture Procedure Call Standard (AAPCS) on the ARMv6-M, and ARMv7-M architecture in  it says:

    "Although the processor hardware allows SP to be at any word aligned address at function boundaries, standard programming practice…

  • Updated ARMv7-M architecture reference manual for Cortex-M7 ?

    Has an updated v7m architecture reference been published yet?

  • Can keil compiler translate C code into SIMD instructions(ARMv7-m)


    When we write such code as following, can keil compiler automaticly translate it into SIMD STM.

      do{

              *p++ = 1;

               *p++ = 1;

               …

  • Critical interrupts

    In software there are often cases where you need to have critical interrupts serviced. For example, for:

    • Code profiling
    • Kernel debugging
    • Watchdog handling
    • Error handling.

    With the ARMv7-M architecture this can be achieved using nested interrupt handlers, but…

  • ARMv6-M vs ARMv7-M - Unpacking the Microcontrollers

    This article is a follow-on to Navigating the Cortex Maze. As a high-level overview, the earlier article provides an easy way-in to the ARM processor range. It covers Cortex-A (architecture ARMv7-A), Cortex-R (ARMv7-R) and Cortex-M (ARMv7-M).

    But the…