stm32-rs / stm32f4xx-hal

A Rust embedded-hal HAL for all MCUs in the STM32 F4 family
BSD Zero Clause License
549 stars 209 forks source link

USB fails without any errors on nightly #574

Closed t348575 closed 1 year ago

t348575 commented 1 year ago

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: https://github.com/stm32-rs/stm32f4xx-hal/blob/15134d7063083ec246302b09f18eb3c774fd1f5e/examples/usb-serial-poll.rs#L43

Environment:

burrbull commented 1 year ago

It could also be related to https://github.com/stm32-rs/synopsys-usb-otg/issues/33

Try cargo update, please.

t348575 commented 1 year ago

@burrbull Yep that worked.