Open jake-g00dwin opened 3 months ago
Okay found the upstream issue: usbd-hid issue 73 and embassy issue 3078
Basically it's an issue with embassy and dependencies user older versions of the crate when the 0.8 version is the only one that really works right now.
Using the nightly-2024-06-12 tool chain seems to still run into the same issue as of right now.
Had some time to mess with it again today, managed to find a workaround. Using the examples for the ch32v203 and the nightly tool-chain from 2024-06-11 I managed to get it to build and compile.
I had to first edit the Cargo.toml
file so that it used the other embassy line and also so it didn't include the usb dependency.
//---SNIP---
#embassy-usb = { version = "0.1.0" }
//---SNIP---
[patch.crates-io]
embassy-executor-macros = { git = 'https://github.com/embassy-rs/embassy'}
//---SNIP---
Final thing I noticed is that some examples required me to add a line for a feature dealing with implementing traits for associated types.
#![feature(impl_trait_in_assoc_type)]
After adding that line I can compile and flash the blinky, adc and the uart(serial) programs without any issues.
I'm planing to change embassy-related deps to git version.
Worth noting theres a 0.6
and 0.7
patch release that fixes this if you don't want to update to 0.8
crates from usbd-hid
.
@twitchyliquid64 Nice, that sounds like a great temporary solution as well.
Ran into an issues with building and testing the examples for the ch32v203. This is what I'm getting when I try to run
cargo build --bin blinky
.It's coming from the GroupSpec Impl in the USBD HID macros crate.