Open aguynamedben opened 2 years ago
I'm not sure how it works under the hood, but QEMU and hardware debugging works if you use VS Code + cortex-m-quickstart + these instructions:
https://christopherjmcclellan.wordpress.com/2019/12/31/debugging-rust-cortex-m-with-vs-code-take-2/
Using arm-none-eabi-gdb
instead of gdb
works for me. It's installed with arm-none-eabi-gcc
. See https://docs.rust-embedded.org/book/intro/install/macos.html
lldb
worked for me thanks by this stack overflow comment
Hi, this book is great, but I have an Apple Silicon (M1) computer and
brew install gdb
fails with:It seems that gdb is just not supported on Apple Silicon computers.
I'm new to gdb, lldb, and debuggers. It'd be cool if the QEMU chapter showed how to use lldb to debug embedded Rust apps. Thank you!