Arduino icon indicating copy to clipboard operation
Arduino copied to clipboard

v3.1.1 LittleFS not flashing or reading

Open dimecho opened this issue 1 year ago • 10 comments

Basic Infos

  • [x] This issue complies with the issue POLICY doc.
  • [x] I have read the documentation at readthedocs and the issue is not addressed there.
  • [x] I have tested that the issue is present in current master branch (aka latest git).
  • [x] I have searched the issue tracker for a similar issue.
  • [x] If there is a stack dump, I have decoded it.
  • [x] I have filled out all fields below.

Platform

  • Hardware: [ESP-12]
  • Core Version: [3.1.0/3.1.1]
  • Development Env: [Arduino IDE]
  • Operating System: [Windows|MacOS]

Settings in IDE

  • Module: [Generic ESP8266 Module|Nodemcu]
  • Flash Mode: [dout]
  • Flash Size: [4MB/2MB]
  • lwip Variant: [v2 Lower Memory]
  • Reset Method: [nodemcu]
  • Flash Frequency: [40Mhz]
  • CPU Frequency: [80Mhz]
  • Upload Using: [OTA|SERIAL]
  • Upload Speed: [115200]

Problem Description

LittleFS not flashing. Tried different methods ESP8266HTTPUpdateServer(Web-browser /update), OTA (WiFi with #include <ArduinoOTA.h>), esptool.py (Serial 115200). Both signed and unsigned binary. The upload worked in v3.0.2!

Broken in v3.1.0 and v3.1.1.

Some more troubleshooting, if upload FS using v3.0.2 (works for reading as well) then flash the sketch with v3.1.1 using (Erase Flash: Only Sketch) FS not readable.

I suspect the flashing might quietly work it is just no readable. Did the starting address change? Or did LittleFS block-size change?

Debug Messages

v3.0.2 (Working)

load 0x4010f000, len 3460, room 16 
tail 4
chksum 0xcc
load 0x3fff20b8, len 40, room 4 
tail 4
chksum 0xc9
csum 0xc9
v0009afa0
~ld

v3.1.0/3.1.1 (Not Working)

load 0x4010f000, len 3424, room 16 
tail 0
chksum 0x2e
load 0x3fff20b8, len 40, room 8 
tail 0
chksum 0x2b
csum 0x2b
v0009aa80
~ld

LittleFS build

mklittlefs -c ./data/ -b 8192 -p 256 -d 5 -s 640000 ./build/flash-littlefs.bin

dimecho avatar Jan 24 '23 04:01 dimecho