cancel
Showing results for 
Search instead for 
Did you mean: 

STM32MP135F-DK - Moving USB HOST HID function from OTG/Type C to HOST

SteMMo
Associate III

Hi all,

I'd like to move the USB HID/CDC function, implemented in the Ux_Host_HID_CDC_ACM sample, from TypeC OTG port to USB host port.

Does it make sense?

I started to create a usb_host.c based on usb_otg.c, changing the OTG into the USB Port1 references.

But I don't know how to enable the VUSB voltages on the USB connectors: the enables seems to be under control of the USB hub on the DK board.

Do I need to send commands via the i2c5 bus?

Which commands?

 

Thanks!

 

-- ADDED --

Looking better the schematics I note that the resistors connected with the I2C pins are not inserted, so it is impossible communicate with the USB hub chip.

So, why the VBUSs on the USB TypeA sockets are not enabled (and then they not feed any USB devices ..) ??

 

-- ADDED 2 --

Why the GPIO PortB Pin2 is set as original implementation of USBH_DriverVBUS() ??

 

-- ADDED 3 --

Definitively I'm not able to point to USB Host port.

My guess is that the USB hub is sleeping/disabled cause a configuration error of the USB_DP1+USB_DN1 pins.

Can anyone help me to configure the USB Host module, please?

 

1 REPLY 1
SteMMo
Associate III

Has anyone managed to make the example work?

Same problem with Ux_Host_MSC_A7 ... no VBus voltage on the Type-A USB Host connectors.

In this sample VBUS is set by the GPIO PortH Pin5 .. !?!?!?!?!