Esp8266 LittleFS weird issue

I have a weird problem.
I have a config file '/config.json' which I'm storing in a LittleFS filesystem. If I upload the firmware, then the first time it reads the file. If I reset or power off and on then LittleFS.open('/config.json') returns false. If I re-upload the code it finds the file again!

I'm confused.

ok it looks like a memory issue.

I'm also using painlessmesh and if I remove the call to mesh.initOTAReceive("role") then reading from the FS works again.

Final update. I changed the flash layout from eagle.flash.4m1m.ld to eagle.flash.4m2m.ld and now mesh.initOTAReceive doesn't kill the FS.

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