cancel
Showing results for 
Search instead for 
Did you mean: 

STm32 USB HID not working

User16782158065171037550
Associate III

HI,

STM32 USB HID mouse generated with CubeMX not working. Tried with all Discovery board also.

Help needed. Tried on STM32F103RB, STM32F429, STM32F746, none working.

Thanks,

8 REPLIES 8
Mike_ST
ST Employee

Hello,

Please, check that interrupt for USB IP is activated.

I think this was an issue before.

Otherwise, have you tried the examples that are included in the STM32 firmware packages ?

User16782158065171037550
Associate III

I have tried the examples in the packages. Which interrupts do you mean by interrupt for USB IP?

Thanks

Mike_ST
ST Employee

>> I have tried the examples in the packages.

Do they work ?

Talking about the following interrupt "USB On The GO HS" here:

0693W00000DqRFsQAN.png

User16782158065171037550
Associate III

The examples do not work. I am using FS. Thanks for the reply.

User16782158065171037550
Associate III

I am posting here in detail.

STM32CubeIDE v1.6.1

Firmware Package Name and Version: STM32Cube FW_F1 v1.8.4

OS: Ubuntu 18.04.5 LTS \n \l

HW: STM32F103RBT6

It is not even enumerating. The .hex file provided by the board manufacturer enumerates as USB HID, but when I create a project in STM32CubeIDE / STm32CubeMX, it does not even enumerate.

Also tired on STM32F429ZI Discovery board, STM32F746 Discovery board, none working.

Attached STM32CubeIDE project.

0693W00000DlWmrQAF.png

Mike_ST
ST Employee

Do you manage PD2 in your software?

Where do you initialize PA11 and PA12 ?

Please look at usbd_conf.c from the STM32F103RB-Nucleo example

User16782158065171037550
Associate III

Hi Mike_ST,

I got it working on STM32F103RB, the PD2 was not set correctly. I am not able to get it working on STM32F429 and STM32F746 discovery board, WIP.

Thanks all for your help and suggestions.

Regards,

Milind

Hi, did you managed to make it work on STM32F746?