EmbeddedRelated.com
Forums

Resets caused by watchdog timeout will create and report a hardware reset on this board

Started by seecwriter January 25, 2011
I am getting the following compiler warning when compiling for an
RCM6700:

"Resets caused by watchdog timeout will create and report
a hardware reset on this board."

I get this warning because of a conditional compile statement in
Rabbit4000\Sys.lib. If _WDTO_ASSERTS_RESET_ is defined it throws this
warning. But I have not defined _WDTO_ASSERTS_RESET_, so somewhere
DC has decided this needs to be defined.

I don't know what the warning is trying to tell me.

Steve
Hi Steve,

I think it is letting you know that if you get a WD reset, on restart you
won't be able to check to see the reset cause was, that you can with other
boards. It will always appear as a hardware reset.

reset_demo.c explains the this too.

So basically, the following checks will not work and it will always see a
hardware reset.

// check why the controller was last reset
if (chkHardReset()) {
sprintf(s, "Hard reset (power fail) occurred.\r\n");
MY_SER_PUTS(s);
}

if (chkWDTO()) {
sprintf(s, "Watchdog timeout occurred.\r\n");
MY_SER_PUTS(s);
}

if (chkSoftReset()) {
sprintf(s, "'Soft' reset (by software) occurred.\r\n");
MY_SER_PUTS(s);
}

Dave...
---
Very funny Scotty, now beam down my clothes!!!