cancel
Showing results for 
Search instead for 
Did you mean: 

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

Ejunior007
Associate II

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

4 REPLIES 4
Pavel A.
Evangelist III

"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?

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.

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?

Yes, i'm using a gamer mouse for my project that have the A725 sensor. but i already tried a simple mouse, and have the same result. i think its the module that i have. i will try using only D- and D+ and not the Vbuss.