cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G0B1 USB Host not working

DDeba.1
Associate III

Hi, 

I have an STM32G0B1CBT device on a custom board. MCU is working as I have already coded and tested other peripherals (I2C, UART etc..). I used the STM32CubeMX version 6.13.0 to configure the MCU as a USB host with CDC class following the example shown on this link https://www.youtube.com/watch?v=pC16Aon4crk

The only difference I have is that my device is self powered so I don't need the power pin feature. My issue is that when I connect a device, nothing happens. I placed two break points in the USBH_UserProcess function in the HOST_USER_CLASS_ACTIVE and HOST_USER_CONNECTION cases but execution never reach those states. 

Is there any reason for this?

Thanks

2 REPLIES 2
Imen.D
ST Employee

Hello @DDeba.1 ,

Make sure to use the latest STM32CubeG0 firmware version (V1.6.2) as contains fixes and enhancement of USB host issues.

Check also if the VBUS pin is correctly connected, and that the device is receiving power.

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

Hi, 

Thanks for the promt reply. I checked and I am using the 1.6.2. Also, the device is self powered.