Posted on April 30, 2018 at 23:15
Hi,
I have a project where I need to communicate with CP2110 via USB (medical device having this interface). I am prototyping the application on STM32F746G-DISCO. I have started by running the Application exam...
Posted on May 02, 2018 at 19:05So I have spent almost the whole day studying the USB HID and I think I am getting closer now. According to the chip documentation, the only communication I will need is Control Out, Interrupt Out and Interrupt In repo...
Posted on May 02, 2018 at 13:12
It is not BUSY, it is NOT_SUPPORTED, so I skipped it. I got to HID_MenuProcess where I modified the function by adding a new state HID_DEMO_CP2110 where the state machine is redirected if the device different from ...
Posted on May 01, 2018 at 17:37Sorry, I made a mistake - it can get into HID_REQ_SET_PROTOCOL state but cannot get through USBH_HID_SetProtocol(phost,0). This is where it gets stuck and cannot proceed. Also, in the HID_REQ_SET_IDLE, the reply of USB...
Posted on May 01, 2018 at 13:45Hi Pavel, thanks for your reply. I will check the documentation of the chip whether the descriptor is that huge. I have also CP2110 development board coming to me this week so I will be able to test everything thorough...
Posted on April 30, 2018 at 23:36I have narrowed down the problem - it is in the USBH_HID_ClassRequest function.It gets past if (USBH_HID_GetHIDDescriptor (phost, USB_HID_DESC_SIZE)== USBH_OK) but fails at the next one - if (USBH_HID_GetHIDReportDes...