cancel
Showing results for 
Search instead for 
Did you mean: 

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

MOsta.1
Associate II

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Imen.D
ST Employee

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

View solution in original post

3 REPLIES 3
Imen.D
ST Employee

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Grant Bt
Senior

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

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

MOsta.1
Associate II

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/.