cancel
Showing results for 
Search instead for 
Did you mean: 

Example for USB HID / NUCLEO-071RB

nyholku
Associate

I have a NUCLEO-071RB development board.

Is there a ready to run example for this board somewhere?

I tried to generate a bare bone example with CubeMX.

The code loads and runs but hangs in here:

MX_ThreadX_Init =>  
tx_kernel_enter => 
tx_initiali ze_kernel_enter =>
tx_application_define

The code enters infinite loop here, with the status==255

memory_ptr = (VOID *)&ux_device_app_byte_pool;
status = MX_USBX_Device_Init(memory_ptr);
if (status != UX_SUCCESS)
{
/* USER CODE BEGIN MX_USBX_Device_Init_Error */
while(1)
{
}
/* USER CODE END MX_USBX_Device_Init_Error */
}


I can of course debug that further but rather than going down that rabbit hole the first thing with this processors I would be prefer and example code that compiles, loads, runs, initialises and enumerates correctly as HID as a starting point.

1 REPLY 1
FBL
ST Employee

Hello @nyholku 

Check the following HID application.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.




Best regards,
FBL