STM32H745xi USB device causes descriptor enumuration failure windows 10
I am trying to get a custom board with the stm32H745xi microcontroller to work as an USB MSC device. The board is designed by an eletronics expert and according to him the board should work. This is also confirmed when the device is put in boot mode and the usb bootloader is shown as a device in the windows device manager.
The problem that i am facing right now is that when the M4 has done the inital setup of the using the code generated by STCubeMX (latest version) and the USB cable is plugged into the computer that Windows 10 gives an descriptor enumuration error for the device. The device is configured an OTG_FS_device and the interupt for the OTG_FS_IRQHandler in enabled.
On inspection using the windows USBview, i found that the descriptor that is recieved by windows is empty. So i started debugging the code that is run on the M4 core and found that the intterupt for the OTG_FS_IRQHandler is not fired even tho it has been enabled.
I have tried adjusting the OTG_FS examples profided by the StmCubeIDE for the stm32H7xi Disco hardware, but the results are the same.
I got no clue what goes wrong and would really appriate some help figuring this problem out.
