2025-08-23 1:35 PM
Hi
I created a composite USB device with CDC and UVC classes using usbd. The device is detected, camera image streaming works, and data transfer via CDC (virtual serial port) also works. However, after a random time, communication on the CDC data out endpoint stops. Reopening this endpoint solves the problem. The same thing happens with EP0. When I repeatedly open and close the serial port, EP0 stops receiving data after some time. If I stop video streaming, CDC communication is stable.Sometimes I also get an incorrect video frame when data is transmitted via CDC. I'm using FreeRTOS, but running everything in a single thread didn't solve the problem. I have no further ideas what could be wrong.Any ideas?
Artur
Solved! Go to Solution.
2025-08-25 11:00 AM
Hi.
Thanks for your interest. I found the problem. Incorrect FIFO configuration.
BR
Artur
2025-08-25 8:06 AM
Hi @Artur5
Would you share minimum firmware to reproduce the issue?
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-08-25 11:00 AM
Hi.
Thanks for your interest. I found the problem. Incorrect FIFO configuration.
BR
Artur