Skip to main content
Associate III
October 17, 2025
Solved

STM32H7S7L8 dual USB

  • October 17, 2025
  • 4 replies
  • 317 views

Hi ,

I'm working on the STM32H7S7L8-DK and i would like to know if it is possible to use both USB_FS and USB_HS as two separate Virtual-port-com Device mode 

When I try to do it for one it is impossible in cube MX to do it for the other.

Thanks ! 

Hamady_1-1760681664387.png

 

Best answer by FBL

Hi @Hamady 

Here is an example DualCore_Standalone 

- CN14 : to use USB High Speed (HS) for CDC device - CN18: to use USB Full Speed (FS) for HID device

 

4 replies

AScha.3
Super User
October 17, 2025

Hi,

>i would like to know if it is possible to use both USB_FS and USB_HS 

Just out of curiosity or what you want to do with 2 VCP then ?

(Basically it should be possible, but obviously its not a use case provided for in cube.)

"If you feel a post has answered your question, please click ""Accept as Solution""."
HamadyAuthor
Associate III
October 17, 2025

Hi 

We want to use two USB ports to communicate with the H7 ( Example one for PC and of for a module )

Thanks

AScha.3
Super User
October 17, 2025

Ok, but why not VCP device-> PC,

and VCP host -> other module ?

"If you feel a post has answered your question, please click ""Accept as Solution""."
HamadyAuthor
Associate III
October 17, 2025

We need to have all the USB as device mode !

AScha.3
Super User
October 17, 2025

So i would try :

- your project : usb-hs as device -> VCP ; + usb-fs as device (no mode). ok.

- make a new project : only usb-fs as device -> VCP. generate code.

- then try to copy all needed code from this to your project for both usb device used on same mode.

- compile...and try to solve all errors and warnings...until it works.

"If you feel a post has answered your question, please click ""Accept as Solution""."
FBLBest answer
Technical Moderator
October 17, 2025

Hi @Hamady 

Here is an example DualCore_Standalone 

- CN14 : to use USB High Speed (HS) for CDC device - CN18: to use USB Full Speed (FS) for HID device

 

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.Best regards,FBL
HamadyAuthor
Associate III
October 17, 2025

Thanks for the response 

There is no .ioc file in this project 

And how to convert it to VCP class 

Thanks 

TDK
Super User
October 17, 2025

Yes, the hardware supports this.

Not everything is clickable in STM32CubeMX. Expect to do some programming if you want atypical scenarios.

"If you feel a post has answered your question, please click ""Accept as Solution""."