cancel
Showing results for 
Search instead for 
Did you mean: 

NUCLEO-G0B1RE and USB HID function

BRonc.1
Associate III

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?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
BRonc.1
Associate III

Hi,

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

BRonc1_0-1705679524112.png

 

View solution in original post

1 REPLY 1
BRonc.1
Associate III

Hi,

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

BRonc1_0-1705679524112.png