ESP32: impossible to upload any file after main.py or boot.py is uploaded.
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 :-)
Disabling REPL on ESP32
Can we disable REPL on ESP32 for security purposes?
I don't want the main.py to be accessed through REPL.