Hi everyone,

My program is reset some time after a node boots up. After the PUC reset,
IFG1 is found with WDTIFG bit set, indicating the watchdog timer triggers
the reset. This can happen under two cases:
1) Watchdog timer expiration when in watchdog mode only. But when WDTCTL is
read out, the lower byte is 0x80, showing WDTHOLD bit is set to 1 and
watchdog timer is stopped.
2) Watchdog timer security key violation. There are two places:
/opt/tinyos-2.1.2/tos/lib/tosboot/msp430/HardwareC.nc:57:    WDTCTL = 0;
/opt/tinyos-2.1.2/tos/lib/tosboot/msp430/ExecC.nc:53:    WDTCTL = WDTPW +
WDTCNTCL;
But neither component HardwareC nor ExecC is used. There is no place in my
program to change the default WDTCTL setting, which is disables as shown in
/opt/tinyos-2.1.2/tos/platforms/telosa/PlatformP.nc: WDTCTL = WDTPW +
WDTHOLD;

Can anyone please help me locate what is causing this strange reset?

-Xiaohui Liu
TelosB
T2.1.2
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to