These are chat archives for SmingHub/Sming

19th
May 2016
Jakub Sobieraj
@sobiso
May 19 2016 11:31
hi all
i create a simple datalogger and on debug sometimes appear "api_spiffs_erase" what this mean ?
hreintke
@hreintke
May 19 2016 12:56
This message was deleted
@sobiso :
This is a debug message from spiffs and probably should be removed.
It indicates that the spiffs filesystem takes another sector in use for storing the data.
Jakub Sobieraj
@sobiso
May 19 2016 13:06
@hreintke ok, but after few msg like this i have error in write file :/
Jakub Sobieraj
@sobiso
May 19 2016 13:15
between ~ 630ms I write ~36B to file. And always on 709 write cycle i have error
hreintke
@hreintke
May 19 2016 13:54
@sobiso :
What is your spi size & spiffs size ?
Are you running SmingNONOS or SmingRTOS ?
Are you running RBoot ?
alonewolfx2
@alonewolfx2
May 19 2016 16:57
@sobiso @hreintke i had same thing on 2 module. one has corrupted flash another one is small spiff size ( if you exceed spiff size you will see that message and if your flash corrupted you will see same thing )
at least to my knowledge
Jakub Sobieraj
@sobiso
May 19 2016 17:03
@alonewolfx2 i have esp-12e
so flash is corrupted ?
i think that external eeprom will be better choice
hreintke
@hreintke
May 19 2016 17:59
@sobiso :
If you are using SmingNONOS you probably have a mismatch between spiffs size on flash & spiffs size in application.That s why I asked also spiffs size, Sming version and rBoot yes/no.
Jakub Sobieraj
@sobiso
May 19 2016 18:48
@hreintke
SPIFF_SIZE = 196608
Sming NONOS no rBoot
RTOS is better ?
hreintke
@hreintke
May 19 2016 20:34
@sobiso :
Yes, better to move to RTOS.
In general because SmingNONOS support will end.
For spiffs as there is good integration between spiffs flash & application spiffs size. There is no guessing anymore but application gets spiffs size info from flash info.
When on NONOS I can talk you thru a hack.