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

usb_passthrough example does not compile due to broken USB2 implementation #417

Open
cosmikwolf opened this issue Feb 4, 2023 · 2 comments

Comments

@cosmikwolf
Copy link

cosmikwolf commented Feb 4, 2023

When I try to run the example passthrough, it does not compile.
I have in fact not been able to get the USB2OTG peripheral to work at all.

I am wondering if there is a working example out there where USB2 is working using this library?

cargo run --features="stm32h750v usb_hs rm0399" --example usb_passthrough

error: Cannot not select both rm0433 and rm0399
   --> src/lib.rs:131:1
    |
131 | compile_error!("Cannot not select both rm0433 and rm0399");
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@cosmikwolf
Copy link
Author

cosmikwolf commented Feb 4, 2023

Here is an example where I try and implement USB2. This example compiles and runs, however I am not able to use the USB2 port on an STM32H750v dev board
https://gist.github.com/cosmikwolf/f2ff77bc6e4d32e7ef8b07f859c6185d

@mattico
Copy link
Contributor

mattico commented Feb 10, 2023

When you enable the chip feature stm32h750v it enables the appropriate rmXXXX feature automatically. So, remove the rm0399 feature. Is there a reason that you added that feature?

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

No branches or pull requests

2 participants