MichaelK 08/04/2025 02:31 PM
floitsch 08/04/2025 03:59 PMYou will need a custom envelope for that. See https://docs.toit.io/tutorials/misc/custom-envelope-local
I have tried to make CDC work for the S2, but didn't finish the testing: https://github.com/toitlang/envelopes/pull/80/files
In theory, CDC means that the console input/output goes through the USB pins, leaving the UART-0 (uart-usb converter) free. (That said: I'm not sure if CDC also liberates the UART-0). If not, you also need to change the UART-0 pins.
A completely different approach is to implement USB and implement a UART endpoint. That's much more complex, though. 2 messages in total