Skip to main content
SVill.4
Associate
February 2, 2022
Question

USB Composite Device

  • February 2, 2022
  • 3 replies
  • 2629 views

Good morning,

I need to create an USB Interface that supports two functions: Mass Storage + Virtual COM. Maybe someone has already implemented a similar solution or ST has created an example. I'm looking for an example, but i have not found anything up to now.

Thanks a lot.

This topic has been closed for replies.

3 replies

Walid ZRELLI
Visitor II
February 8, 2022

Hello @SVill.4​ ,

You can refer to the following examples provided by our F7 software package which uses a multi-core feature:

  • Path: Projects\STM32746G-Discovery\Applications\USB_Device\DualCore_Standalone : Mass Storage (MSC) and Human Interface (HID)
  • Path: Projects\STM32756G_EVAL\Applications\USB_Device\DualCore_Standalone: Device Communication Class (CDC) and Human Interface (HID)

I hope this helps.

BeST Regards,

Walid

SVill.4
SVill.4Author
Associate
February 12, 2022

Hi @Walid ZRELLI​ 

Thank for your answer.

I need the low level driver for creating a composite USB device on same USB. This example uses USB FS and USB HS and pratically has two USB cable connected to MCU. I need two USB peripherals on same USB, like ST-LINK V3 on STM32H750-DK board, where there are USB CDC + USB MSC on same cable USB.

Best regards.

Piranha
Principal III
February 12, 2022

Don't waste your time with broken bloatware and take a look on sanely designed USB stack:

https://github.com/hathach/tinyusb/tree/master/examples/device/cdc_msc