Skip to main content
HFjel.1
Visitor II
December 1, 2020
Question

STM32H743IIKx CubeMX 6.0.1 USB_OTG_HS Bug report

  • December 1, 2020
  • 1 reply
  • 572 views

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)

This topic has been closed for replies.

1 reply

Houssem CHAABANI
Visitor II
December 3, 2020

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