Connect STM32G0 to Android using USB HID and USB-C
Hello all,
I have a STM32G0C1 MCU on an evaluation board (STM32G0C1E-EV) that I need to act as keyboard/mouse (USB HID) on Android using the USB-C connector.
I am using the latest STM32CubeG0 (v1.5.1) package with the USB Device middleware.
I am able to have keyboard and mouse recognized and working fine on a computer (Windows/Linux) using USB-A and USB-C connectors, but my Android phones won't recognize it (Samsung and Xiaomi). USB-C Power Delivery negociations are working, though.
Even the basic USB-HID example code from ST doesn't work on the phone.
An example code from Arduino (using Atmega 32u4) works out of the box though, and so do USB/Bluetooth mices and keyboards, so there shouldn't be anything wrong on the phones.
On the daughterboard side (MB1352C), I have desoldered 0 ohms resistors SB27 and SB28, and soldered SB54 and SB55 to enable Dead Battery support. Other than this, the evaluation board is pretty much default, jumper and all, as far as I can tell
Any idea as to why my device isn't recognized with Android?
Thanks!
