• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Using Platform IO / VSC on Ubuntu 1804. PlatformIO v5.0.5b2

Q&A Forum › Category: ESP8266 › Using Platform IO / VSC on Ubuntu 1804. PlatformIO v5.0.5b2
0 Vote Up Vote Down
Rafael Oliva asked 4 years ago

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

8 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

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

0 Vote Up Vote Down
Rafael Oliva answered 4 years ago

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

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

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

0 Vote Up Vote Down
Rafael Oliva answered 4 years ago

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

0 Vote Up Vote Down
Rafael Oliva answered 4 years ago

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

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Ok.
Then, let me know if you find the solution.
Regards,
Sara

0 Vote Up Vote Down
Rafael Oliva answered 4 years ago

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

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Great!
I’m glad you were able to solve it.
Thanks for sharing the solution.
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.