jczic / ESP32-MPY-Jama

v1.2 - UI tool for manage Espressif ESP32 microcontrollers with embedded MicroPython for MacOS, Windows and Linux: mini IDE, files manager, REPL, real time dashboards (sys/net), advanced features (gpio/mp3/leds/...)
https://github.com/jczic/ESP32-MPY-Jama
MIT License
424 stars 25 forks source link

Unreliable connection to Lolin S3 Pro #45

Open ejeklint opened 1 year ago

ejeklint commented 1 year ago

I have big problems getting MPY-Jama to work properly with a Lolin S3 Pro card. When uploading a file I usually, but not all the times, get a "Timeout...", and after that I get "An error has occurred", or "A process is in execution", or "A process is already in execution".

Disconnect/reconnect + restarting MPY-Jama can sometimes get the setup running again, but only after a few attempts and after one or two edits of main.py (running a simple blinky application) the problems are back. Also: ctrl-commands in the repl terminal does nothing. The card is preloaded with micropython and seem to work as it should. I've tested on two machines (macOS 13.4) with the same result. I haven't got a clue on how move forward with this... 😕

Skärmavbild 2023-05-24 kl  10 57 26
jczic commented 1 year ago

Hi @ejeklint, do you use the binary application for the software or do you run it from the repository sources? In which case, could you try the same operation by changing the timeout at line 616 of the src/esp32Controller.py file by putting for example timeoutSec=10? 3 seconds is supposed to be enough to write the file buffers but maybe there is sometimes a latency on your card (which I don't have to test...).

ejeklint commented 1 year ago

I'm running the downloaded binary application, on an M2 Macbook pro. I have very little experience with Python but will give it a try, building from source. gulp

ejeklint commented 1 year ago

Nope, I'm not python-savvy enough to build a new binary. Giving up for the moment.