cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H7 USB DEVICE CDC PROBLEM

PanosGial
Associate II

I am trying to use STM32H747IGT6 as a USB device. I want to sent data using CDC. Below you can find my configuration and code. The MX_USB_DEVICE_Init() is successful. Although when I call the CDC_Transmit_FS, it never returns USB_OK and I wasn't able to find the USB device through my laptop. 
The only thing I found is that after the initialization done by the ST Generated code, the struct with the device configuration is still NULL and it seems that nothing is actually initialised and I assume that this is a problem. Although the initialization function returns USB_OK. 
Does anyone have any ideas about this problem?
If you need further information about the project please let me know.
Screenshot 2024-01-09 at 8.22.23 PM.pngScreenshot 2024-01-09 at 8.23.09 PM.pngScreenshot 2024-01-09 at 8.24.47 PM.pngScreenshot 2024-01-09 at 8.25.29 PM.pngScreenshot 2024-01-09 at 8.26.02 PM.png

10 REPLIES 10

Thanks. That turned out to be a red herring. The EE had wired DP and DM incorrectly. A simple mod and the CDC device worked immediately. Bah!!!