Skip to main content
Visitor II
June 5, 2020
Question

USB_Host (HID_Standalone)

  • June 5, 2020
  • 0 replies
  • 650 views

Hello Everyone

I'm working with STM32F746Discovery Board.

I have a problem with "USB_Host (HID_Standalone)" project in STM32746G-Discovery folder in cubemx package.

my value of "mouse_info.x" doesn't update. all other members of _HID_MOUSE_Info structure updates but this one. mouse clicks and Y axis detect correctly.

typedef struct _HID_MOUSE_Info

{

 uint8_t             x;

 uint8_t             y;

 uint8_t             buttons[3];

}

HID_MOUSE_Info_TypeDef;

and

m_pinfo = USBH_HID_GetMouseInfo(phost);

can't work correctly.

It means I can't receive x axis motion.

How can I solve this problem? I have only one mouse (Logitech Wireless) and can't test with another mouse but this one works well with my PC.

Regards

Mohsen

0693W000001qAbAQAU.jpg

0693W000001qAbKQAU.jpg

    This topic has been closed for replies.