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 to do the same using QEMU and have problems, because I can't find suitable generic Cortex M7 machine. I've tried mps2-an500, but it doesn't work.
I've done similar already under qemu-system-gnuarmeclipse.exe on STM32F407 board and it's supported even visually (board picture), and I can see LED diodes blinking.
I'd be enough just plain emulation (not visual) for cortex M7 board.
Has anyone done something similar or any other advice how to do this properly ?
Thanks.
I think you are supposed to show some code for the attempts you made when asking a question on Stackoverflow. In your case, this could have been a minimal, reproducible example of your attempts to use the mps2-an500 QEMU virtual machine.
This being said, a procedure for building and debugging a program using QEMU and targeting the mps2-an500 virtual machine could be:
In a directory of your choice, create the following files:
build.cmd
:startup.s
:Execute the
build.cmd
batch procedure, it will createmps2-an500.elf
andmps2-an500.lst
, and display the QEMU and GDB commands you will use for debugging the (very) basic example:In one console mode session, execute:
in another, execute the GDB command:
In the GDB session, execute the following commands in sequence:
The transcript for the GDB session should look like: