Skip to main content
BRonc.1
Associate III
January 19, 2024
Solved

NUCLEO-G0B1RE and USB HID function

  • January 19, 2024
  • 1 reply
  • 1937 views

Hi,

I would like to enable the USB HID Device function to the target uC of the NUCLEO board. So I've created a new project, selected the board and added the 2 USB pin configuration:

BRonc1_0-1705677489698.png

I've also enabled the middleware functions:

BRonc1_1-1705677509499.png

the clock config seems to be correct:

BRonc1_2-1705677570198.png

and the generated code is (I've just added a hello world string on serial):

BRonc1_3-1705677632449.png

I just want to recognize the device from my PC: on the nucleo board I've connected pin PA12 and PA11 directly to a USB connector with two wires (plus GND); when I plug usb cable the PC says "USB device not recognized".

My question is: It could be only an hardware problem or I have to set something more in the firmware and/or configuration?

 

 

    This topic has been closed for replies.
    Best answer by BRonc.1

    Hi,

    solved.... just enable interrupt in the .ioc file:

    BRonc1_0-1705679524112.png

     

    1 reply

    BRonc.1
    BRonc.1AuthorBest answer
    Associate III
    January 19, 2024

    Hi,

    solved.... just enable interrupt in the .ioc file:

    BRonc1_0-1705679524112.png