← index #8180Issue #4843
Related · high · value 1.866
QUERY · ISSUE

ESP32: impossible to upload any file after main.py or boot.py is uploaded.

openby cederomopened 2022-01-16updated 2022-01-21
port-esp32

Hello world :-)

My MicroPython application on ESP32 has internal CLI that user can attach to in order to control device. However this CLI seems to interfere with source code update/upload to device with mpremote/rshell as it seems to depend on REPL. I need to re-flash MicroPython before uploading my application into device.

The problem seems to be at board name acquisition by the host application - instead REPL this application gets my application banner and prompt.

My application is wrapped in try except pair that catches all exceptions logs the issue and reboots the board. CLI itself is a while True kind of loop. Application on exit reboots the board. The goal is not to give end user access to the REPL even with generic board firmware where REPL is compiled in.

How this can be avoided?

What command should I implement in my application CLI so it does not interfere with mpremote/rshell operations?

Any hints welcome :-)

CANDIDATE · ISSUE

Disabling REPL on ESP32

openby hetvishah08opened 2019-06-13updated 2025-04-08
port-esp32

Can we disable REPL on ESP32 for security purposes?
I don't want the main.py to be accessed through REPL.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied