Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooling page is significantly outdated #355

Open
burrbull opened this issue May 12, 2023 · 4 comments
Open

Tooling page is significantly outdated #355

burrbull opened this issue May 12, 2023 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@burrbull
Copy link
Member

https://github.com/rust-embedded/book/blob/master/src/intro/tooling.md

Nothing about probe-rs project; old Rust version, etc.

@eldruin eldruin added the help wanted Extra attention is needed label May 15, 2023
@eldruin
Copy link
Member

eldruin commented May 15, 2023

Indeed. Thanks for noticing.
To anybody reading this, please feel free to send a PR updating it.
Here is an example of a more up-to-date setup

@jonathanpallant
Copy link

Yeah I came across this today and went to write up basically the same ticket.

@jonathanpallant
Copy link

I think the steps are now:

  • Install rustup
  • Add appropriate targets (i.e. pre-compiled rust libraries) for your MCU
  • cargo install probe-run --features=cli

No OpenOCD required, nor arm-none-eabi-gcc.

You could still list GDB (or arm-none-eabi-gdb) as an optional thing, but you should probably call it through the rust-gdb wrapper script (first setting RUST_GDB=arm-none-eabi-gdb to it knows what to call).

@Barbacamanitu
Copy link

I think the steps are now:

  • Install rustup
  • Add appropriate targets (i.e. pre-compiled rust libraries) for your MCU
  • cargo install probe-run --features=cli

No OpenOCD required, nor arm-none-eabi-gcc.

You could still list GDB (or arm-none-eabi-gdb) as an optional thing, but you should probably call it through the rust-gdb wrapper script (first setting RUST_GDB=arm-none-eabi-gdb to it knows what to call).

Is there a guide somewhere on how to set this up? I just got my first STM chip to follow the embedded Rust book, and I'm not sure where to start or how to follow along since the tooling is outdated now. For now I guess I'm going to follow the current version of the book exactly just so I can get some code flashed to my board, but it would be nice to use the newer tools.

probe-rs sounds neat, but it also seems like its a library? I'm not sure how I'd use it to flash and debug. Any help would be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants