Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
0 answers
27 views

Build valgrind to target LPC55S69(which is based on Armv8-m architecture)

I'm trying to build valgrind to target baremetal arm cortex-m (based on armv8-m architecture). The host is a x86 wsl environment. How do I specify this while trying to configure valgrind. For ex: To ...
randomranger409's user avatar
-1 votes
1 answer
111 views

Unit tests on registers with bare metal programming

I'm trying to do a unit test by using the library "check.h" on a register containing a hexadecimal number to check if the return value is correct. The registers are for programming an ...
Norronas's user avatar
0 votes
0 answers
135 views

qemu: fatal: Lockup: can't escalate 3 to HardFault (current priority -1)

I have encountered this error while working with QEMU, specifically a Hardfault error when emulating the MPS2AN505 with a Cortex-M33 core. The error I am facing is as follows: qemu: fatal: Lockup: can'...
sanj's user avatar
  • 1
0 votes
1 answer
94 views

flex/bison for embedded bare-metal system

I develop software for Cortex M, and for that I use Arm GNU Toolchain. I need to parse data packages for which I have the grammar. I have problems with flex though, since it normally requires the ...
mastupristi's user avatar
  • 1,408
1 vote
1 answer
698 views

Inserting inline assembly code into C function - I/O questions

I am developing an embedded C application for my Cortex M3 microcontroller using the GNU arm-none-eabi toolchain. I have plan to adopt an assembly subroutine that the vendor implemented into my C ...
us3rnotfound's user avatar
2 votes
0 answers
643 views

How do the `aapcs` and `aapcs-linux` ABI options differ when compiling for bare-metal ARM with gcc?

I am trying to port an application to ARM's arm-none-eabi-gcc toolchain. This application is intended to run on a bare-metal target. The only two suitable values for the -mabi option in this case ...
AJM's user avatar
  • 1,579
0 votes
1 answer
48 views

Where is ARM's (LPC18xx's) shadow pointer

I am working with an NXP LPX1837. User manual UM10430, sec 4.3 talks about The LPC 18xx contains a shadow pointer that allows areas of memory to be mapped to address 0x0. and set ARM's shadow ...
minlux's user avatar
  • 31
-1 votes
1 answer
696 views

Cortex M33 missing vector table

I want to test my ARM project within QEMU using semihosting. Initially I built for Cortex A7 and A9 processors and had no issues running my code, however now that I switched to CM33 (and a CM33 board),...
psykana's user avatar
  • 104
1 vote
1 answer
799 views

how can I exclude libc from my bare metal arm compilation?

I am trying to compile my first bare metal project targeting an arm cortex-M0+ MCU. I am compiling with gcc arm-none-eabi. The system currently consists of: boot.s -- an assembly file containing ...
JeffreyABecker's user avatar
0 votes
0 answers
246 views

Cortex-M0 Hardfault Handler does not get called after changing it

i am using an using an STM32f0 and getting into Hardfault. My IDE is Keil MDK. I was trying to find the roots of it, so every approach i find in the web (mostly for M3/M4) tells to unwind the stack. ...
Crubuntu's user avatar
0 votes
4 answers
445 views

Reading from flash that's not part of the application

I'm programming bare-metal embedded, so no OS etc. on a STM32L4 (ARM Cortex M4). I have a separate page in flash, which is written by a bootloader (it is not and should not be part of my application ...
Lasse's user avatar
  • 1
2 votes
0 answers
1k views

Suppressing section '.ARM.exidx' with clang / llvm

I am trying to compile a bare-metal ARM Cortex-M3 program with clang. (Code and linker script work fine with gcc.) My issue is that clang seems to emit a section .ARM.exidx whether it is needed or ...
ARF's user avatar
  • 7,610
2 votes
2 answers
3k views

How to get a hard fault exception with a simple or instruction on arm

Currently we are hunting a phantom, which is in the form that when we compile in some code (without calling it) one specific call to memset generates an hard fault exception. The address and length ...
Rudi's user avatar
  • 19.8k
0 votes
0 answers
456 views

Using Boost.coroutine2 on ARM bare-metal

I'm working on some embedded project, and I'd like to use coroutine in ARM cortex-M. Unfortunately, Boost.coroutine2 (which uses Boost.context inside) does not officially support it. Is there any way ...
eivour's user avatar
  • 1,717
0 votes
0 answers
238 views

cortex M3 bare metal execution

I am working on a STm32 project in Keil IDE. It contains a start-up file named startup_stm32f10x_xl.s has the following code in it ; Reset handler Reset_Handler PROC EXPORT ...
Shreevatsa Y S's user avatar

15 30 50 per page