2024-01-09 10:41 AM
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.
2024-11-26 07:30 AM
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!!!