cancel
Showing results for 
Search instead for 
Did you mean: 

How to Setup USB device with CubeMX and find device in Windows device manager

felix23
Associate II

I try to setup a Nucleo144 STM32H7 board to appear in the overview of the USB devices of the device Manager of my windows PC. I tried the following:

  • Setup USB-OTG-FS in Cube MX (Mode: Device only)
  • In the generated code I add HAL_PCD_EP_Open(&hpcd_USB_OTG_FS, ep_addr, ep_mps, ep_type)
  • i also add  HAL_PCD_Start(&hpcd_USB_OTG_FS); because this is written in stm32h7xx_hal.c

However, still, the device does not appear in the USB devices.

I tried to understand the UM1734. All I have in the HAL code is the device handle of the type of PCD_HandleTypeDef. But on page 12 it is written about the device handle of type USBD_HandleTypedef. I cannot find any documentation how to go on to configure the USB interface correctly.

Can anybody point me to the right direction? Are there any tutorials/examples available?

Many thanks in advance.

0 REPLIES 0