Skip to main content
VK Verma
Associate III
September 14, 2018
Question

NUCLEO-L4R5ZI USB Host standalone HID and MSC application example not working

  • September 14, 2018
  • 4 replies
  • 856 views

Hi,

I found many bugs in the given application example like

1) Wrong clock configuration, which lead to hard fault error

2) Wrong ports configuration, which is not enabling USB Host port power

and many more unknown due to which HID keyboard is not communicating,

I resolved the above two mentioned but unable to through it

If any one can help on this please put some light !!

Thanks and Best Regards,

VK Verma

    This topic has been closed for replies.

    4 replies

    Pavel A.
    September 14, 2018

    For the HID issue, there is a patch for STM32F4, maybe it is applicable to L4 USBH library too.

    https://github.com/pavel-a/stm32f4_libs/blob/master/STM32Cube_FW_F4/patches/USBH-ctrlreq-hid-21may2018.patch

    Sorry, I do not have L4 so could not test it .

    -- pa

    VK Verma
    VK VermaAuthor
    Associate III
    September 15, 2018

    Hi Pavel,

    Thanks for your consideration !!

    I have downloaded the patch but unable to apply it with existing cubeF4/L4.

    I can see the difference in the modified functions mentioned in the patch (https://github.com/pavel-a/stm32f4_libs/commit/d370188a7281b3d1c4c97a5d06913e9fc0b6da8f) with respect to existing cubeF4 framework but please tell me how to apply it.

    I tried with STM32CubeMX help/apply_patch but it is looking for .zip file and declare this as an invalid patch file.

    Thanks and Best Regards,

    VK Verma

    Pavel A.
    September 16, 2018

    Ok it looks like the L4 library is newer than F4, and these changes are already there. So, I don't know what causes the keyboard issue, sorry.

    -- pa

    VK Verma
    VK VermaAuthor
    Associate III
    September 17, 2018

    Hi Pavel,

    In fact your idea helped me and by modifying those files and resolving certain errors, I am able to get HID keyboard response.

    Therefore I truly acknowledge your valuable inputs and covey my thanks to you.

    Thanks and Best Regards,

    VK verma