• 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 spiff

Q&A Forum › Category: ESP32 › ESP32 build spiff
0 Vote Up Vote Down
Wally Harwood asked 9 months ago

When attempting to build  Filesystem Image I get an error –
‘”mkspiffs_espressif32_arduino”‘ is not recognized as an internal or external command,
operable program or batch file.
*** [.pio\build\esp32doit-devkit-v1\spiffs.bin] Error 1
I see that others have had trouble with upload and that a fix was given but I do not see a solution to this problem in build.

Question Tags: ESP32 SPIFF problem when attempting to "Build Filesystem Image"
7 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 9 months ago

Hi.
Can you tell me which tutorial are you following?
Regards,
Sara

0 Vote Up Vote Down
Wally Harwood answered 9 months ago

Hi Sara,
I am following  Build Webservers… 2.5 – WebSocket Web Server: Control Multiple Outputs.
I have tried both download and copy and paste versions.
I am using esp32doit-devkit -V1 with platformio.

[env:esp32doit-devkit-v1]
platform = espressif32
board = esp32doit-devkit-v1
framework = arduino
monitor_speed = 115200
lib_deps  =  ESP Async WebServer
    arduino-libraries/Arduino_JSON @ 0.1.0

 
This is the only folder in workspace
 
I have run blink successfully  – which of course does not use spiffs- on this board.
 
Regards
Wally
 

0 Vote Up Vote Down
Sara Santos Staff answered 9 months ago

Hi.
What operating system are you using?
Does this happen only with this project or other projects in the eBook as well?
 
It seems an issue with your computer/operating system.
 
I test it on my computer and it is working as expected.
 
Regards,
Sara

0 Vote Up Vote Down
Wally Harwood answered 9 months ago

I have run other projects including this one using ESP8266. This is the first time using ESP32 and SPIFFS
I am using : Edition Windows 11 Home,
Version 23H2
Installed on ‎2023-‎10-‎20
OS build 22631.3880
Experience Windows Feature Experience Pack 1000.22700.1020.0
I found a description of a similar problem at
https://community.platformio.org/t/unable-to-build-image-by-using-spiffs-h/32900
but I cannot understand information or even it they resolved the problem.

I tried project 1.3 Hello World Webserver and had the same problem.

regards,
Wally

0 Vote Up Vote Down
Sara Santos Staff answered 9 months ago

Hi.
 
Unfortunately, I don’t know what might be wrong. 
 
This is the same problem as yours: https://community.platformio.org/t/cant-build-filesystem-image-sh-1-mkspiffs-espressif32-arduino-not-found-error-127/19295/3
But the solution doesn’t apply to your case.
 
I don’t know why you get that error or how to fix it. Maybe something wrong happened during the installation procedure, but it’s hard to tell.
 
Regards,
Sara

0 Vote Up Vote Down
Wally Harwood answered 9 months ago

Sara
Perhaps I am a victim of some upgrade(s). 
I tried using  LittleFS instead of SPIFFS and it works fine. Because SPIFFS is deprecated  and it doesn’t work for me it is best to go the LIttleFS route.
The changes are easy : 
replace “SPIFFS”  with “LittleFS”  (do not include the quotes) for every occasion in main.cpp and 
add board_build.filesystem = littlefs to platform ini
Thank you for your help.
regards  Wally
 

0 Vote Up Vote Down
Sara Santos Staff answered 9 months ago

Hi.
Thanks for sharing.
In my system, both LittleFS and SPIFFs work.
We’ll update the codes in the future to use only LittleFS.
We’re currently updating other eBook at the moment, but that one will be next.
 
Thanks for your patience.
 
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

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 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.