2025-11-06 5:04 AM
2025-11-06 6:08 AM - edited 2025-11-06 6:10 AM
This shouldn't even compile. HAL_PWREx_EnableUSBVoltageDetector does not return a type.
If CubeMX is generating this, it's a bug in CubeMX. Please attach your IOC file.
2025-11-06 6:47 AM
Hi @Kaushik1
For STM32H7RS, when USB is not used, you can connect VDD33USB to 0 V to minimize any possible leakage. Also, USB33DEN should be set if a GPIO on port M is used.
It is mentioned in this knowledge base article.
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.