Hi – I am having problems using the VSC PIO “Upload FileSystem Image” on an ESP8266 NodeMCU v2 (the system starts uploading, but I get: https://pastebin.com/pP8fazff). This is for Webserver Example 1.2 on pages 170+ of the ESP Webserver e-book, I find it’s probably related to the requirement of using Python 3.8 or later, as stated in e-book, page 28. Since I’m using Ubuntu 18.04 LTS on a VM, this distribution only natively seems to support up to version 3.7. What would be the recommended procedure to install v3.8, without “breaking” other programs? Thank you very much – Rafael
Hi Rafael.
Did you try uploading other sketches?
That error usually means that the program is not able to establish a connection with the board because the board is not in flashing mode. Try pressing the FLASH button on the ESP8266 board when you start seeing a lot of dots on the debugging window and see if that solves the problem.
I don’t think the issue is related with ubuntu.
Regards,
Sara
Hi Sara,
thankyou for your anwser – yes, the upload with the first Webserver program (no SPIFF to upload) works great. The only issue appears to be with the “Upload FileSystem Image” after correctly compiling example 1.2. Since the error appears with the esptool.py I suspected the Python version was the problem. Best wishes
Rafael
Hi.
I’m not sure. In the documentation, they state that you need Python 3.5 or higher.
I don’t know how to help you in this issue.
It’s probably better try to find help here: https://community.platformio.org/
Regards,
Sara
Hi Sara – thanks I’ll try in there. If it’s Python 3.5 it should be ok, they may require something else or I’m mistaken at some point. I will test also with the ESP32 DOIT to see if it’s an issue with this particular 8266 board. Best wishes – Rafael
Hi Sara – thanks I’ll try in there. If it’s Python 3.5 it should be ok, they may require something else or I’m mistaken at some point. I will test also with the ESP32 DOIT to see if it’s an issue with this particular 8266 board. Best wishes – Rafael
Hi Sara,
your suggested forum had a solution at:
https://community.platformio.org/t/error-uploading-spiffs-esp8266/14593
Suggested by moderator maxgerhardt on June 2020.
Basically: From the VSC directory, delete the .pio directory, this appears to hold the previous temporary files and build, so deleting it worked for me (file permissions in /data were ok). As suggested in your book, later:
Execute Clean and close terminal
Build Filesystem Image and close terminal
Upload Filesystem Image and close terminal
Upload and Monitor .. Worked!
I am sharing the outputs at:
https://imgur.com/a/FBWOAjr
(also posted is the platformio.ini file, which is slightly different from yours since it’s a different board).
Thank you!! Best wishes
Rafael