Skip to content

USB fails without any errors on nightly #574

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

Closed
t348575 opened this issue Jan 30, 2023 · 2 comments
Closed

USB fails without any errors on nightly #574

t348575 opened this issue Jan 30, 2023 · 2 comments

Comments

@t348575
Copy link

t348575 commented Jan 30, 2023

USB appears to fail when the UsbDeviceBuilder is called, regardless of what it is used for (serial, hid etc). The device gets stuck at this line and never goes over (does not panic, just gets stuck). Not sure if this is an issue with stm32f4xx-hal or with usb-device, and it is happening only on nightly, all usb forms run fine on stable.

Line that fails:
let mut usb_dev = UsbDeviceBuilder::new(&usb_bus, UsbVidPid(0x16c0, 0x27dd))

Environment:

  • stm32f401ccu6 (black pill)
  • nighly version (failing): 1.69.0
  • stable version (working): 1.67.0
@burrbull
Copy link
Member

It could also be related to stm32-rs/synopsys-usb-otg#33

Try cargo update, please.

@t348575
Copy link
Author

t348575 commented Jan 30, 2023

@burrbull Yep that worked.

@t348575 t348575 closed this as completed Jan 30, 2023
jackronaldi pushed a commit to lightning-signer/validating-lightning-signer that referenced this issue Oct 15, 2024
relevant issues:
- stm32-rs/synopsys-usb-otg#33
- stm32-rs/stm32f4xx-hal#574

repr(C) required otherwise layout is optimized by rust compiler
Signed-off-by: Lakshya Singh <[email protected]>
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