Skip to main content
Visitor II
July 6, 2021
Solved

I would like to know if there is an example project of USB composite (CDC+HID) for STM32L562.

  • July 6, 2021
  • 3 replies
  • 1066 views

I have two independent projects HID and CDC which work correctly. But when I want to merge the two projects to have on composite USB device, the HID does not work correctly, it stucks. Only the CDC works fine.

    This topic has been closed for replies.
    Best answer by Imen.D

    Hello @MOsta.1​ ,

    There are only independent projects within STM32CubeL5 package.

    So, I suggest you to debug, localize where the code hangs, and identify what is the problem that you see and when it occurs.

    Imen

    3 replies

    Imen.DAnswer
    Technical Moderator
    July 6, 2021

    Hello @MOsta.1​ ,

    There are only independent projects within STM32CubeL5 package.

    So, I suggest you to debug, localize where the code hangs, and identify what is the problem that you see and when it occurs.

    Imen

    Graduate II
    August 13, 2021

    There is a demo example here that might shed some light on the matter.

    https://github.innominds.com/dmitrystu/libusb_stm32

    MOsta.1Author
    Visitor II
    August 20, 2021

    Thanks for your answers. In fact, now it is working fine , I build the project based on the following link below: https://www.programmersought.com/article/18127793400/.