discovery icon indicating copy to clipboard operation
discovery copied to clipboard

Can't follow the book because gdb isn't available on Apple M1

Open thehappycoder opened this issue 3 years ago • 7 comments

This could be a good alternative https://github.com/knurling-rs/probe-run

thehappycoder avatar Sep 25 '22 08:09 thehappycoder

@thehappycoder Can you please provide details on how to use probe-run instead of gdb?

aronzvi avatar Oct 12 '22 22:10 aronzvi

I've gotten halfway through the book on an M1 air, what exactly didn't work? So far, its been better than any attempt I've made on windows. I installed gdb through homebrew.

lpython avatar Nov 06 '22 22:11 lpython

@thehappycoder I was able to run it after installing all of the targets by using arm-none-eabi-gdb instead of gdb

eadgbear avatar Nov 28 '22 00:11 eadgbear

@slyons can you please elaborate on what you did to make it work? What did you install and how? And what did you use instead of gdb?

rashack avatar Jan 14 '23 17:01 rashack

@rashack nothing too special, I've only have been using a Mac for a year and use brew to install most cli programs.

brew install arm-none-eabi-gcc brew install minicom openocd

I've used the previous rust embedded discovery book which really is still current, just for a different board. Specifically, this page should cover all the details

a file located at ./src/.cargo/config.toml should identify the target for the executable and the command to run which is something like bash``` arm-none-eabi-gdb -q -x ../openocd.gdb

lpython avatar Jan 15 '23 00:01 lpython

@slyons Ah, thank you! What did it for me was brew install arm-none-eabi-gcc and then I got it going with .../discovery/microbit $ arm-none-eabi-gdb target/thumbv7em-none-eabihf/debug/led-roulette

rashack avatar Jan 15 '23 21:01 rashack

Seems like arm-none-eabi-gcc is no longer listed on homebrew. Had to tap https://github.com/eblot/homebrew-armeabi to get it.

markmurphydev avatar Jul 10 '23 17:07 markmurphydev