• 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 SPIFFS upload problem

Q&A Forum › ESP32 SPIFFS upload problem
0 Vote Up Vote Down
Jean-Michel Haution asked 4 years ago

Hi Sara and Rui,
I use you eBook « Build WebServer with ESP32 and ESP8266 »
I  have tested   many examples of this book with a mac book. All works perfectly.
Now, I have just installed a Raspberry pi4 with Ubuntu / platform IO.
I Try to upload the example 3.1 Display Sensor Reading (SSE) page 312.
Upload of the main is Ok but bad for the SPIFFS.I get the following error :
Building SPIFFS image from ‘data’ directory to .pio/build/esp32doit-devkit-v1/spiffs.bin
sh: 1: mkspiffs_espressif32_arduino: not found
*** [.pio/build/esp32doit-devkit-v1/spiffs.bin] Error 127

may I have some help please ?

Best regards,

 

JM HAUTION

 

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

Hi.
I haven’t found any information about that error :/
Does that happen only with that specific project or with all projects that you try to upload the data?
Regards,
Sara

0 Vote Up Vote Down
Jean-Michel Haution answered 4 years ago

Hi Sara, Thanks for your answer.
It Happens using platformio with all projects when i build Filesystem Image before to upload it in the ESP32.
Now, I have added  the 99-platformio-udev.rules at the right place and have got a mkspiffs file but i don’t know where to store it.
Some issue ?
Thanks a lot,
Regards,
JMH

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

Hi again.
Taking a look at the error, it seems that it should be on this directory:  .pio/build/esp32doit-devkit-v1/
However, I don’t know why you need to do this procedure, because it should work without having to do that.
Regards,
Sara

0 Vote Up Vote Down
Pineau Mathias answered 3 years ago

Hello,
I crossed the same problem today and after half a day I found the solution here:
https://github.com/philbowles/ESPAsyncWebServer/issues/3
It seems there is a missing update in a file. There was a “solution” to use the 4.5.0 version (today is 5.1.1) of the espressif32 plateform by forcing its use with adding

platform = espressif32@4.5.0

in the plateformio.ini file, this is the first that works. BUT then it blocs at the filesystem image building.
So, the above solution ask to change 3 lines in the file

<your project>/.pio/libdeps…/ESP Async…/src/WebAuthentification.cpp

Change these 3 lines :

mbedtls_md5_starts(&_ctx);
mbedtls_md5_update(&_ctx, data, len);
mbedtls_md5_finish(&_ctx, _buf);

by:

mbedtls_md5_starts_ret(&_ctx);
mbedtls_md5_update_ret(&_ctx, data, len);
mbedtls_md5_finish_ret(&_ctx, _buf);

Then save it (Ctrl+s).
As long as they do not correct the bug, this will burn other neurones…

Kind regards,
Mathias

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

Hi.
Thank you so much for sharing this valuable information.
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.