cancel
Showing results for 
Search instead for 
Did you mean: 

USB HID Host connect

Grisby
Associate II

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?

3 REPLIES 3
Grisby
Associate II

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
Lead II

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
Senior

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