stm32-rs / stm32f4xx-hal

A Rust embedded-hal HAL for all MCUs in the STM32 F4 family

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

USB fails without any errors on nightly

t348575 opened this issue · comments

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

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

Try cargo update, please.

@burrbull Yep that worked.