-
Notifications
You must be signed in to change notification settings - Fork 24
Rustup support #96
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
base: main
Are you sure you want to change the base?
Rustup support #96
Conversation
Note to myself squash before merge |
aa3026e
to
2143185
Compare
6931f3a
to
7f7eeeb
Compare
Now that RP2350 support has been added to probe-rs (probe-rs/probe-rs#3005), I think we can simplify the rust integration to use the "Debugger for probe-rs" extension rather then Cortex-Debug for debugging rust code. This has full support for defmt, so should be easier to integrate. |
I'll look into it. Im currently very busy, but I may find some time in a few weeks. |
Signed-off-by: paulober <[email protected]>
Signed-off-by: paulober <[email protected]>
Signed-off-by: paulober <[email protected]>
Signed-off-by: paulober <[email protected]>
Signed-off-by: paulober <[email protected]>
Signed-off-by: paulober <[email protected]>
Signed-off-by: paulober <[email protected]>
Signed-off-by: paulober <[email protected]>
Signed-off-by: paulober <[email protected]>
Signed-off-by: paulober <[email protected]>
7f7eeeb
to
3c5947d
Compare
Signed-off-by: paulober <[email protected]>
@will-v-pi Just updated the generator to use |
I think the config used by https://github.com/rp-rs/rp2040-project-template was working for me |
Also for the Pico 2? |
I haven’t tried, but my hope is that with the probe-rs support it should just be a case of changing the chip name in the config? |
@will-v-pi It seems like the issue was the missing |
Signed-off-by: paulober <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking great, thanks! I've tested with RP2040 and RP2350, and the only big issue I've found is that RP2350 Risc-V debugging doesn't seem to work, with probe-rs throwing an error. Do you see an error too when doing that? If it's a prope-rs issue, then probably worth putting a note somewhere, so we don't get a bunch of bug reports?
Couple of thoughts:
- We should remove the
-f
flag from the Run Project picotool command, as rust projects won't work with that unless you've added it manually - Now rp235x-hal is on crates.io, we can get rid of the submodule and just have
rp235x-hal = { version = "0.3", features = ["rt", "critical-section-impl"] }
etc in the Cargo.toml - My new Switch Build Type command isn't getting disabled, like the other CMake commands - probably just missed when rebasing?
- The Debug Project button throws an error "Configuration 'rp2040-project' is missing in 'launch.json'" - I'm guessing that just needs a rename in the command?
- Could we add a Reload Window prompt after switching chips? I've found the existing Restart prompt from rust-analyzer can take a while to restart, and if you click Compile during that time it can get into a broken state
Other than that, this is looking excellent!
No description provided.