-->
Page 1 of 2

Endless wdt resets after using SPIFFS.begin or SPIFFS.format

PostPosted: Tue Oct 20, 2015 12:43 pm
by itay salpeter
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

Re: Endless wdt resets after using SPIFFS.begin or SPIFFS.fo

PostPosted: Fri Oct 23, 2015 9:09 am
by mrburnette
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

Re: Endless wdt resets after using SPIFFS.begin or SPIFFS.fo

PostPosted: Fri Oct 23, 2015 1:58 pm
by igrr
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).

Re: Endless wdt resets after using SPIFFS.begin or SPIFFS.fo

PostPosted: Mon Oct 26, 2015 6:24 am
by itay salpeter
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.