Skip to main content
Grisby
Associate II
August 7, 2018
Question

USB HID Host connect

  • August 7, 2018
  • 3 replies
  • 1200 views

I have generate a STM32H743ZI with CubeMX as HID-Host on PB14,PB15.

I get no Interrupt to set is_Connect flag.

When is an Interrupt generate in OTG_GINTSTS->HPRTINT?

This topic has been closed for replies.

3 replies

Grisby
GrisbyAuthor
Associate II
August 8, 2018

I try it again with CubeMX to create a simple HID Host with OTG2 (PA11,PA12) and connect a mouse over an OTG cable. No Interrupt, no connection. With the debugger under True Studio I see that the IRQ is enable. PowerSwitch (STMPS2151STR) works and is ON.

Khouloud GARSI
ST Employee
August 10, 2018

Hi @Grisby​ ,

Please make sure to enable the USB voltage level detector after starting the device process.

 MX_USB_DEVICE_Init(); 
 /* USER CODE BEGIN 2 */
 /* Enable the USB voltage level detector */
 HAL_PWREx_EnableUSBVoltageDetector();
 /* USER CODE END 2 */

Khouloud.

Asantos
Associate III
January 11, 2019

Khouloud.

The voltage level detector is not optional?

I'm having similar problem with the NUCLEO-H743ZI.

https://community.st.com/s/question/0D50X0000ADBUvrSQH/nucleoh743zi-usb-host-hid-has-anyone-ever-made-it-work