• Is there any way to enforce padding between subroutines using the scatter file?

    Ghantaz
    Ghantaz

    Hi!

    I am using an ARM Cortex-M23 microcontroller. I wish to pad every subroutine with certain number of bytes. Using the ALIGNALL attribute on an execution region I am able to achieve some success but I cannot control the number of bytes. Further, the…

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

    • 3 months ago
    • Processors
    • Cortex-M / M-Profile forum
  • Programming FPGA Block RAM connected to Cortex-M0 using JTAG

    Mezan1
    Mezan1

    Hi,

    I am connecting the BRAM inside FPGA with the Cortex-MO processor. Is it possible to program the BRAM using JTAG? The BRAM will act here as on-chip memory having the memory map of  0x00000000. I do not intend to put the program file in the beginning…

    • 3 months ago
    • Processors
    • Cortex-M / M-Profile forum
  • Optimization of Neon Intrinsics on ARM cortexa53

    khan777
    khan777

    I am using ARMv8 GCC compiler and I would like to optimize Neon Intrinsics code for better execution time performance. I have already tried loop unrolling and I am using look up table for the computation of log10. Any ideas?

    Here is the code:

    static inline…

    • 6 months ago
    • Processors
    • Cortex-A / A-Profile forum
  • gcc does not generate correct code while building PIC

    rgujju
    rgujju

    Hey guys,

    I have been exploring building PIC using the gcc toolchain and I think there is a bug.

    I first build a shared library using 

    arm-none-eabi-gcc -shared -mcpu=cortex-m4 -mthumb -Wall -g -fPIC -fmessage-length=0 --specs=nosys.specs mylib.c -o libmylib…

    • 7 months ago
    • Processors
    • Cortex-M / M-Profile forum
  • IT instruction block question : how does this work .. (block seems always executed)

    d.ry
    d.ry

    I have this 'tight' piece of ASM I'm looking at how it's working, and it contains IT instruction ( I've never seen before until now).

    Now all code works (compiler generated!) , but, i'm also stepping though each instruction for cycle…

    • 7 months ago
    • Processors
    • Cortex-M / M-Profile forum
  • BCC vs BNE

    ReqDePache
    ReqDePache

    To detect negative numbers why do programming use BCC (check carry bit ) instead of BNE ( check N bit , which is obviously more straightforward ) ?

    • Answered
    • 9 months ago
    • Processors
    • Cortex-M / M-Profile forum
  • Is there a built-in ARM assembly instruction for the following problem?

    Shyamal
    Shyamal

    Is there an ARM assembly instruction for the following problem of converting between string to number, number to string, and number to number?

    String -> Number

    Number -> String

    Number -> Number

    Where String is a character array

    and

    Number is…

    • Answered
    • over 1 year ago
    • Processors
    • Cortex-M / M-Profile forum
  • ARM Assembly how to print numbers instead of their ascii representation of that number

    Kanan Jarrus
    Kanan Jarrus

    I am new to arm assembly, i'm trying to print integer to screen instead of their ASCII representation of that number. Below is the code which i'm trying with instead of printing 99 i'm getting 'c'

    .global _start
    .text
    _start:
    
    @ write…
    • Answered
    • over 1 year ago
    • Processors
    • Classic processors forum
  • How to generate delay in CPU?

    MNB
    MNB

    Hello,

    I am trying to generate delay in CPU. For instance after writing a register, I want to read it again after 1000ns. What should be the C code or the assembly code for the same?

    Thank you

    Nishank Bansal

    • Answered
    • over 1 year ago
    • Processors
    • Classic processors forum
  • "BX LR" causing INVPC Usage Fault exception

    Sohaib
    Sohaib

    I have implemented a context switching code. For going back to privileged user mode after setting the return value in SP + 0x18 address, I am using BX LR instruction.

    But code execution goes to HardFault handler and INVPC bit of USAFAULT register is set…

    • Answered
    • over 1 year ago
    • Processors
    • Cortex-M / M-Profile forum
  • Replacing branch-instruction with address assignment to PC

    Raad
    Raad

    Hi,

    in a thumb-assembly file (my toolchain is gcc 4.8), I want to replace a branch with address assignment to the program-counter.
    So instead of:

    b   lbl

    I want to have something like:

    pc = address(lbl)


    This solution works. Here, I use the following code to…

    • over 3 years ago
    • Processors
    • Cortex-M / M-Profile forum
  • how to set pendsv bit in ARM7

    jogocrazy
    jogocrazy

    i want to a very easy way of setting this bit

    • over 2 years ago
    • Processors
    • Cortex-M / M-Profile forum
  • How to import C variable in an assembly code in a .s file

    vdavi81
    vdavi81

    I'm new of arm processor and I'd like to import a variable in a .s file the variable is definited in a c file:

    #define INIT_VAR 1

    .......

    extern uint32_t save_mem = INIT_VAR;

    or better I need to write inside a memory address of that variable.

    …
    • Answered
    • over 1 year ago
    • Processors
    • Cortex-M / M-Profile forum
  • ARM7 Programming question!

    Velagala J R N D V Reddy
    Velagala J R N D V Reddy

    Hi

    I had a doubt about programming the arm7. In which scenario I should use explicitly Assembly language instructions while programming.

    Thanks

    • Answered
    • over 6 years ago
    • Processors
    • Classic processors forum
  • Delay Subroutine LPC2148 Assembly

    Gaurav Pathak
    Gaurav Pathak

    Hi Experts,

    I have just started with ARM assembly, I have written a program in assembly for toggling GPIO. The issue that I am facing is that the code works when I use several "nop" in place of "bl delay". The code goes below:

    .equ IODIR0…

    • Answered
    • over 3 years ago
    • Processors
    • Classic processors forum
  • How to flush the pipeline of a processor using XScale-compatible Assembly?

    rbedin
    rbedin

    Hello,

    Some friends and I are playing with a Cortex-A15 core (using a Beagleboard) but, due to compatibility with some legacy code, we need to use the --cpu=xscale option when building our executable. We were able to perform a board startup by using the…

    • Answered
    • over 1 year ago
    • Processors
    • Cortex-A / A-Profile forum
  • M0+ Stack Pointer (PSP/MSP) Clarification

    Sean Dunlevy
    Sean Dunlevy

    Background

     I'm working part-time on a Cortex M0+ based SoC converting a very processor-intensive section of C++ code (inner-loop executed 10s of 1000s of times a second & compiles to over 400 instructions using GNU O3) and after almost 3 months of work…

    • Answered
    • over 1 year ago
    • Processors
    • Cortex-M / M-Profile forum
  • Count the number of trailing zeros without clz?

    Will
    Will

    I am trying to count the number of trailing zeros in floating points without using the clz command. what would be the easiest way to rewrite this code?


    ctz
            RSB      r1,r0,#0
            CMP…

    • Answered
    • over 3 years ago
    • Processors
    • Cortex-M / M-Profile forum
  • Newbie want to learn Assembly on Raspberry Pi B 2.0 running Debian

    Kryno Bosman
    Kryno Bosman

    Hello everybody,

    I am new to Assembly programming and I would like to learn it.

    Could you advise me which (e)books I should start with and the software I can use on my Raspberry Pi B 2.0 running Debian?

    Thanks!

    • Answered
    • over 5 years ago
    • Processors
    • Cortex-M / M-Profile forum
  • ARM v7 Instruction Set Architecture Opcode Code

    DavidSV2017
    DavidSV2017

    Hello,

    I am working with some ARM hardware and I wrote a program in ARM Assembly. The ARM hardware that I am using requires the the program to be in HEX values and I found a website online that allowed me to convert the ARM Assembly language to HEX, the…

    • Answered
    • over 3 years ago
    • Processors
    • Cortex-A / A-Profile forum
  • Starting with Arm assembly to obtain machine code

    t.d.garland100
    t.d.garland100

    I am trying to take an ARM LEGv8 assembly code to input into an assembler to obtain the machine code.  I have been searching for tutorials on this for using Eclispe, but I have not. Even successful.  I have only found tutorials on starring with the C code…

    • Answered
    • over 3 years ago
    • Processors
    • Cortex-A / A-Profile forum
  • Development in Assembly Language

    AnthonyPaulO
    AnthonyPaulO

    Does anyone know where I can find the toolchain for developing apps on an A57 (Raspberry Pi 3) in Assembly Language? I am looking in particular for a Windows toolchain that will allow me to cross compile, but I'll take anything at this moment since all…

    • over 3 years ago
    • Processors
    • Cortex-A / A-Profile forum
  • Aarch64 Port

    Birty
    Birty

    Hi all - not sure if this is the right place to ask, so feel free to remove if it isnt....

    Im looking to get some 32bit arm assembler code ported to the armv8 architecture and am struggling to find anyone to do this work. Could you point me at anybody…

    • Answered
    • over 3 years ago
    • Processors
    • Cortex-A / A-Profile forum
  • ARMv8 Assembly Language IDE

    AnthonyPaulO
    AnthonyPaulO

    I'm currently using Windows Notepad to program my Raspberry Pi in assembly language and I run it through 'as' and 'ld' to create the binary output. I would like to use an editor that has syntax highlighting specific to the version of ARM I'm using (in…

    • Answered
    • over 2 years ago
    • Processors
    • Cortex-A / A-Profile forum
  • View related content from anywhere
  • More
  • Cancel
>