cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G0B1 USB Custom HID

SPK_FW
Associate II

Hi,

I am working with STM32G0B1CETx for an application as a replacement of STM32F105VCTx. I want to use to USB as Custom Human Interface Device Class. I am using CubeMx with MDK-ARM. I have configured USB_DRD_FS as Device_only_FS and Middleware section -> USB_Device i configured the same params as STM32F105VCTx for STM32G0B1CETx . 

When USB is plugged to Laptop STM32F105VCTx  recognizes device with  product string i have configured. but STM32G0B1CETx its showing Device Descriptor Request failed.
Any changes i missed? Can anyone help out?

Thank you

SPK

8 REPLIES 8
Pavel A.
Evangelist III

The MCUs are quite different so it is likely that you've missed some details.

Here you can find help with your STM32 project.

 

SPK_FW
Associate II

Hi
These are setting i have implemented... In main USB init is done.(only Cube mx generated code) rest everything is empty. When i run the code it suppose to show device name under my devices in my windows.

SPK_FW_0-1745984985449.png

SPK_FW_1-1745985021328.png

 

SPK_FW_2-1745985053746.png

SPK_FW_3-1745985106674.png

 

Am i Missing any thing... Thanks for helping out.. 

 

Pavel A.
Evangelist III

Which board do you have? Nucleo or a custom one?

 

Hi Pavel,
Its a custom board.

SPK_FW_0-1746592831510.png

 

Pavel A.
Evangelist III

Then the situation is "something does not work on a custom board" :(  All bets are off.

 

Hi Pavel,
I am able to connect via custom board when i changes setting to custom HID. But After my PC detects its showing driver error.

SPK_FW
Associate II

Hi, 
In CubeMx when i configure device as HID Device it properly listed in My PCs device driver.
But when I change to Custom HID My PCs device driver is detecting device but showing driver error.

Just an update i saw. any way this can be resolved?

 

Pavel A.
Evangelist III

Then it can be just er.... a little bug in the code.

 any way this can be resolved?

Someone should review the generated code and look for anything obvious, then debug. This way.