Skip to main content
Explorer
April 24, 2025
Question

STM32G0B1 USB Custom HID

  • April 24, 2025
  • 6 replies
  • 721 views

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

    This topic has been closed for replies.

    6 replies

    Super User
    April 26, 2025

    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_FWAuthor
    Explorer
    April 30, 2025

    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.. 

     

    Super User
    May 6, 2025

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

     

    SPK_FWAuthor
    Explorer
    May 7, 2025

    Hi Pavel,
    Its a custom board.

    SPK_FW_0-1746592831510.png

     

    Super User
    May 7, 2025

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

     

    SPK_FWAuthor
    Explorer
    May 7, 2025

    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_FWAuthor
    Explorer
    May 8, 2025

    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?

     

    Super User
    May 8, 2025

    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.