2025-02-03 03:27 AM
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
2025-02-03 03:56 AM
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.
2025-02-03 04:33 AM
Hi,
Thanks for the promt reply. I checked and I am using the 1.6.2. Also, the device is self powered.