Skip to main content
Graduate
May 17, 2025
Question

Need CDC-ACM (libusb, HS) Sample, Without UART for STM32U5 – For Real-Time DCMI Data.

  • May 17, 2025
  • 1 reply
  • 697 views

 

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,

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    May 19, 2025

    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.

    Technical Moderator
    May 20, 2025

    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.

    • On one side, the STM32 exchanges data with a PC host through USB CDC interface in Device mode.
    • On the other side, the STM32 exchanges data with ST-LINK MCU through UART which could be customized according to your specific requirements.
    saikumarAuthor
    Graduate
    May 24, 2025

    hello, mr @FBL 

    Actually, I have the same requirement as mentioned in this post:

    "https://community.st.com/t5/stm32-mcus-embedded-software/how-to-implement-winusb-instead-of-cdc-acm-on-stm32u5-series-mcu/m-p/805629#M63864"

    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.