• 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

SPIFFS Upload failed!

Q&A Forum › Category: ESP32 › SPIFFS Upload failed!
0 Vote Up Vote Down
kaktus asked 1 year ago

Hello.
There was supposed to be a question in regard to a problem I encountered, but there will be a presentation of the problem and a ready solution. 😉
I am a user of the Debian testing distribution.
I am just beginning my adventure with the ESP family. So for this moment I am able to run the presented projects and gain basic knowledge and skills.
I was interested in the following project

ESP32 Plot Sensor Readings in Charts (Multiple Series)


It includes running the file system in the built-in FLASH memory.
Basically, I am using Arduino IDE v2.2.1, however, in order to run this project I had to install IDE v1.8.3 because it is necessary to use the “arduino-esp32fs-plugin” which does not work in the newer version of the IDE.
Following the guide I get an error:

Arduino: 1.8.19 (Linux), Board: “AI Thinker ESP32-CAM, 240MHz (WiFi/BT), QIO, Huge APP (3MB No OTA/1MB SPIFFS), 80MHz, None, Disabled”

[SPIFFS] data : /home/kaktus/Projekty/ESP/stareIDE/ESP32-CAM_sensor_charts/data
[SPIFFS] start : 3211264
[SPIFFS] size : 896
[SPIFFS] page : 256
[SPIFFS] block : 4096
/script.js
/style.css
/index.html
/favicon.png
[SPIFFS] upload : /tmp/arduino_build_681388/ESP32-CAM_sensor_charts.spiffs.bin
[SPIFFS] address: 3211264
[SPIFFS] port : /dev/ttyUSB0
[SPIFFS] speed : 460800
[SPIFFS] mode : dio
[SPIFFS] freq : 80m

SPIFFS Upload failed!
it happens so fast …

  1. Solution one.
    In the log window we get all the information necessary to load the firmware block. It is enough to upload the prepared compilation to the indicated memory address.
  2. Solution two
    I began to look for the source of the problem and by chance came across a plugin with the same functionality having greater capabilities. In addition, it works without a problem. https://github.com/lorol/arduino-esp32fs-plugin

I recommend to everyone, maybe you should also update the relevant project pages?

Chip : esp32
Using partition scheme from Arduino IDE.
Start: 0x310000
Size : 0xe0000
mkspiffs : /home/kaktus/.arduino15/packages/esp32/tools/mkspiffs/0.2.3/mkspiffs

esptool : /home/kaktus/.arduino15/packages/esp32/tools/esptool_py/4.5.1/esptool.py

[SPIFFS] data : /home/kaktus/Projekty/ESP/stareIDE/ESP32-CAM_sensor_charts/data
[SPIFFS] offset : 0
[SPIFFS] start : 3211264
[SPIFFS] size : 896
[SPIFFS] page : 256
[SPIFFS] block : 4096
->/script.js
->/style.css
->/index.html
->/favicon.png
[SPIFFS] upload : /tmp/arduino_build_834522/ESP32-CAM_sensor_charts.spiffs.bin
[SPIFFS] address: 3211264
[SPIFFS] port : /dev/ttyUSB0
[SPIFFS] speed : 460800
[SPIFFS] mode : dio
[SPIFFS] freq : 80m

->esptool.py v4.5.1
->Serial port /dev/ttyUSB0
->Connecting….
->Chip is ESP32-D0WDQ6 (revision v1.1)
->Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
->Crystal is 40MHz
->MAC: fc:b4:67:01:c2:00
->Uploading stub…
->Running stub…
->Stub running…
->Changing baud rate to 460800
->Changed.
->Configuring flash size…
->Auto-detected Flash size: 4MB
->Flash will be erased from 0x00310000 to 0x003effff…
->Compressed 917504 bytes to 4966…
->Writing at 0x00310000… (100 %)
->Wrote 917504 bytes (4966 compressed) at 0x00310000 in 3.2 seconds (effective 2278.3 kbit/s)…
->Hash of data verified.
->
->Leaving…
->Hard resetting via RTS pin…

I have prepared two GIF files to insert into this post but the forum script does not provide this option. A foreign host for the files is required.

Question Tags: ESP32; Arduino IDE 1.8.19; arduino-esp32fs-plugin
1 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 1 year ago

Hi.
To share files, you need to upload them to google drive, for example and then share a link to those files.
Both plugins should work just fine. I tested both and they work well.
 
The advantage of the one you mentioned is that is supports LittleFS. We have a tutorial about it here: https://randomnerdtutorials.com/esp32-littlefs-arduino-ide/
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.