Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
5 years, 10 months ago.
LPC1768/ LPC546xx : Dual VIRTUAL COMPORTS with one USB-connection ?
Hello
I wonder if it possible ( or if someone has already tried it) to have 2 'USB-CDC' comports enabled over ONE physical USB-connection, on a LPC1768 and/or LPC546xx microcontroller
Any URL's / pointers that can guide me ?
Thank You
2 Answers
5 years, 10 months ago.
Not sure. But the only way I can think of is a composite device. That is, a USB device that has more than one device class in its descriptors. In your case, the two devices would both be CDC devices. However I am not sure how windoes would handle it. Should be easy enough to try. take a standard CDC descriptor and make it into a composite device. You don't have to implement much functionality of the second device unless windows recognizes it.
5 years, 6 months ago.
It's been done for STM32F103: Issue: https://github.com/ARMmbed/DAPLink/issues/262 Code: https://github.com/Awais174/DAPLink/commit/4ccea1951dc24c9c109901213baa1e003212bacd#comments