Skip to main content
bhargavi ale
Associate II
Mar 14, 2018 12:58 PM UTC
Question

STM32F4 USB HID DEVICE AS MOUSE

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...

    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    Mar 14, 2018 1:24 PM UTC
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    bhargavi ale
    Associate II
    Mar 15, 2018 6:36 AM UTC
    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.