Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By itay salpeter
#31847 Hi Friends,

I am trying to use the SPIFFS for file access however if i use SPIFFS.begin or SPIFFS.format functions the esp resets Endlessly...

Does Anyone has a clue how to solve this issue or how to collect more info and where to debug?

Device information:

esp8266 12e (generic)
Arduino IDE: 1.6.5
esp: 1.6.5-1160-gef26c5f


sketch information:

#include "FS.h"
void setup() {
// put your setup code here, to run once:

Serial.println("Format=" + SPIFFS.begin());
}

void loop() {
// put your main code here, to run repeatedly:

}

Errors as appears at the serial monitor:

load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
~ld

ets Jan 8 2013,rst cause:4, boot mode:(3,0)

wdt reset
load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
~ld
User avatar
By mrburnette
#32119
Does Anyone has a clue how to solve this issue...


This will sound crude, but the issue must be in your implementation. Because, SPIFFS is being used in the BASIC interpreter project and that works great. So, I can conclude SPIFFS works.
http://www.esp8266basic.com/

Honestly, when experimenting, I often have code errors with the ESP8266. So far, 99% of those errors were my own fault. To resolve the problem, you should go back to basics: find a simple example using the file system that is known to work. Evolve that working example toward your goal by adding in your requirements. When the code breaks - you have found the culprit.

Ray
User avatar
By igrr
#32139 Please try adding Serial.begin(baudrate) and Serial.setDebugOutput(true); to your setup function. Additionally you may try to enable DEBUGV define in debug.h (that's within the core directory).
SPIFFS is not 100% bullet proof itself, so sometimes if the image gets corrupted you may need to erase the chip (using esptool.py, for instance).
User avatar
By itay salpeter
#32301 Dear iggr,

Thanks for your time and your assistance!
I have tried adding the Serial.begin(9600) and the Serial.begin(115200) but with no change.
i took your advise and installed the chip again and supersize supersize now it is working fine so i don't have any remarks to add what went wrong :)
Anyhow as a newbie i have learn much from your response and for that i thank you again.