• Could you explain BCC command to me?

    Robert
    Robert

    Hi,

    I find C code not executing in the desired way. Then I step in assembly code of Tiva-C M4F core. Below is the disassembly code:

    $C$L5:   nop

    0000033a:   280A     CMP             R0, #10…

    • Answered
    • over 4 years ago
    • Processors
    • Cortex-M / M-Profile forum
  • What is the meaning of a 64 bit aligned stack pointer address?

    Murtuza Quaizar
    Murtuza Quaizar

    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…

    • Answered
    • over 4 years ago
    • Processors
    • Cortex-M / M-Profile forum
  • Synchronization primitives, do I need CLREX?

    Jan
    Jan

    Hi all,

    I'm trying to understand the LDREX/STREX commands in an ARM Cortex M3 MCU to implement atomic access to various variables (the goal is to implement semaphores/mutexes or increment/decrement shared variables).

    There are several ressources available…

    • Answered
    • over 4 years ago
    • Processors
    • Cortex-M / M-Profile forum
  • v7M debug architecture questions

    cray
    cray

    Dear sirs,

    Regarding v7m debug architecture, I have some questions after reading the v7m architecture document.

    Q1: There is no mechanism to send instruction to the core for execution in debug state, is that true?

    I guess the architecture uses  debug return…

    • Answered
    • over 4 years ago
    • Processors
    • Cortex-M / M-Profile forum
  • Is ARMv7-M3 thumb instructions compatible to ARMv7-A thumb?

    Kaiyuan
    Kaiyuan

    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.

    • Answered
    • over 3 years ago
    • Processors
    • Cortex-M / M-Profile forum
  • Hard Fault in cortex m4

    hemant
    hemant

    Hello All,

    Good Morning!

    I am working on Cortex m4.

    I have read following about hard fault ,

    "Bus Fault: detects memory access errors on instruction fetch, data read/write, interrupt vector fetch, and register stacking (save/restore) on interrupt (entry/exit…

    • Answered
    • over 3 years ago
    • Processors
    • Cortex-M / M-Profile forum
  • Problems with interrupting LDM/STM Cortex M4?

    Paul Giangrossi
    Paul Giangrossi

    I am seeing stack corruption running a Cortex M4 that seems to be related to interrupting multicycle instructions.

    The interrupt occurs during a STMDB sp!, {r4, r5, r6, r7, r8, r9, sl, lr}

    The ICI bits at the time of the interrupt equal 7. This means that…

    • Answered
    • over 5 years ago
    • Processors
    • Cortex-M / M-Profile forum
  • Current priority level of processor

    Gopal Amlekar
    Gopal Amlekar

    Hi,

    I have been reading about the exception mechanism of Cortex-M (M4 to be precise). The exception request is accepted by the processor if the current priority level of the processor is less than the incoming exception (this is one of the conditions to…

    • Answered
    • over 5 years ago
    • Processors
    • Cortex-M / M-Profile forum
  • NXP LPC2378 (ARM7 core) communication via SPI protocol

    Raza Kamal
    Raza Kamal

    I want to communicate NXP LPC2378 (ARM7 core) to some other devices via SPI (Serial Peripheral Interface) protocol.

    So how to write a C code to communicate a particular device as a Slave with Master (ARM7 controller)?

    • Answered
    • over 5 years ago
    • Processors
    • Cortex-M / M-Profile forum
  • Information on the Cortex-M7

    Jens Bauer
    Jens Bauer

    I believe that many of us are interested in the ARM Cortex-M7.

    Recently, jyiu posted a status update, where I asked a couple of questions about the architecture.

    A few questions on the subject was also asked in the Interview and Question Time with Joseph…

    • over 5 years ago
    • Processors
    • Cortex-M / M-Profile forum
  • Indication to begin a program

    amrani joutei
    amrani joutei

    I need some indications to begin writing a program.

    Write a compare routine to compare 64-bits values , using only two instructions.

    Thanks for your indications !

    • over 5 years ago
    • Processors
    • Cortex-M / M-Profile forum
  • ARMv8 exception vector significance of EL0_SP

    armdev
    armdev

    Hi,   I am new to ARMv8 architecture and while reading the v8 exception vectors I am not able to understand significance of adding SP_EL0 level vectors while SP_ELx vector set exists. What I am trying to find a use case where this is useful. I understand…

    • Answered
    • over 5 years ago
    • Processors
    • Cortex-M / M-Profile forum
  • system requirements

    SGR
    SGR

    what are the minimum hardware requirements to setup wifi on arm-7 processors.

    • over 5 years ago
    • Processors
    • Cortex-M / M-Profile forum
  • Break Points and Watch Points

    harshan
    harshan

    Greetings,

                   Sir,i am working on SWD, after  Research on Break Point & Watch Point i found One Thing That There are Some Comparators will Do These Things but I am not Very Sure That How These are Work …

    • Answered
    • over 5 years ago
    • Processors
    • Cortex-M / M-Profile forum
  • Debugging a Cortex-M0 Hard Fault

    Andy Neil
    Andy Neil

    There's many references to Debugging a Hard Fault on Cortex-M3 & M4; eg

    niallcooling's Developing a Generic Hard Fault handler for Armv7-M

    also:

    http://supp.iar.com/Support/?Note=23721

    https://community.freescale.com/thread/306244 - which…

    • Answered
    • over 6 years ago
    • System
    • Embedded forum
  • Cortex M7 DSP moving average UMAAL

    Mr_M_from_G
    Mr_M_from_G

    Hello,

    I am looking to do a moving average function using DSP instructions of ARM Cortex M7. Unfortunately I couldn't find a direct example. My goal is to have variables for

    - the sum

    - the new value

    - the oldest value

    Then the algorithm is sum =…

    • over 1 year ago
    • System
    • Embedded forum
  • Endian in Cortex-M4

    HimanshuDoshi19
    HimanshuDoshi19

    Hello to all,

    I am working on ARM Cortex-M4. Since it has 32-bit address bus, therefore I assumed that each 32-bit instruction will be allocated a physical address location in the Flash. But while reading the disassembly of the code, I got to know that…

    • Answered
    • over 2 years ago
    • Processors
    • Cortex-M / M-Profile forum
  • mismatch between ARMv7-M ref manual and core_cm7.h

    jheissjr
    jheissjr

    The ARMv7-M reference manual notes there eight ITM trace enable registers called ITM_TER0 to ITM_TER7.  However, core_cm7.h only has one ITM_TER register.  Can you clarify?  Is it an error in core_cm7.h?

    • Answered
    • over 2 years ago
    • Processors
    • Cortex-M / M-Profile forum
  • Cortex-M RTOS related exceptions and concepts

    Karolis
    Karolis

    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…

    • Answered
    • over 2 years ago
    • Processors
    • Cortex-M / M-Profile forum
  • Is SVC pendable on cortex-m?

    loquat3
    loquat3

    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…

    • Answered
    • over 2 years ago
    • Processors
    • Cortex-M / M-Profile forum
  • M4 Assembly - Set Enable also enables the Clear Enable Interrupt Register

    marcusob
    marcusob

    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…

    • over 2 years ago
    • Processors
    • Cortex-M / M-Profile forum
  • DMB, DSB, ISB on Cortex M3,M4,M7 Single Core parts

    Trampas
    Trampas

    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…

    • Answered
    • over 1 year ago
    • Processors
    • Cortex-M / M-Profile forum
  • Is a DMB required between loading BASEPRI and storing BASEPRI_MAX?

    Ramzyo
    Ramzyo

    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…

    • Answered
    • over 1 year ago
    • Processors
    • Cortex-M / M-Profile forum
  • When an exception is taken into account

    Karolis
    Karolis

    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…

    • Answered
    • over 1 year ago
    • Processors
    • Cortex-M / M-Profile forum
  • DWT

    Gabor M.
    Gabor M.

    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…

    • Answered
    • over 1 year ago
    • Processors
    • Cortex-M / M-Profile forum
>