<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[LittleFS problem with M5core2 and PIO]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Here is my platformio config:</p>
<p dir="auto">[env:m5stack-core2]<br />
platform = espressif32<br />
board = m5stack-core2<br />
framework = arduino<br />
board_build.filesystem = littlefs<br />
monitor_speed = 115200<br />
lib_deps =<br />
ottowinter/ESPAsyncWebServer-esphome@^2.1.0<br />
m5stack/M5Core2@^0.1.0<br />
lorol/LittleFS_esp32@^1.0.6</p>
<p dir="auto">With that config, I cannot upload files in memory. it always save the file as spiffs.</p>
<p dir="auto">Auto-detected: /dev/ttyUSB0<br />
Uploading .pio/build/m5stack-core2/spiffs.bin<br />
<a href="http://esptool.py" target="_blank" rel="noopener noreferrer nofollow ugc">esptool.py</a> v3.1<br />
Serial port /dev/ttyUSB0<br />
Connecting....<br />
Chip is ESP32-D0WDQ6-V3 (revision 3)<br />
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None<br />
Crystal is 40MHz<br />
MAC: 84:cc:a8:5f:ea:08<br />
Uploading stub...<br />
Running stub...<br />
Stub running...<br />
Changing baud rate to 460800<br />
Changed.<br />
Configuring flash size...<br />
Auto-detected Flash size: 16MB<br />
Flash will be erased from 0x00c90000 to 0x00ffffff...<br />
Compressed 3604480 bytes to 155100...<br />
Writing at 0x00c90000... (10 %)<br />
Writing at 0x00ca61ce... (20 %)<br />
Writing at 0x00cbe455... (30 %)<br />
Writing at 0x00cd3e90... (40 %)<br />
Writing at 0x00ce9a6c... (50 %)<br />
Writing at 0x00cff565... (60 %)<br />
Writing at 0x00d13a71... (70 %)<br />
Writing at 0x00d2bf09... (80 %)<br />
Writing at 0x00d4a5ce... (90 %)<br />
Writing at 0x00d7257e... (100 %)</p>
<p dir="auto">It upload succesfully but then fail to access the file from the server.</p>
<p dir="auto">.pio/libdeps/m5stack-core2/LittleFS_esp32/src/lfs.c:1076:error: Corrupted dir pair at {0x0, 0x1}<br />
E (6257) esp_littlefs: mount failed,  (-84)<br />
E (6261) esp_littlefs: Failed to initialize LittleFS<br />
[E][LITTLEFS.cpp:90] begin(): Mounting LITTLEFS failed! Error: -1</p>
]]></description><link>https://community.m5stack.com/topic/3868/littlefs-problem-with-m5core2-and-pio</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 08:43:59 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/3868.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 28 Dec 2021 13:14:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to LittleFS problem with M5core2 and PIO on Tue, 24 Jun 2025 14:55:35 GMT]]></title><description><![CDATA[<p dir="auto">It looks like PlatformIO is still uploading your filesystem as SPIFFS despite setting board_build.filesystem = littlefs. This happens because the default partition table might not reserve space for LittleFS. Try creating a custom partition table that supports LittleFS and specify it in platformio.ini with board_build.partitions. Also, ensure your LittleFS_esp32 library is compatible with M5Core2. Without proper partitioning, mounting fails with corrupted directory errors like yours. Let me know if you want help generating a suitable partition CSV file!</p>
]]></description><link>https://community.m5stack.com/post/29312</link><guid isPermaLink="true">https://community.m5stack.com/post/29312</guid><dc:creator><![CDATA[hacxx]]></dc:creator><pubDate>Tue, 24 Jun 2025 14:55:35 GMT</pubDate></item></channel></rss>