Skip to main content
Visitor II
April 25, 2021
Question

Problem sending data concurrently via Composite USB

  • April 25, 2021
  • 1 reply
  • 1024 views

Hello there,

I've setup a composite device (HID + CDC) on STM32F401RCT MCU. However, when sending data via CDC, the PC can only receive some HID packets (kind of lag issue) or no packet at all. I need to send data via HID and CDC concurrently. Is it possible? If not, do we have another solution?

Thank you.

    This topic has been closed for replies.

    1 reply

    Super User
    April 25, 2021

    Do you use the ST "Cube middleware"? If so, it is not perfect; you'll have to tune it up, or find an industrial quality USB library.

    NChin.2Author
    Visitor II
    April 26, 2021

    Yes, I'm using CubeMx Middleware. In my case how to tune it up? I'm quite new to this.

    Super User
    April 26, 2021

    I don't have a simple answer unfortunately. Debug the code, a real (hardware) USB analyser would be very helpful.

    Look for examples on github, such of this:

    https://github.com/IntergatedCircuits/USBDevice

    -- pa