Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USBX-Device: ACM-CDC dual #166

Open
ModicaPaolo opened this issue May 29, 2024 · 1 comment
Open

USBX-Device: ACM-CDC dual #166

ModicaPaolo opened this issue May 29, 2024 · 1 comment
Labels
feature New feature or enhancement request

Comments

@ModicaPaolo
Copy link

Hello,

  1. Is it possible to use the USBX stack to expose two ACM-CDC under the same USB?
  2. Is it necessary to register the ACM-CDC class twice under a composite device, or is there a way to show two virtual CDCs under the same class?
  3. I am using USBX and ThreadX on an STM32U575CGU and have successfully implemented a single ACM-CDC. However, I cannot find a way to implement two ACM-CDC instances. If this feature is not currently supported, is it planned to be added in the future?

Thank you.

@ModicaPaolo ModicaPaolo added the feature New feature or enhancement request label May 29, 2024
@ayedm1
Copy link
Contributor

ayedm1 commented May 29, 2024

Hi @ModicaPaolo

Yes usbx support composite dual cdc acm
1- Update the device descriptor with two cdc acm interface
2- Register two cdc acm class
3- don't forget to configure USB fifo.

For the init of application or the device descriptor you can refer to nxp example maybe it can help you:

https://github.com/nxp-mcuxpresso/mcux-sdk-examples/blob/main/evkmimxrt1015/azure_rtos_examples/usbx_device_composite_cdc_acm_cdc_acm/usbx_device_composite_cdc_acm_cdc_acm.c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or enhancement request
Projects
None yet
Development

No branches or pull requests

2 participants