Browse By Tags

  • Enabling NEON Instructions on Pixhawk

    I am trying to get a quadcopter flying using the Pixhawk controller (Cortex M4 running NuttX RTOS) and I am using the Simulink Pixhawk PSP to implement a custom controller. Our controller uses neural networks, so neon instructions are needed (the build…

  • Race condition between wake up event and WFI on Cortex-M3/M4

    When I read below thread in arm forum, I still not clear which one is the safety way.

    Cortex-M4: guaranteed wakeup from WFI?

    There're two solutions mentioned above, using WFE instead of WFI, and swap __WFI() and __enable_irq().

    I can understand WFE…

  • How to prepare ADC data for Q31_t CMSIS DSP functions?

    Hi to you all,
    I've another post on the forum (here's the link Process ADC data, moved by DMA, using CMSIS DSP: what's the right way? ), but since I think I made some small steps forward I felt I could be a little more specific. I hope this…

  • Snake robot with ARM Cortex-M4 processor

    I want to design an snake robot with ARM Cortex-M4 processor can u help how to start? please help me.

  • Loss of information - SMMUL

    Why the Cortex M4 instruction SMMUL (32 = 32 x 32b) preserves a redundant sign bit and discards one useful bit of information? What could possibly be the justification for such blatant disregard of the ISO/IEC TR 18037 standard Fract format?

  • Process ADC data, moved by DMA, using CMSIS DSP: what's the right way?

    Hi to you all,
    I've a firmware running on a NXP LPCLink2 (LPC4370: 204 Mhz Cortex M4 MCU) board which basically does this:

    • Fills the ADC FIFO @40msps.
    • Copies the data into memory using the built-in DMA Controller and 2 linked buffers.
    • Processes one buffer…
  • Parallelism between CPU and FPU

    Hi.

    I have a question regarding Cortex-M4 processor with floating point unit. Is it somehow possible to do some computation in parallel in CPU (with integers) and FPU (with floats)?

    Probably not, because both units need their own instructions to perform…

  • Can we Modify the Flash Memory Access Permission with MPU( Memory Protection Unit)

    Hi Sir,

             Can i change Flash Memory Permission through MPU??

    Thanks and Regards,
    Harshan.

  • VTOR: offset address configuration

    Core: Cortex-M4F

    Do I need to configure vector table offset address to 0xnnnn_n000?

    In case of 0x3080(Flash region), the program jump to unexpected code.

    I think it is caused by mismatching between vector number and handler address.

    In case of 0x3000(Flash…

  • Usefulness of MPU in a non-OS system

    Hi.

    We are developing a product which has to achieve some safety requirements. The system is quite simple, non-OS, running in a Privileged mode only on a Cortex-M4. I would like to implement a Memory Protection Unit somehow. Could you please give any advice…

  • Memory protection unit - Cortex-M4

    Hi.

    I am writing back regarding MPU usage. I implemented it into the software in next ways (note, that program is quite simple - only privileged mode, no RTOS):

    1. I enabled background region, thus all addressable memory is fully accessible, unless there…

  • Hard Fault in cortex m4

    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…

  • vfp problem

    Hi

    I had a problem.

    I can use vfp in user mode but not work in priviledge level.

    Is there any wrong setting in CP10 , CP11 or any other wrong setting??

    BR

  • Cortex M4 exception return sequence

    Hi,

    I think I am just getting confused with this even if (or because of) I read the book and manuals again and again.

    At exception entry, the processor saves R0-R3, R12, LR, PC and PSR on the stack. Saving PC means that the address of the instruction to…

  • How long bitfields on which ARM?

    I need to be able to handle long bitfields as effectively as possible. Right now I need up to 64 bits in length.

    Are there instructions to set, clear and test individual bits in one cycle available for some of the architectures? Which? Particularly, will…

  • Help me jump into ARM world !(I know nothing but AVR)

    Hi,  Sorry if this is a long thread but i'm really confused.

    I program for AVR MCUs and also know about Arduino, I can program for different ATMEL MCUs with looking at datasheets, And i also programmed a few basic stuff on Cortex-M3 LPC1768, without…

  • serial wire debug

    sir,

         I am working with SWD(serial wire debug protocol) on cortex m4 architecture, one thing  i don't understand that i am unable to write value into registers r13 and r14 the remaining registers all are updating but for r13 and r14 i am unable to…

  • updating CPSR in USER UNPRIVILEGED mode

    as we know supervisor mode is priviliged and user is not. at reset time in debugging mode, i read the cpsr it is 0x1d3 means in supervisor mode, so i can change CPSR so i changed it to 0x1d0 which is user mode, since user mode is unpriviliged so i must…

  • Indication to begin a program

    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 !

  • Break Points and Watch Points

    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 …

  • Get current active interrupt priority

    Hi everybody,

    We are working on a simple priority RTC (run to completion) framework for the Cortex M3/M4. Thanks to the NVIC/BASEPRI, we got most of this functionality for free but we want to extend it to user tasks.

    In our implementation we need to determine…

  • How to acknowledge/clear active interrupt in Cortex-M4

    Hi all,

    I'm testing interrupt on a Cortex-M4 based platform. So far I have managed to get my interrupt handler called. It clears the interrupt source coming from the peripheral. But before the pin to NVIC is de-asserted, the handler is called again. At…

  • Which is best ARM starter board for 32 Bit 3D printer?

    Hello I was curious about which ARM launch/starter board would be best used to create an electronics controller for a 32 bit 3D FDM printer?  I was thinking that I've seen one project for the TI TM4C123G launchpad that might work.  But are there better…

  • STRD ATOMIC?

    Hi, I make a software for Cortex-A9 and Cortex-M4 (both uni-processor system).

    Question.

    Is 64bit-aligned STRD(64bit memory access) atomic ?

    (I know tha It is not atomic, but i don't know behavior.)

    For example:

    LDR R2,=buff

    mov R0, #1

    mov R1, #2

    STRD R0…