I am pretty sure I have installed QEMU. But facing error with this command.
PS C:\Workspace\RustRepowc\rust_projects\cortex-m-quickstart-master> qemu-system-arm
qemu-system-arm : The term 'qemu-system-arm' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify
that the path is correct and try again.
At line:1 char:1
This program uses something called semihosting to print text to the host console. When using real hardware this requires a debug session but when using QEMU this Just Works.
Let's start by compiling the example:
cargo build --example hello
The output binary will be located at target/thumbv7m-none-eabi/debug/examples/hello.
To run this binary on QEMU run the following command:
-cpu cortex-m3 \
-machine lm3s6965evb \
-semihosting-config enable=on,target=native \
The command should successfully exit (exit code = 0) after printing the text. On *nix you can check that with the following command:
I would start by figuring out if you can run it manually, and after getting that to work, figuring out how to get it to run from cargo.