All Questions
19
questions
1
vote
1
answer
92
views
Detect if running inside QEMU
I'm working on some bare metal Cortex-M4 code. It usually runs on a dev board, but to run unit tests I emulate it under QEMU. However, some hardware configurations are done differently depending on ...
0
votes
0
answers
54
views
writing and reading from the same memory address from two different QEMU instances
I have a code to write "Hello" at the memory address 0x10000000, and another code to read the value from this memory address and print it out. I have defined 0x10000000 as a shared memory in ...
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'...
0
votes
2
answers
62
views
Can I light up the LED at the reset interrupt point
Based on Cortex-M4,GNU compiler.
what i want to do is through a store instruction store a word to an address which is belongs a light's GPIOx_ODR(output mode as default).so i can light up led without ...
0
votes
1
answer
469
views
Measuring Cycle Count on an505 M33 Qemu
I'm trying to emulate an Arm cortex M33 using QEMU, using the an505 model. I've used this git repo as a starting point.
I've successfully built the project and even managed to debug into it however ...
0
votes
0
answers
246
views
Cortex M33 unable to get stack pointer and pc from word offset 0/1 with qemu
I tried to bringup cortex m33 with QEMU, and I used board MPS2-AN505, but QEMU always abort with HardFault error, so I checked system registers with GDB and I found that the T bit of ESPR reg is 0 ...
0
votes
1
answer
3k
views
Emulate ARM Cortex-M7 with qemu-system-arm.exe
I'm using Eclipse based CubeIDE and QEMU debugging plugin.
I'm working in assembler and can debug simple project (adding two numbers in registers) on STM32 Cortex M7 board (STM32H750DK). Now I'd like ...
0
votes
1
answer
287
views
Fatal error on starting xPack QEMU emulation of ARM Cortex-M7 device
I'm trying to start emulation of ARM Cortex-M7 device (the only machine with this mcu is mps2-an500). While STM43F4-Discovery emulation works ok on legacy QEMU xpack binary (qemu-system-gnuarmeclipse....
-1
votes
1
answer
697
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),...
2
votes
1
answer
3k
views
Emulate ARM Systems on QEMU
How do I setup QEMU to emulate ARM Cortex M3 system?
I am trying to build a kernel(C and/or assembly) for ARM based chips from the scratch. In order to accomplish that first I must emulate the system ...
1
vote
0
answers
931
views
How to emulate cortex-m linux with qemu?
this is my code and I want to run it on a cortex-m4 linux based board (stm32f429) but before that I want to test my program on my pc using qemu.
#include <iostream>
int main()
{
std::cout <&...
4
votes
1
answer
3k
views
Emulate ARM Cortex-M4 with qemu
I have a program consisting of multiple C source files and I would like to execute it in qemu with a Cortex-M4/M7 CPU. I am using the following command to build the objects:
"arm-none-eabi-gcc&...
0
votes
1
answer
689
views
Using qemu-system-gnuarmeclipse command-line for nrf52840
I want to run unit-tests for a firmware code written for nrf52840 using QEMU. I came across the GNU MCU Eclipse project which has forked the main QEMU project to provide better support for Cortex-M ...
2
votes
3
answers
3k
views
Timer supply to CPU in QEMU
I am trying to emulate the clock control for STM32 machine with CPU cortex m4. It is provided in the STM32 reference manual the clock supplied to the core is by the HCLK.
The RCC feeds the external ...
0
votes
0
answers
854
views
Why the GNU Arm Embedded Toolchain's example(gcc-arm-none-eabi/samples/src/qemu) can not work?
English is not my native language, I apologize that.
Recently, I want to know detail about C lib initialization. The develop/debug environment as follow:
Hardware: QEMU simulator The GNU MCU ...