2024-10-03 08:23 AM
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:
Can this be fixed in CubeMx, please.
2024-10-03 08:33 AM - edited 2024-10-03 08:35 AM
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.
2024-10-03 10:01 AM
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":
169175 | Function 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.