2020-12-01 01:19 AM
Hello, I would like to report an issue with CubeMX configuration and code generation for USB_OTG_HS when interfacing a PHY on a custom board in Device Mode .
The problem stems from the Maximum GPIO speed setting on all pins in CubeMX can only be set to "High".
We were unable to enumerate the USB device and spent quite amount of time debugging this issue.
Manually changing the
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH in
USB_DEVICE/Target/usbd_conf.c solved the issue.
Also remember to change this whenever generating code with cubeMX as this will get overwritten.
Hope this may help others :o)
2020-12-03 12:43 AM
Dear @HFjel.1 ,
Thank you for this feedback.
Could you please share your .ioc file and which version of STM32CubeMX you are using?
kind regards,
Houssem