STM32F407VG Discovery Board as USB HOST and connect with Mouse.
- March 17, 2020
- 1 reply
- 857 views
Hi,
I want to connect USB Mouse with my Discovery Board and want to communicate with USB protocol. Where
USB device --->> USB mouse
USB HOST --->> STM32F407VGT6 Discovery Board.
IDE --->> STMCube IDE and STMCubeMX for HAL Library for easy understanding.
Questions :
Q.1: I am not getting any example so i can test. I am sure Mouse and Keyboard examples are very common but I am not getting easily.
Q.2: I tried by myself using HAL library but When I am connecting my mouse with "Board". My mouse is not getting any power because Red Led which mouse has, is not glowing. Which directly means emuration process fails. Although I check my hardware which seems perfectly fine. except I am not getting 5V to operate a wired mouse.
I am attaching schematic for your reference where you can search CN5.
Can anyone face similar issue with this Board ?
Q.3: I used you Function which i add by myself into main file.
-->> USBH_StatusTypeDef USBH_HID_MouseInit(USBH_HandleTypeDef *phost);
-->> HID_MOUSE_Info_TypeDef *USBH_HID_GetMouseInfo(USBH_HandleTypeDef *phost);
Thanks & Regards
Vivek Yadav