# Help Needed: SPIFFS not showing expected file contents in Serial Monitor (ESP32)

**URL:** <https://forum.arduino.cc/t/help-needed-spiffs-not-showing-expected-file-contents-in-serial-monitor-esp32/1399077>\
**Category:** IDE 2.x\
**Created:** [July 30, 2025, 6:40pm UTC](https://forum.arduino.cc/t/help-needed-spiffs-not-showing-expected-file-contents-in-serial-monitor-esp32/1399077 "2025-07-30T18:40:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![me109bf](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/me109bf/32/1229856_2.png) [@me109bf](https://forum.arduino.cc/u/me109bf)\
**Post date:** [July 30, 2025, 6:40pm UTC](https://forum.arduino.cc/t/help-needed-spiffs-not-showing-expected-file-contents-in-serial-monitor-esp32/1399077/1 "2025-07-30T18:40:57Z")

</div>

Hi all,

I'm working with an ESP32 and trying to manually upload a SPIFFS filesystem using `mkspiffs.exe` and `esptool.exe`. The process seems to complete without errors, but when I try to read the file in my sketch, I don’t get the expected output.

* * *

**Folder structure:**

kotlin

CopyEdit

```arduino
C:\esp32-spiffs\
├── mkspiffs.exe
├── spiffs.bin
├── GOTID_SPIFFS_Test\
│ ├── data\
│ │ └── example.txt

```

**Contents of `example.txt`:**

kotlin

CopyEdit

```arduino
This is a test file inside SPIFFS.
If you can see this, your SPIFFS works!

```

* * *

**Command to create `spiffs.bin`:**

css

CopyEdit

```arduino
mkspiffs.exe -c GOTID_SPIFFS_Test\data -b 4096 -p 256 -s 0x110000 spiffs.bin

```

**Command to flash it:**

css

CopyEdit

```arduino
esptool.exe --chip esp32 --port COM5 --baud 921600 write_flash 0x110000 ..\..\spiffs.bin

```

Both commands complete successfully. `spiffs.bin` is created and flashes to the ESP32 without error. I verified the COM port and board settings (ESP32 Dev Module on COM5). Uploads via Arduino IDE also work fine.

* * *

**Test sketch:**

cpp

CopyEdit

```arduino
#include "FS.h"
#include "SPIFFS.h"

void setup() {
  Serial.begin(115200);
  delay(1000);

  if (!SPIFFS.begin(true)) {
    Serial.println("SPIFFS Mount Failed");
    return;
  }

  File file = SPIFFS.open("/example.txt");
  if (!file) {
    Serial.println("Failed to open file for reading");
    return;
  }

  Serial.println("File Content:");
  while (file.available()) {
    Serial.write(file.read());
  }
  file.close();
}

void loop() {}

```

* * *

**Problem:**

When I open the Serial Monitor, instead of seeing the content of `example.txt`, I either get:

yaml

CopyEdit

```arduino
File Content:
ets Jul 29 2019 12:21:46

```

or just nothing at all. Sometimes only the “File Content:” line appears with no actual text after it.

* * *

**What I’ve confirmed:**

- The file is saved as plain text
- I’ve regenerated and reflashed `spiffs.bin` multiple times
- Flashing shows success (hash verified, hard resetting via RTS)
- The same sketch has worked for other SPIFFS setups when using Arduino’s built-in SPIFFS upload tool

* * *

What am I missing here? Is something going wrong during the SPIFFS image creation or flashing, even though no errors are reported?

Appreciate any help from the community. Thanks.

---

<div class="post-metadata">

**Author:** ![J-M-L](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/j-m-l/32/766245_2.png) [@J-M-L](https://forum.arduino.cc/u/J-M-L)\
**Post date:** [July 30, 2025, 7:14pm UTC](https://forum.arduino.cc/t/help-needed-spiffs-not-showing-expected-file-contents-in-serial-monitor-esp32/1399077/2 "2025-07-30T19:14:17Z")

</div>

All those kotlin and talk scattered in your text seems to indicate a copy and paste from ChatGPT or similar AI… are you working with AI?

Any reason why you don’t use the data upload tool that you can install in the IDE?

---

<div class="post-metadata">

**Author:** ![sonofcy](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/sonofcy/32/1283617_2.png) [@sonofcy](https://forum.arduino.cc/u/sonofcy)\
**Post date:** [July 30, 2025, 7:23pm UTC](https://forum.arduino.cc/t/help-needed-spiffs-not-showing-expected-file-contents-in-serial-monitor-esp32/1399077/3 "2025-07-30T19:23:37Z")

</div>

Are you aware that SPIFFS is deprecated? I think LittleFS is the 'new' SPIFFS.

---

<div class="post-metadata">

**Author:** ![me109bf](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/me109bf/32/1229856_2.png) [@me109bf](https://forum.arduino.cc/u/me109bf)\
**Post date:** [July 30, 2025, 8:02pm UTC](https://forum.arduino.cc/t/help-needed-spiffs-not-showing-expected-file-contents-in-serial-monitor-esp32/1399077/4 "2025-07-30T20:02:35Z")

</div>

Thanks for the info. I’ve decided to go back to Arduino IDE 1.8.x since it fully supports the ESP32 SPIFFS Upload Tool. I now understand that the newer 2.x IDE doesn’t support the plugin, which explains a lot of the issues I ran into. I’ll continue working with 1.8.x for now as it’s more stable for SPIFFS uploads.

Appreciate the guidance.

---

<div class="post-metadata">

**Author:** ![ptillisch](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@ptillisch](https://forum.arduino.cc/u/ptillisch)\
**Post date:** [July 30, 2025, 8:06pm UTC](https://forum.arduino.cc/t/help-needed-spiffs-not-showing-expected-file-contents-in-serial-monitor-esp32/1399077/5 "2025-07-30T20:06:13Z")

</div>

Hi @me109bf.

> [@me109bf](#):
>
> I now understand that the newer 2.x IDE doesn’t support the plugin

It is true that Arduino IDE 2.x does not support the plugins that were created for the Arduino IDE 1.x "Tools" framework. However, there is a high quality and very well maintained replacement extension for Arduino IDE 2.x you can use to upload littlefs filesystems to the ESP32 board:

> **[GitHub - earlephilhower/arduino-littlefs-upload: Build and uploads LittleFS filesystems for the...](https://github.com/earlephilhower/arduino-littlefs-upload)**
>
> Build and uploads LittleFS filesystems for the Arduino-Pico RP2040, RP2350, ESP8266, and ESP32 cores under Arduino IDE 2.2.1 or higher

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [January 26, 2026, 8:06pm UTC](https://forum.arduino.cc/t/help-needed-spiffs-not-showing-expected-file-contents-in-serial-monitor-esp32/1399077/6 "2026-01-26T20:06:39Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
