-
Notifications
You must be signed in to change notification settings - Fork 7
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
picoSDK 1.4.0 #2
Comments
I'm working through this and adjusting project to build for rp2040 .... |
So, I finally get the project to build with But, I have to make the following changes in order to avoid compiler errors. I'm not sure what the best compile switches are, what is the compiler switch when building with Rust? The fixes below are merely hacks right now. These are file changes in the tinyusb sub-module. Is there away to apply these as a patch from build.rs?
The changes needed in this project:
|
Hi @kpishere (You might have moved on to other projects, but just in case this still interests you...) I've also had to tweak the build in order to compile these bindings for my target. I don't know what would be the right way to do this without having to modify this crate, but at least my changes were limited to rust code: I did not need to change anything in C. In particular, I'd be very reluctant to remove My changes to build successfully: On my projectModify dependency so it builds from a checked out version of this crate: Add to Cargo.tomltinyusb-sys = { version = "0.1", features = ["device", "cdc", "msc", "stm32l0"] }
[patch.crates-io]
tinyusb-sys = { path = "../tinyusb-sys-rs" } On
|
For those using STM32, I found that the usb-device project had example code and better documentation. I got this example running on my board in minutes. So I think I will use that stack instead. |
There seems to be a change in picoSDK to accommodate CDC devices but the solution does not play nice with Rust.
Any idea how to work with this? I'm a bit of a newb to Rust.
https://forums.raspberrypi.com/viewtopic.php?t=334842
Trying to use:
Cargo.toml:
tinyusb-sys = { version = "0.1", features = ["device", "cdc", "rp2040"] }
Build error :
The text was updated successfully, but these errors were encountered: