Questions tagged [arm]

This tag is used for questions related to the ARM (Advanced RISC Machine) family of computers; that is machines or electronics running on ARM processor cores or systems using an ARM core.

0
votes
0answers
14 views

How to compiling static libwebscocket.a

I'd to compiling my application with using the libwebsockets.a instead of the libwebsocket.so but i have some problems. i think there is a lack of link but i don't find what library lacking. My code ...
0
votes
0answers
17 views

How can I debug GNU C Library functions like mq_open returns error when called?

I have the following problem: I have ported a commercial Modbus slave stack for Linux in my Qt5.9.6 with ARM Cross-Toolchain in Ubuntu 16.04 Virtual Machine. The Modbus slave stack has a pure C source ...
0
votes
0answers
15 views

Failing to generate protobuf CC files when cross compiling GRPC for ARM

I am trying to cross compile GRPC for ARM and have followed the steps detailed in the GRPC MakeFile. however when I run make I am seeing the following error: [PROTOC] Generating protobuf CC file ...
0
votes
1answer
46 views

How can I trace the value of an address in memory?

As the title suggests, I want to see from where came the value of a specific address. I am debugging an ios game with lldb. This game has a muliplier value of 0.4 (how fast combos decrease). I can ...
0
votes
0answers
7 views

How to run open-jfx in arch linux on arm architecture?

I want to know , how to install openjfx in Arch Linux on Arm architecture? I have install openjdk 10 but unable to compile javafx application. Here is program. I did not found jfxrt.jar anywhere. ...
0
votes
0answers
24 views

Serialize struct using CGI/AJAX

I'm setting up an embedded Web Server on STM32F4 MCU. My program variables are stored into one big data structure. For instance, if I need to access to the temperature of my board, I'd simply check ...
0
votes
2answers
36 views

GCC ARM Cross-Compiling, what do errors like undefined reference to `__cxa_end_catch@CXXABI_1.3' indicate?

I successfully built a test application for an Intel Cyclone V SoC with the Intel Embedded Development Suite for FPGA SoCs. This application links against some target system specific libraries. As ...
0
votes
0answers
15 views

Knex: How to fix “Cannot read property 'prototype' of undefined” on ARM for initial-setup

I am trying to initialize a sqlite3 database with knex on an ARM-Device, but getting the error: Knex: run $ npm install sqlite3 --save TypeError: Cannot read property 'prototype' of undefined ...
0
votes
1answer
30 views

Why xilinx use a pointer to store data as array?

I take a look at the AXI-DMA example from xilinx and I get stuck at this point in XAxiDma_SimplePollExample for(Index = 0; Index < MAX_PKT_LEN; Index ++) { TxBufferPtr[Index] = Value; ...
-1
votes
0answers
10 views

cupsGetJobs return 'user = unknown ' 'title = untitled' when I execute under root,but normal user is correct

I want to get cups jobs info, so I used cupsGetJobs(&pJobList, NULL, 0, CUPS_WHICHJOBS_ALL), but it can not return all jobs info when I execute the command under root shell. but when I change the ...
1
vote
1answer
48 views

Error: width suffixes are invalid in ARM mode

I'm trying to manually issue ARMv7 movt and movw instructions for a cpu feature test. I'm catching a compile error with Clang. The test program is below. According to the ARM folks, .inst.w is the ...
0
votes
0answers
20 views

QEMU consuming lot CPU on emulating ARM

I'm writing an operating system for learning purposes, I'm focusing on the raspberry pi3 as target machine. To test my code I decided to use QEMU to emulate the raspberry hardware. By the way, the ...
-1
votes
1answer
47 views

Illegal instruction error on simple ARM arbitrary code execution program

I am writing a simple code execution exploit on a Raspberry Pi 3, and I am getting an "Illegal instruction" error. To compile this program, I have disabled ASLR and added the following compiler ...
2
votes
1answer
24 views

Why do ARM saves return address in Link Register instead of the stack?

I have been searching for this answer for over a week now with no luck. I have so far learnt that stack saves the return address when function nesting or interrupt occurs, but recently I learned that ...
0
votes
1answer
20 views

Installing and using arm-none-eabi-gcc on MSYS2

I am trying to build an embedded program using "make all" with the GNU ARM Toolchain but it is not working yet. I installed it with xpm according to this website with the xpm installer: https://gnu-...
-1
votes
0answers
27 views

How to build a complete, LLVM-based, C++17 capable, bare-metal cross-compilation toolchain for arm7em (Cortex M4F) on linux?

I am looking for a complete LLVM/Clang++ toolchain for cross-compilation to arm7em for a linux (ubuntu) host. I have managed to build runnable code using Ubuntu's system clang++ and Ubuntu's system ...
1
vote
1answer
34 views

How to cross-compile Rust code for the Raspberry Pi Zero W

I am attempting to cross-compile Rust code on my 64-bit x86 laptop to run on the Raspberry Pi Zero W. I installed the arm-unknown-linux-gnueabihf toolchain using Rustup, but when I run cargo build --...
0
votes
1answer
32 views

STM32 + GCC v8 + Qt Creator + Qbs : crash in __libc_init_array

After upgrading my host PC to a newer Linux version, I can't run my project anymore. I just want to program a copy of a working electronic board : hardware and code have been validated before. More ...
-1
votes
1answer
35 views

error: operand must be a register in range [d0, d15]

recently I have some issues when I try to optimize a conv operation, the error is: operand must be a register in range [d0, d15] "vmla.s32 q8, q12, %f18[0] \n" k0_0123,...
0
votes
1answer
44 views

Linux device driver for a gps module

I am fairly new to linux, I am currently trying to integrate a gps module to a linux ARM controller. The gps is ublox NEO M8N and I have it connected to UART6. I need help to start communicating to ...
-1
votes
0answers
49 views

__asm inline command for C++ and assembly

We are trying to convert c++ code into assembly code using inline assembly and using the __asm command. The problem that happens is that we can compile the code correctly in c++ however when the code ...
1
vote
1answer
23 views

Core consistent tick counter for ARM

I'm wondering if there's any counters on an ARM chip that can provide a tick-accurate count, but that is synced on all cores. That is, if I have a process running on cpu1 and cpu2, and they both ...
0
votes
1answer
20 views

Using PMU to count ticks on ARM

I'm trying to use the PMU (specifically use PMCCNTR to determine ticks per usec) from userspace in ARM. I have an arm64 kernel running an arm32 bit userspace app. I created an LKM to force the ...
0
votes
1answer
23 views

Get registers with ptrace in arm-linux

Tried to get PC register of thread in arm linux. There is process , process id = 120 and it has 3 threads : threads id : 121,122,123 . #include <sys/ptrace.h> #include <sys/user.h> int ...
-1
votes
0answers
23 views

ARMv7l not recognizing yield directive

Trying to compile a program (hpx) for my RaspberryPi 3b+ I found that I get an error saying Error: selected processor does not support 'yield' in ARM mode But I'm sure that ARMv7 has a 'yield' ...
0
votes
1answer
33 views

What is the expansion of the MSR and MRS instructions in ARM

I am learning ARM and I am not able to understand the full form of Program Status Register Instructions, MSR and MRS. Example: MRS R0,CPSR ; Take a copy of the CPSR. BIC R0,R0,#0x1F ; ...
1
vote
1answer
32 views

Intermediate .obj files not getting generated when compiling a static C library in CMake

The intermediate .obj files aren't being created when building a static C library using CMake and the ARM GNU Toolchain. System Information System: Linux Debian 10 4.19.0-4-amd64 CMake: 3.13.4 ARM ...
-1
votes
0answers
42 views

ARMS assembly program language, TST/ printing 2 outputs

I'm roughly new to ARMs assembly coding and I am having trouble modifying this code to get the result of TST and printing both odd and even outputs. Safely asking to answer questions in one post. The ...
0
votes
1answer
16 views

Enabling/reading PMU from userspace

I would like to access the PMU from userspace, but on one of my systems, PMUSERENR is set to 0, which makes the rest of the PMU inaccessible. This register is RO at EL0, so if I try to set it, I get ...
0
votes
0answers
22 views

How to fix '/usr/local/lib/libopencv_shape.so: file not recognized: File format not recognised'?

The code provided is my makefile. I am writing code for a UDP server capturing video and displaying it. I am trying to cross compile the code with OpenCV to work on the Intel Deo Nano Soc arm Linux ...
1
vote
3answers
59 views

Question to any embedded systems engineers out there using STM32 NUCLEO

I have recently bought an STM32 NUCLEO Dev Kit and wondered if this what an actual Embedded Systems Engineer would use in the industry when developing a product? I'm using Kiel Uvision 5, STMCubeMX ...
1
vote
1answer
27 views

How to check SRAM usage for cortex m3 for an application

For Cortex-M3, how to check maximum SRAM usage by an embedded application running on it. Should we check linker map file and stack usage generated by IAR or should we try with writing a function which ...
1
vote
1answer
35 views

Reading 64 bit value from coprocessor on arm

I'm trying to read the pmcntr variable from an arm chip (Cortex-A72) chip. I can read the 32 bit version as follows: asm volatile ("mrc p15, 0, %0, c9, c13, 0" : "=r" (pmccntr)); But I'm not sure ...
2
votes
1answer
35 views

How do I know if ARM's XN (execute never) bit support is enabled on my system?

I am working on a linux embedded system with an ARM cortex A5 processor and a linux kernel version somewhere around 3.13.9. How can I verify whether XN bit support is enabled? Also, I know that the ...
0
votes
1answer
44 views

arm neon inline assemble “mov” difference between clang and gcc

Have this problem with the arm neon inline assembler: mov v5.4s, v8.4s The instruction is compiles using clang, but GCC produces the following error :(if I use mov v5.16b,v8.16b this is fine): /...
1
vote
0answers
14 views

How to access X-Nucleo-NFC05A1 expansion board within Arm MBED?

First of all I am very new to application development with ST-Electronic device shields. I have following devices with me, X-NUCLEO-NFC05A1 NFC expansion shield Nucleo 64 : F401RE board. I was ...
0
votes
0answers
23 views

associate an existing Virtual Machine to Update Management Through ARM Template

I am looking for a ARM Template to add an existing VM to a update management enabled on Automation account. How can i associate a VM to the update management?
1
vote
2answers
98 views

How to avoid multiple definitions? Linker ignored defined symbol with some exception

I am working on an embedded system which has its own library (e.g. libc_alt ) implementing some functions from standard libc (fopen, fclose, fread, fseek, ftell) but not all ( I need memset, memcpy, ...
0
votes
0answers
66 views

How to optimize the computation of a for loop using SIMD?

I am trying to accelerate a stereo matching algorithm on ODROID XU4 ARM platform using Neon SIMD. For this puropose I am using openMp's pragmas. void StereoMatch:: sadCol(uint8_t* leftRank,uint8_t*...
-1
votes
1answer
47 views

how to specify Cortex-A53 in arm-none-eabi-gcc?

I'm trying to compile a HELLOWORLD.c with arm-none-eabi-gcc in minGW, the command is like this: D:\code>arm-none-eabi-gcc hello.c -o hello -shared and it worked, and generates an "hello" which ...
1
vote
1answer
33 views

echo to file in docker file fails when building from armhf/ubuntu in dind

I am using CI pipelines on Gitlab to build docker images for deployment to Raspbian. Since my builds need to access some private NPM packages, I include in the Docker file the following line which ...
0
votes
1answer
61 views

Reading a value via an interrupt protection

I am familiar with the race condition and the famous counter++ example. My question is not about read-write protection, but only about read protection. Is it possible I read a corrupt value via an ...
0
votes
1answer
41 views

How to properly use malloc function in arm assembly for opening files?

I am working on a school project that is in arm assembly using the raspberry pi. My goal is to open a input file and calculate the checksum just by counting the ASCII character in the input file. Then ...
-1
votes
0answers
92 views

Building linux image for ARM Cortex-M4

I am quite new to linux and especially to embedded linux on ARM. I would like to build a linux kernel and bootloader for a ARM cortex M4 processor. I planned to use u-boot and the mainline kernel. I ...
0
votes
0answers
30 views

ARM: Cross compilation throws syntax error on execution

I have custom ARM-Linux board and the images are built via Yocto. I have built a test program to print a string in my board. The code is cross-compiled using the toolchain built from Yocto and it ...
0
votes
1answer
35 views

Calling Flash Magic from command line with parentheses in path

I need to program my microcontroller via Flash Magic command line. Command is: COM(6, 115200) DEVICE(LPC2368, 4.000000, 0) HARDWARE(BOOTEXEC, 50, 100) ERASE(DEVICE, PROTECTISP) HEXFILE(C:\Program ...
0
votes
0answers
23 views

Building Eclipse project on new machine. GNU Linker cannot find library

I have a CortexM0 project using a custom Makefile that builds and debugs successfully on a 1st machine. Now trying to move the project to a second Mac. Same version of Eclipse. On build I get a ...
-1
votes
1answer
29 views

What is meant by an aligned/unaligned AXI transfer

Can anyone explain the difference between an aligned and an unaligned data transfer
0
votes
0answers
16 views

Cmake CMAKE_OSX_SYSROOT suppression

Below is a small snippet from my CMakeLists.txt file. I could add more, but I think the question only involves a few lines. Tool versions: cmake version 3.14.3 The compiler shown is in my path and ...
0
votes
0answers
29 views

How do I build golang acrcloud sdk for ARM builds

We are trying to build a docker image with ACRCloud sdk in Golang for ARM64. We are able to build the sdk for amd 64 for linux, both on stretch and alpine flavors. But when we try building it for ...

http://mssss.yulina-kosm.ru