Skip to main content
Filter by
Sorted by
Tagged with
3 votes
1 answer
42 views

I want to automate disassembly generation with GDB, and in the end I settled on disassemble function. I also want to print it with source code added, which can be achieved with /s or /m command. ...
user32077231's user avatar
3 votes
1 answer
69 views

The bytes 00 10 A0 B3 decodes to movlt r1, #0 in the arm 32-bit architecture. When I type the bytes 00 10 A1 B3 into the shell-storm online disassembler, it shows "N/A". However, in the ...
cr001's user avatar
  • 743
0 votes
0 answers
96 views

I have a simple file with plain C code with just one function: int Foo() { return 123; } I'm on Windows x64 and want to build a DLL from this file for arm64. I found the article - Build Arm64X ...
Maxim's user avatar
  • 2,164
-2 votes
1 answer
100 views

I'm doing an evolution to a STM32H7 firmware compiled with arm-none-eabi-gcc without standard startup files or libraries. The link command line is: arm-none-eabi-gcc -T"xxx.ld" -Wl,-Map=xxx....
Guillaume Petitjean's user avatar
0 votes
0 answers
58 views

I have an Arduino MKR Wifi 1010, which has an ARM Cortex M0+ processor, and try to implement sleep correctly. What happens is that an interrupt is registered, and then __WFI (Wait for interrupt) is ...
Caulder's user avatar
  • 459
2 votes
0 answers
128 views

I Am implementing Lockless ring buffer for multiple producer and single consumer (keeping in plan to extend it to multiple produce and consumer) using design reference of dpdk buffer : https://doc....
vinit Tirnagarwar's user avatar
-1 votes
1 answer
77 views

I'm trying to set lsm=landlock,lockdown,yama,integrity,apparmor,bpf on a Arch Linux ARM system. The options seems to be set in /boot/boot.txt. In its original form, it looks like this: # After ...
zar3bski's user avatar
  • 3,221
0 votes
1 answer
37 views

I'm porting an existing filter implementation into a nordic embedded device, which is arm cortex m33 based. I was hoping it would be a simple matter of adjusting to fit the new math library, but I'm ...
monkey's user avatar
  • 1,733
Tooling
0 votes
1 replies
63 views

I am working on a microarchitectural tooling project, and as part of a heuristic I need the ability to observe and manipulate the internal state of a branch predictor. Specifically, I am looking for ...
Gal Kaptsenel's user avatar
-3 votes
1 answer
113 views

In below Cortex-M7 startup assembly, the bl SystemInit is in the Reset_Handler symbol on line 179. I assemble it with --gstabs to generate debug information. I launch the QEMU with -S option to stop ...
smwikipedia's user avatar
  • 65.1k
Advice
0 votes
0 replies
32 views

I keep seeing in press materials and in the technical reference manual that the ARM Cortex-M33 has "limited dual issue capability of common 16-bit instruction pairs". I cannot find a list ...
Kai Yin's user avatar
6 votes
0 answers
148 views

I was experimenting with some fixed-point arithmetic on the Cortex-M0+ in Godbolt's compiler explorer and came across an interesting behaviour with respect to the optimisation of a multiplication ...
Simon's user avatar
  • 664
0 votes
1 answer
82 views

I'm using STM32F103C8T6 to receive the signal from INMP441 with I2S. Using Standard Periph Library with keilC. I configured GPIO, I2S, Usart, I want to get data from INMP441 then send it to esp32 ...
Do Quang Vinh's user avatar
3 votes
0 answers
144 views

I am tying to cross-compile GLIBC_2.36 from source for ARM. I am using arm-linux-gnueabihf toolchain to do this. The command I am passing from my build directory is below: ../glibc-2.36/configure --...
Devashish Lahariya's user avatar
-2 votes
1 answer
74 views

I have a file with the literal Hex content vectors.bin = "12345678900000000" .data .align 1 vectors: .incbin "vectors.bin" .text # main variables we don't want changed by ...
Xander's user avatar
  • 1
1 vote
1 answer
96 views

For the ARM 32 bit architecture, PC address has an offset of 8 bytes, being 2 instructions ahead. When I use the Branch Link, it does 2 things: Branch to the address of the subroutine. In the image, ...
algo's user avatar
  • 73
-2 votes
1 answer
172 views

I have implemented a basic FIFO data structure with its related functions/subroutines in a FIFO.s file and want to use them in the main function inside a main.c file; // FIFO.s .syntax unified .cpu ...
student signup's user avatar
2 votes
1 answer
94 views

In my RP2040 pico-sdk project, I'm getting a problem when I try to use the CMSIS function __DSB() - "error: expected string literal": /src/MyProject/my_main.c:848:5: error: expected string ...
sdbbs's user avatar
  • 5,958
0 votes
0 answers
53 views

I have been creating a basic core management tool which is able to dynamically turn CPU cores on and off using Arm's PSCI CPU_ON and CPU_OFF functions. This worked great on QEMU, however moving onto ...
Mike's user avatar
  • 21
1 vote
0 answers
51 views

I want to use the same label name in different parts of my Assembly code instead of using a new, never-before-used label name; Is such a thing possible? For example: . . . Factorial: // A subroutine ...
student signup's user avatar
2 votes
1 answer
87 views

I’m trying to understand how the BL instruction is decoded in the ARMv6-M architecture. The part I don’t get is in the imm32 calculation: the values of I1 and I2 are derived using J1 and J2, but they’...
zenprogrammer's user avatar
3 votes
1 answer
173 views

im trying to implement syscalls for printf so i defined the functions : #include <stdint.h> #include <sys/stat.h> #include <sys/types.h> #include <errno.h> void usart_init(...
W4ZM's user avatar
  • 75
4 votes
1 answer
104 views

I want to rename (more like add an alias to) one or more registers for a specific part of my Assembly code using the .req directive and later on undo the renaming of said register(s) so that those ...
student signup's user avatar
1 vote
0 answers
87 views

Recently, I have been trying to take the raw output from the Infineon BGT60TR13C mmWave radar on the CY8KIT-062S2-AI board and process it into a Range Doppler Map using the onboard CPU. One issue that ...
Ben Bao's user avatar
  • 11
0 votes
0 answers
75 views

I have a program that I wrote that has interrupts of multiple priorities. Within the body of the low priority ISR, interrupts are re-enabled so that high priority interrupts can interrupt them if ...
user4574's user avatar
  • 416
8 votes
1 answer
238 views

I'm working on an application that uses shared memory sections between processes on Windows (for an IPC mechanism between processes, where one process generates code that is executed by another ...
kresh11's user avatar
  • 81
0 votes
0 answers
72 views

In the idiom: while (exp == V.loadRelaxed()) { // allows the early issuing of any n-loads that'd fit within the speculative window. if (V.weakRMWRelease(exp, set)) return true; // ^^ (upward ...
Delark's user avatar
  • 1,385
-4 votes
2 answers
69 views

Arm® Architecture Reference Manual for A-profile architecture (ARM DDI 0487): C8.2.497 PRFB (scalar plus immediate) Note: Arm strongly recommends the following for this instruction: • A PE does not ...
pmor's user avatar
  • 6,775
0 votes
0 answers
56 views

I was wondering about what the consequences of a relaxed load in a while loop would be, and if it would be sufficient fencing. My question arises from the fact that the Java community has agreed that &...
Delark's user avatar
  • 1,385
0 votes
0 answers
94 views

I’m trying to understand how speculative execution interacts with weak memory models (ARM/Power) in the context of a spinlock implemented with a plain CAS. Example: // Spinlock acquisition attempt if (...
Delark's user avatar
  • 1,385
0 votes
1 answer
43 views

STM32F303RE produces wrong PWM pulse in OPM after receiving trigger signal. I configured the advanced timer TIM1 to generate one PWM pulse after receiving falling edge trigger on the pin. When I ...
maciej.hadz's user avatar
0 votes
0 answers
41 views

ARM C Language Extensions for SVE, 2.2. Header file: All functions and types defined in the header file have the prefix sv, in order to reduce the chance of collisions with other extensions. arm_sve....
pmor's user avatar
  • 6,775
2 votes
1 answer
96 views

Updated: I already know that this is a UB for ISO C, I apologize for the vague statement I made earlier. This question originates from my previous question Can atomic operations of different sizes be ...
untitled's user avatar
  • 563
1 vote
1 answer
153 views

I am using below gcc compiler to compile codebase for ARM cortex M33 with optimization -Os. arm-none-eabi-gcc.exe (Arm GNU Toolchain 14.3.Rel1 (Build arm-14.174)) 14.3.1 20250623 Copyright (C) 2024 ...
Hari's user avatar
  • 21
1 vote
0 answers
80 views

Suppose you are processing a large data set using several cores in parallel. I am looking for the most memory-efficient way to break up the data among the processors. Specifically, this would be for ...
Zzyzx's user avatar
  • 53
0 votes
0 answers
52 views

My intention is to build an app (ffmpeg) to an old armv6 architecture (32-bit only). To achieve this, I've used ct-ng to build the actual cross-toolchain, posting here my config for better overview of ...
Daniel's user avatar
  • 2,734
1 vote
0 answers
93 views

My question is: how can I inject an ECC fault into the Zynq Ultrascale+ Cortex R5 (#0) processor's TCM. I have a bare metal C program running. I have ECC enabled, and would like to validate that the ...
Seth Robertson's user avatar
1 vote
1 answer
77 views

I am adding a linker section in the TI arm clang linker and I have added by following MEMORY { TEST_SECTION ( RWIX ) : ORIGIN = 0x41C00000 , LENGTH = 0x00007800 } --retain="*(....
user2986042's user avatar
  • 1,300
0 votes
1 answer
111 views

can someone please help in explaining why virt_to_phys cant be used in case of SMMU to get the IOVA address, as in SMMU enabled system physical address are not exposed , so can we use virt_to_phys in ...
devender's user avatar
0 votes
0 answers
105 views

I have a question regarding debugging on a multi-core board. On my board, I have multiple cores, and for each core, I have created a CTI (ARM Cross-Trigger Interface). I am able to run and halt each ...
aymane bahssain's user avatar
1 vote
2 answers
251 views

Eventhough exclusions are cleared on trap boundaries, they appear atomic to application codes in the functional regard. But I'm not certain about the progress guarantee that'd otherwise be made by ...
DannyNiu's user avatar
  • 1,671
2 votes
1 answer
95 views

I use ARM NEON intrinsic vcombine_f32, which has equivalent instruction DUP Vd.1D,Vn.D[0]. For the purpose of this question, I call such equivalent instruction a primary instruction (primary for this ...
pmor's user avatar
  • 6,775
0 votes
0 answers
75 views

When testing linux kernel 5.10 on Zynq-7010 FPGA with multiple sequential interrupts I get Unhandled fault: imprecise external abort (0x1406) from the interrupt handler an example of the failure (from ...
Pete's user avatar
  • 143
0 votes
0 answers
38 views

Compiler : gcc-toolset-9 OS : 5.15.0-306.177.4.el8uek.aarch64 (Centos 8) ARM Version : Openssl 1.1.1k Build Issue : Yes This is not a build issue with openssl source itself but when we are using built ...
Chandan Kashyap's user avatar
4 votes
2 answers
190 views

I am fairly new to assembly. After compiling, when I run the code below, I get a segmentation fault. I am trying inline assembly with recursion. I am compiling this code with cxxdroid. int ...
Steven Vanhaeren's user avatar
0 votes
0 answers
95 views

I am currently working on the porting of a proprietary RTOS that was originally written for the Coldfire CPU to the Zynq, which has a Cortex-A9 Armv7 CPU inside! I've been struggling for a while to ...
Vladouch's user avatar
2 votes
1 answer
488 views

ARM cortex M4 has SIMD instruction that allow summation of two 16bit wide numbers in parallel. On the ACLE, I can see there is a build C function to access the functionality in C called __sadd16 which ...
Yair M's user avatar
  • 499
1 vote
1 answer
91 views

According to this document: In addition to two Security states, the architecture provides two physical address spaces: Secure and Non-secure. While in Non-secure state, virtual addresses always ...
smwikipedia's user avatar
  • 65.1k
1 vote
2 answers
86 views

I'm currently making an AArch32 emulator, and I'm trying to make an MMU. While I got most of the descriptor logic, access permissions, and address translation mechanisms set up, I still have doubts ...
Existentialist's user avatar
1 vote
1 answer
122 views

I am attempting to write a bare-metal armv7a kernel from scratch. When compiling my implementation of printf, the resulting binary contains a massive block of andmi instructions: $ arm-none-eabi-...
Imagifight's user avatar

1
2 3 4 5
253