2025-05-17 4:41 AM
Hi ST Community,
I'm working with the STM32U5G9ZJT6Q and need to send real-time data from DCMI over USB through CDC . I generated a CDC-ACM project using CubeMX 6.14.0, and by default, it appears as a Virtual COM Port under device manager . Then i used Zadig to replace the driver with libusb-win32, and now the device shows up under libusb devices, ready for high-speed (HS) USB communication.
However, all CDC-ACM examples I’ve found using with UART, which doesn’t meet the performance needs for my video streaming use case.
I’m requesting a sample project or reference code using the STM32U5 USB stack, where CDC-ACM works with libusb (HS mode) and does not rely on UART, so I can send DCMI data directly over USB.
thanks,
2025-05-19 3:53 AM
Hi @saikumar
While we can't provide a specific example for every request, we can assist you in customizing your project using reference board STM32U5G9J-DK2. Start with this example provided for CDC interface and let us assist you troubleshooting issues. Consider sharing minimum project so we can identify the specific problem you're encountering.
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-05-20 12:12 AM - last edited on 2025-05-20 2:10 AM by Andrew Neil
hello, mr @FBL
thanks for your reply,
The following functions were available
Now I am using STM32U5 series, as this stack is different .
so could you please provide code to properly initialize the USB CDC_ACM interface for USB (lib_usb) use without using UART.
How to set up the reception and transmission, similar to how CDC_Receive_HS() and CDC_Transmit_HS() worked in my previous working H743ZI2 project.
i uploaded codes for reference.
thanks.
2025-05-20 7:05 AM
Hello @saikumar
This example uses classic middleware on STM32U5. If you consider using USBX stack, I recommend this example. I'm not sure which driver (lib_usb) will it point.
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-05-23 11:51 PM - edited 2025-05-23 11:52 PM
hello, mr @FBL
Actually, I have the same requirement as mentioned in this post:
In your reply, you mentioned that we need to use "https://github.com/STMicroelectronics/stm32u5-classic-coremw-apps/tree/main " .
I would like to ask :- instead of requiring a total stack change, is it not possible to update the existing STM32U5 series USB device stack to support WinUSB functionality directly?
This would help a lot , who are already using the default USB stack generated by STM32CubeMX for STM32U5 and want to use WinUSB without major modifications.
Looking forward to your input.
Thanks.