cancel
Showing results for 
Search instead for 
Did you mean: 

USB HS clocks not started from CubeMX 6.13 onwards

LucaP
Associate II

I am using the STM32F723 with custom, self-powered PCB interfaced to a host using USB HS. Everything worked fine with with CubeMX 6.12, but after upgrading to more recent versions, I noticed that the following functions are no longer generated within HAL_PCD_MspInit() (file usbd_conf.c):    

 

__HAL_RCC_USB_OTG_HS_CLK_ENABLE();
__HAL_RCC_USB_OTG_HS_ULPI_CLK_ENABLE();
 
and also the corresponding clock-disabling functions in HAL_PCD_MspDeInit(). If I manually re-insert these calls, everything works again.
Anyone knows the reason why these functions are not generated, and if I am missing any USB_HS setting in more recent CubeMX versions that should be taking care of this issue? Thanks!
1 REPLY 1
TDK
Guru

Include the IOC that you think is generating faulty code.

If you feel a post has answered your question, please click "Accept as Solution".