These are chat archives for SmingHub/Sming
Hey all, a few quick questions. I'm attempting to set up a 12-E as follows (512Kb - Rom0, 512Kb - Rom1) (3Mb Spiffy). Writing 3Mb blank SPIFFS over serial is terrible so I've gone full OTA where I've updated most of the debugging to write to a UDP multicast address that my dev machine can capture for logs.
So I've disabled SPIFFS using 'DISABLE_SPIFFS=1' in Makeful-user.mk and written my initial rom using serial. That works fine, and so does OTA for all subsequent compiles.
However I want to perform a format of SPIFFS in code. I do that (for now) just before I do an OTA by issuing: -
spiffs_format_manual(0x40200000+0x1000000, SPIFF_SIZE); // SPIFF_SIZE is supposed to be 3000000 (3Mb) but for now I have it as 500000 (512Kb)
This causes a reset as the current spiffs code unmounts spiffs, then formats it, then attempts to mount it, which finds the first sector is not written yet, which then performs a format (again), which then resets.
If I comment out the second format it seems to work but every time I write a file I get an exception 28 (LoadProhibitedCause). My mount command is: -
gdbstub/gdbstub.c:12:21: fatal error: ets_sys.h: No such file or directory
UDP connect to 22.214.171.124:123 UdpConnection send : # time updated? 1 time updated? 1 Time synchronized: 01.03.2016 19:37:56 Local Time : 01.03.2016 19:37:57 UTC Time: 01.03.2016 16:37:57 dsRTC Time: 01.01.1970 00:00:00