Skip to content

Commit 5ee08be

Browse files
Re-enable UART REPL again BUT add esp.uart_repl(False) functionality to disable/enable it at runtime
1 parent 22ec68d commit 5ee08be

3 files changed

Lines changed: 9 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Frameworks:
1818
OS:
1919
- Simplify focusgroup handling
2020
- Disable unused OS facilities (FreeRTOS internals, tracing, INFO logging, broken GIF, Pinyin IME, LVGL window, BMP) to reduce build size by 109KiB
21+
- Re-enable UART REPL again BUT add esp.uart_repl(False) functionality to disable/enable it at runtime
2122

2223
0.10.0
2324
======

scripts/build_mpos.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,11 @@ echo "Symlinking secp256k1-embedded-ecdh for unix and macOS builds..."
109109
ln -sf ../../secp256k1-embedded-ecdh "$codebasedir"/lvgl_micropython/ext_mod/secp256k1-embedded-ecdh
110110
echo "Symlinking c_mpos for unix and macOS builds..."
111111
ln -sf ../../c_mpos "$codebasedir"/lvgl_micropython/ext_mod/c_mpos
112-
# Only for MicroPython 1.26.1 workaround:
113-
#echo "Applying lvgl_micropython i2c patch..."
114-
#patch -p0 --forward < "$codebasedir"/patches/i2c_ng.patch
112+
113+
echo "Applying lvgl_micropython esp32 uart repl enable/disable at runtime patch..."
114+
pushd "$codebasedir"/lvgl_micropython/lib/micropython
115+
patch -p1 --forward < ../../esp32_uart_repl_runtime.patch || true
116+
popd
115117

116118
echo "Minifying and inlining HTML..."
117119
pushd "$codebasedir"/webrepl/
@@ -154,8 +156,8 @@ if [ "$target" == "esp32" -o "$target" == "esp32s3" -o "$target" == "unphone" -o
154156
extra_configs="CONFIG_MBEDTLS_HARDWARE_AES=n CONFIG_MBEDTLS_HARDWARE_SHA=n CONFIG_MBEDTLS_HARDWARE_MPI=n"
155157
# --py-freertos: add MicroPython FreeRTOS module to expose internals
156158
#extra_configs="$extra_configs --py-freertos"
157-
# --enable-uart-repl={y/n}: This allows you to turn on and off the UART based REPL. You will wany to set this of you use USB-CDC or JTAG for the REPL output
158-
extra_configs="$extra_configs --enable-uart-repl=n"
159+
# Enable UART based REPL, in addition to the USB-CDC or JTAG REPL. Can be disabled with esp.uart_repl(False)
160+
extra_configs="$extra_configs --enable-uart-repl=y"
159161
fi
160162

161163
if [ "$BOARD_VARIANT" == "SPIRAM" -o "$BOARD_VARIANT" == "SPIRAM_OCT" ]; then
@@ -267,4 +269,3 @@ PY
267269
else
268270
echo "invalid target $target"
269271
fi
270-

0 commit comments

Comments
 (0)