cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H743IIKx CubeMX 6.0.1 USB_OTG_HS Bug report

HFjel.1
Associate

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)

1 REPLY 1
Houssem CHAABANI
Senior II

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