[ESP32-S2] Enable UART REPL instead of USB
Posted: Mon Feb 21, 2022 11:21 pm
I have created a custom board with ESP32-S2-WROVER-I. Using an external serial adaptor for programming. I am new to ESP32 and Micropython, but a mid-skill-level programmer for many other microcontrollers.
The GENERIC-S2 port compiled just fine, but it appears to be setup for USB REPL. I can see the system boots, but no interaction on UART.
Next, I tried to simply delete the .usb line in mpconfigboard.h
It compiles without error, but the microcontroller panics during boot, endless reboots. So, I put the .usb line back in and tried to modify the sdkconfig.usb file:
Again, it compiles without errors but panics the microcontroller. Clearly I am just hacking away at this blindly.
Is anyone able to point me in the right direction to get the REPL on the UART?
The GENERIC-S2 port compiled just fine, but it appears to be setup for USB REPL. I can see the system boots, but no interaction on UART.
Next, I tried to simply delete the .usb line in mpconfigboard.h
Code: Select all
set(IDF_TARGET esp32s2)
set(SDKCONFIG_DEFAULTS
boards/sdkconfig.base
boards/sdkconfig.usb
)
if(NOT MICROPY_FROZEN_MANIFEST)
set(MICROPY_FROZEN_MANIFEST ${MICROPY_PORT_DIR}/boards/manifest.py)
endif()
Code: Select all
CONFIG_USB_ENABLED=n
CONFIG_USB_CDC_ENABLED=n
CONFIG_USB_CDC_RX_BUFSIZE=256
CONFIG_USB_CDC_TX_BUFSIZE=256
Is anyone able to point me in the right direction to get the REPL on the UART?