2025-08-13 11:12 AM
Dear ST,
I'm developing a project to send ADC data via USB high-speed to an external device (PC) with STM32H7S78-DK. I'm trying to establish communication via USB, but I'm having trouble with the CDC_Transmit_HS function, which always returns busy. Additionally, the callback CDC_TransmitCplt_HS() is never called, and the USBD_CDC_DataIn() function is not invoked. The hcdc->TxState = 0 is always different from 0. I don't understand why it is happening.
The USB init, I think it is ok, because I can identify it at an external computer with the correct description and 480 Mbit/s of USB High speed.
These are my configurations of USB:
The Global Interrupt for USB is also available.
This is the clock configuration:
This is my code at the main, I just developed a code to send "hello" every second, and if it is Busy, it will print an increment value on the LCD
This is my USB init function:
Do you know what the solution can be to the CDC transmission issue with USB high-speed data transfer?
Best Regards,
Jorge Alves