I cannot quite get to the bottom of this but there is something wrong with the reset..
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?
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.