2024-04-15 02:25 AM
Hello,
I am trying to implement two CDC profile on STM32WB55xx controller. Since it has 8 endpoints, theoretically it should be possible. What should be the approach to achieve this?
2024-04-15 09:41 AM
Hello @nitinh
To support dual CDC class in single device, you have to add IAD (Interface Association Descriptor) to extend existing configuration descriptor. Then assign unique endpoints and update class handler to manage 2 CDC instances... Implement callback to handle data reception for CDC profiles. You can manage line coding control request ... and test each CDC profile independently with each UART instance.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-04-16 02:03 AM
Thank you for the response. Do you have an example of this?
2024-04-24 03:57 AM
Hi @nitinh
Currently we don't have a ready to use example developed by ST. You can check on GitHub similar examples.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-04-24 08:49 AM
2024-04-25 09:02 AM
Thanks, I'll check it out. I tried adding IADs and modified device descriptor to composite. After that it showed up on Windows Device Manager as two serial devices but I was not able to communicate over them. Also, the manufacturer was shown Microsoft instead of STMicroelctronics.
2024-04-26 01:30 AM
Are you sure you defined the correct endpoints in the descriptor and use them correctly in your firmware? You can check using wireshark that the descriptor is correct, and that data is sent do the correct endpoint.
2024-04-28 09:20 PM
I'll try and update.
2024-09-06 03:37 AM
Hi @nitinh
Check How to implement a dual CDC ACM USB device using t... - STMicroelectronics Community
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.