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

docs(README): Add notes for running ch32v003 examples. #48

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

alexbohm
Copy link
Contributor

@alexbohm alexbohm commented Oct 9, 2024

Thanks for the excellent project.
I recently got a ch32v003 dev board and I thought I'd write down some notes as I set up my development environment.

### Using [probe-rs](https://probe.rs/)

- Install probe-rs using the installation instructions: https://probe.rs/docs/getting-started/installation/
- If you are on a Linux based system, you may have to add udev rules to allow probe-rs access to the WCH-Link debugger. https://probe.rs/docs/getting-started/probe-setup/#linux%3A-udev-rules
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually had to modify the udev rules. My WCH-Link shows up with lsusb as:
Bus 003 Device 033: ID 1a86:8010 QinHeng Electronics WCH-Link
which doesn't seem to match the usual rule with an id of 1a86:8011 from the rules on the probe-rs docs:
https://probe.rs/docs/getting-started/probe-setup/#linux%3A-udev-rules

Should I open a pull request with probe-rs to add that?

@alexbohm
Copy link
Contributor Author

alexbohm commented Oct 9, 2024

I also had to add a rust-toolchain.toml file otherwise the examples wouldn't build.
Looks like this was fixed in the ci/cd in: 75f3c55

[toolchain]
channel = "nightly-2024-08-23"
components = ["rust-src"]

Copy link
Contributor

@andelf andelf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks

@andelf andelf merged commit 8e4fda0 into ch32-rs:main Oct 10, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants