• 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

ESP32 Build Web Servers Book Page 181

Q&A Forum › Category: Questions › ESP32 Build Web Servers Book Page 181
0 Vote Up Vote Down
Steve Fisch asked 4 years ago

I cannot build a filesystem image. I have tried re-creating the project of using a filesystem many times but at the point when I try to build a filesystem image, I get the following error:

Building in release mode
Building SPIFFS image from ‘data’ directory to .pio\build\esp32doit-devkit-v1\spiffs.bin
error: can’t read source directory
*** [.pio\build\esp32doit-devkit-v1\spiffs.bin] Error 1
================================ [FAILED] Took 1.30 seconds ================================
The terminal process “C:\Users\Steve\.platformio\penv\Scripts\pio.exe ‘run’, ‘–target’, ‘buildfs’, ‘–environment’, ‘esp32doit-devkit-v1′” terminated with exit code: 1.

I have tried uninstalling and reinstalling visual studio code and the pio editor, but nothing has helped. When I compile the code the spiffs seem to load properly.

As always, thanks for your help.

Steve

P.S. I started to post this question a minute ago, but hit return too soon. Please remove my earlier incomplete question.

Question Tags: filesystem image esp32
3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi.
Can you tell me where do you have your data folder?
Can you show me a print screen of the project File Explorer on VS Code?
I think that your data folder is not in the right location. It should be under the project folder, not under the src folder.
Regards,
Sara

0 Vote Up Vote Down
Steve Fisch answered 4 years ago

Thanks, Sara, that solved it – I had my data folder in the wrong location. Please mark as resolved.
Steve

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

Great!
I’ll close this issue.
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.