Skip to main content
Visitor II
May 5, 2022
Question

how to make stm32f407vet6 a mouse host to decode X and Y position?

  • May 5, 2022
  • 1 reply
  • 1193 views

i've alread tried these tutorial but doesnt work(https://controllerstech.com/stm32-usb-host-hid/).

the board schematic for stm32f407vet6 - https://stm32-base.org/assets/pdf/boards/original-schematic-STM32F407VET6-STM32_F4VE_V2.0.pdf

and some infos - https://stm32-base.org/boards/STM32F407VET6-STM32-F4VE-V2.0.html

    This topic has been closed for replies.

    1 reply

    Super User
    May 5, 2022

    "Doesnt work" is not very informative. Does anything work at all?

    Can you pass enumeration of the mouse (read descriptors) ? Can you get raw report data from the mouse?

    Visitor II
    May 5, 2022

    yes, anything works. i connect the mouse via usb port or via mcu pins and nothing respond (the led is always off). in these code i use a callback function for every data (x,y) and will be displayed in PC via uart.

    i use the A725 sensor.

    Super User
    May 5, 2022

    The LED always off can mean that the device does not receive power from the USB host.

     Have you tried to connect a simple mouse instead of the sensor?