probe-rs icon indicating copy to clipboard operation
probe-rs copied to clipboard

Support using cargo-embed as a custom cargo runner

Open JoshMcguigan opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe.

I'd like to be able to configure cargo-embed as a custom cargo runner, so cargo run can automatically use cargo-embed.

Describe the solution you'd like

In .cargo/config.toml:

runner = "cargo embed --maybe-some-new-arg-to-support-this-feature"

Describe alternatives you've considered

  1. Run cargo embed rather than cargo run

JoshMcguigan avatar Nov 25 '22 23:11 JoshMcguigan

You can use probe-run:

runner = "probe-run --chip <YOUR_CHIP>"

matteocarnelos avatar Nov 29 '22 15:11 matteocarnelos

Hi, thanks for the suggestion! I considered probe-run, but I wanted to stick with cargo-embed since at the moment probe-run doesn't act as a gdb server.

Although I've since run into probe-rs/probe-rs#1375 which is blocking gdb usage for me via cargo-embed anyway - so perhaps I'll give probe-run a go now.

JoshMcguigan avatar Nov 29 '22 16:11 JoshMcguigan