Skip to content
Discussion options

You must be logged in to vote

So I'll answer my own question - maybe useful to someone else in the future.

Created a custom ESP32 board config based on ESP32_GENERIC_S3 and in mpconfigboard.h set

#define MICROPY_HW_ENABLE_UART_REPL           (1)
#define CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG    (0)
#define MICROPY_HW_USB_CDC                    (0)

This enables the serial UART on the physical pins on the ESP32 but disables the serial port via USB used for REPL.

Then I create a new CDCInterface (via the usb.device.cdc library). This gives me a single USB serial port that's not connected to REPL. Only issue I have now is that although CDCInterface says it's been written to mimic UART, it's missing the irq() method, but I'l…

Replies: 2 comments 1 reply

Comment options

Josverl
Jan 22, 2026
Collaborator Sponsor

You must be logged in to vote
1 reply
@surfermarty
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Josverl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
ESP32
Labels
None yet
2 participants