Problem with VCP USB FS and CubeMX STM32H7eval
Hello, everybody.
I'm trying to implement USB FS on STM32H734 eval board. I'm using CubeMX to generate code, the version is up to date and i'm using the latest firmware libraries (which is 1.3.0). I generated a standard project and configured a VCP on USB FS in Cube, when i load the code into mcu and connect CN18 to PC nothing happened. Then I found that there is a function HAL_PWREx_EnableUSBVoltageDetector(); that needed to be added to USB initialization. Which i did and PC sees the board but can't find a driver for it (code 28) and locate it under unknown devices. I found that when cube generates code in main it generates function with name MX_USB_OTG_HS_PCD_Init(); but in settings (in Cube) FS confuguration is chosen. (And vice versa, MX_USB_OTG_FS_PCD_Init(); if HS configuration is chosen as VCP). I think it's some sort of bug. Could it be the source of a problem? Maybe someone else also encountered such a problem?