-->
Page 2 of 3

Re: SPIFFS begin not working for me

PostPosted: Fri Aug 26, 2016 7:40 am
by martinayotte
SPIFFS.begin() is calling format() by its own if it doesn't succeed to get it mounted.

Re: SPIFFS begin not working for me

PostPosted: Fri Aug 26, 2016 8:42 am
by Jep
OK martinayotte, thanks for the info!

So there's no reason it does not mount ...
May be I could try to enable core debug traces to found out what could be the cause (I found there was some debug traces in the "begin" function)
By the way what is the best way to include -DDEBUG_ESP_CORE in the compilation chain?
Thanks

Re: SPIFFS begin not working for me

PostPosted: Fri Aug 26, 2016 9:51 am
by martinayotte
If you compile using ArduinoIDE, there are menus to enable DEBUG_PORT and DEBUG_LEVEL.
If you are using your own Makefile, yes, you need to add those :

-DDEBUG_ESP_PORT=Serial -DDEBUG_ESP_CORE

Re: SPIFFS begin not working for me

PostPosted: Fri Aug 26, 2016 11:03 am
by Jep
Sorry but I must have missed something then ...
I used ArduinoIDE but just can't find any menu dealing with debug level options :(