Skip to main content
Explorer
January 29, 2024
Solved

About USBD_HID_SendReport

  • January 29, 2024
  • 1 reply
  • 2586 views

The value returned from USBD_HID_SendReport always returns USBD_FAIL,

What settings are wrong?

 

We think we am doing the settings in project.ioc correctly.

[IDE]STM32CubeIDE 1.14.0

Connectivity -> USB_OTG_FS -> [Mode]Device_Only

Middleware -> USB_DEVICE -> [Class For FS IP]HID

[board]​ NUCLEO-F446RE

    This topic has been closed for replies.
    Best answer by FBL

    Hi again @pass3master 

     

    You need to dig deeper and diagnose clock duty cycle, also, you need to check the packets using USB Analyzer.

    1 reply

    Technical Moderator
    January 29, 2024
    Explorer
    January 30, 2024

    No, I have not tried.
    We think it is a similar function, but my question was not answered.
    When is USBD_FAIL returned from USBD_HID_SendReport?

    ・Is Pinout & Configuration wrong?
    ・Clock Configuration is wrong?
    ・Is NUCLEO-F446RE not allowed to be connected via microUSB?

    Technical Moderator
    January 30, 2024

    The USBD_FAIL status can be returned from USBD_HID_SendReport under several conditions.

    It can occur if the USB device is not properly initialized, if the class is not correctly registered, or if the device process does not start correctly. More likely, the clock could potentially cause this problem with the USB communication.