Skip to main content
NChin.2
Associate II
Apr 25, 2021 8:18 AM UTC
Question

Problem sending data concurrently via Composite USB

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.

3 replies

Pavel A.
Apr 25, 2021 9:07 AM UTC

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.2
NChin.2Author
Associate II
Apr 26, 2021 1:33 AM UTC

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

Pavel A.
Apr 26, 2021 6:55 AM UTC

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