Skip to main content
Visitor II
October 17, 2025
Question

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

 

    This topic has been closed for replies.

    4 replies

    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.)

    HamadyAuthor
    Visitor II
    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

    Super User
    October 17, 2025

    Ok, but why not VCP device-> PC,

    and VCP host -> other module ?

    HamadyAuthor
    Visitor II
    October 17, 2025

    We need to have all the USB as device mode !

    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.

    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

     

    HamadyAuthor
    Visitor II
    October 17, 2025

    Thanks for the response 

    There is no .ioc file in this project 

    And how to convert it to VCP class 

    Thanks 

    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.