cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H523 CubeMX code for USB does not work due to missing HAL_PWREx_EnableVddUSB()

Lukasz Nowak
Associate III

The USB code for STM32H523 and STM32H533 generated by CubeMx v 6.12.1 (from STM32CubeIDE 1.16.1) does not work. It is missing a call to HAL_PWREx_EnableVddUSB() inside HAL_PCD_MspInit()

 

The example code in:

STM32Cube_FW_H5_V1.3.0\Projects\NUCLEO-H533RE\Applications\USBX\Ux_Device_CDC_ACM\Core\Src\stm32h5xx_hal_msp.c

has it manually added:

LukaszNowak_0-1727968703304.png

Can this be fixed in CubeMx, please.

2 REPLIES 2
KDJEM.1
ST Employee

Hello @Lukasz Nowak ,

 

Thank you for posting this issue.

This issue is reported internally to STM32CubeMx team.

Internal ticket number: 190477 (This is an internal tracking number and is not accessible or usable by customers).

 

Thank you.

Kaouthar

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

TDK
Guru

Also reported here (ticket 190972):

Missing HAL_PWREx_EnableVddUSB when generating per... - STMicroelectronics Community

 

Reported as fixed in "2. Main fixed issues for 6.11.0":

169175Function HAL_PWREx_EnableVddUSB() needs to be called for proper USB operation.

STM32CubeMX errata 6.11.x - stm32mcu

 

Similar report for the U5 reported here (2023-05-17, ticket 102476:(

Solved: HAL_PWREx_EnableVddA(); was not generated when ena... - STMicroelectronics Community

 

Would be good if this were better checked before pushing out CubeMX support on newer families.

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