RESET = Rarely....

scargill
Posts: 70
Joined: Sun Nov 02, 2014 8:09 pm

RESET = Rarely....

Postby scargill » Thu Aug 20, 2015 11:12 pm

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?

Who is online

Users browsing this forum: No registered users and 28 guests