Skip to main content
MOsta.1
Associate II
July 6, 2021
Solved

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

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.
Imen.DBest answer
ST 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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks

3 replies

Imen.DBest answer
ST 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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
Grant Bt
Associate III
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.1
MOsta.1Author
Associate 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/.