ESP8266 Developer Zone The Official ESP8266 Forum 2015-08-20T23:12:15+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=980 2015-08-20T23:12:15+08:00 2015-08-20T23:12:15+08:00 https://bbs.espressif.com:443/viewtopic.php?t=980&p=3336#p3336 <![CDATA[RESET = Rarely....]]>
else if (strcmp(token, "id") == 0) {
if (isQuery) iprintf(RESPONSE,"ID=%s\r\n", sysCfg.base);
else if (strlen(strValue)>=2){
strcpy(sysCfg.base, strValue);
CFG_Save();
system_restart();
}

Here's a bit of code - I update an ID for a unit, save the config to FLASH as normal (using the SDK function) -no problem up to now.... and then System_restart(). I get a restart message - then then all is well.

BUT if I do this after FLASHING THE UNIT - all is well until the restart - and a watchdog timer message kicks in. I've heard of variations of this from other people - it's as if there is something not quite right with the unit after it has been flashed. Can we have a system_restart() that works regardless?

Statistics: Posted by scargill — Thu Aug 20, 2015 11:12 pm


]]>