How to implement composite USB profile on STM32WB5mmg?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-15 2: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?
- Labels:
-
STM32WB series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-15 9: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-16 2:03 AM
Thank you for the response. Do you have an example of this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-24 3: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-24 8:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-25 9: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-26 1: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-28 9:20 PM
I'll try and update.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-06 3: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.
