Skip to main content
DDeba.1
Associate III
February 3, 2025
Question

STM32G0B1 USB Host not working

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

This topic has been closed for replies.

3 replies

ST Technical Moderator
February 3, 2025

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.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
DDeba.1
DDeba.1Author
Associate III
February 3, 2025

Hi, 

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

DDeba.1
DDeba.1Author
Associate III
February 11, 2025

Anyone has any idea about this issue please?