cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4 USB HID DEVICE AS MOUSE

bhargavi ale
Associate II
Posted on March 14, 2018 at 13:58

Hi All,

Iam trying to configure STM32F4 discovery board to detect as mouse in Windows PC.

I have generated code from STM32CubeMX tool and configurations are HSE_VALUE = 25MHZ, usb device class is HID. When Am running code PC is detecting STM board as unknown device i.e., it is not getting enumerate. Later I got to know that the device is stucked at Default Adress and stm is not getting device descriptor request from HUB.

Please, help me out from this problem.

Thanks in advance...

2 REPLIES 2
Posted on March 14, 2018 at 14:24

The board uses an 8 MHz clock source, HSE_VALUE needs to reflect that.

STM32F407G-DISCO

http://www.st.com/en/evaluation-tools/stm32f4discovery.html

 
Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
Posted on March 15, 2018 at 06:36

Hi Clive One,

Thanks for your reply. It is working after change of HSE_VALUE to 8 MHZ from 25 MHZ.