-
Notifications
You must be signed in to change notification settings - Fork 47
Description
I'm trying what others seem to have done before, but I can't find any examples online.
I want to have two serial CDC-ACM interfaces, so that one can stream data continuously while the other can be used for interaction with the device.
Calling the second SerialPort::new() panics at https://github.com/rust-embedded-community/usbd-serial/blob/master/src/cdc_acm.rs#L60 with alloc_ep failed: EndpointOverflow.
My microcontroller is the stm32f411. This is supported by the blackmagic probe firmware, which also offers two Serial interfaces, so I assume that the microcontroller should be able to handle it:
https://github.com/blackmagic-debug/blackmagic/blob/df0c092165a5e6784ba94a0eaa0ec08a71c3a0c7/src/platforms/common/usb_serial.c#L30-L39
Is it maybe relevant that the blackmagic uses an IN endpoint for one CDC CTRL endpoint and an OUT endpoint for the other one? Is this somehow possible with usbd-serial?