cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H7S7L8 dual USB

Hamady
Associate III

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

 

8 REPLIES 8
AScha.3
Super User

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

Hi 

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

Thanks

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".
Hamady
Associate III

We need to have all the USB as device mode !

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".
FBL
ST Employee

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.


Hamady
Associate III

Thanks for the response 

There is no .ioc file in this project 

And how to convert it to VCP class 

Thanks 

TDK
Super User

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