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 :-)
Compiling for esp8266; I'm not able to use main/boot.py
This is pretty basic; I've flashed my esp8266 a few times and I get the REPL console.
But adding a main.py / boot.py in the scripts directory doesn't do anything. My board doesn't have USB so I can't really add them to the board itself directly.
What should I do to get the board to parse my scripts? I've been manually pasting them in a single line with newline characters in the console.