[Tinyos-help] Rebooting of mote
Philip Levis
pal at cs.stanford.edu
Tue Jul 1 09:23:10 PDT 2008
On Jun 29, 2008, at 10:47 AM, Shikhar Sachan wrote:
> I am not sure but my telosb mote reboots all by itself after one and a
> half minute or so...and my whole application starts re running again.
> Why does it happen and how do I stop it.
>
> Any help is highly appreciated ...
Rebooting is a common symptom of a memory corruption error. If you
overwrite the return address in the stack to address 0, this causes
many microcontrollers to jump to the reset vector (0x0) on return.
Because there is so little RAM, you can do this to the stack even when
writing to component and global variables. E.g., there was a bug in
the atm128 SPI stack (fixed) where an SPI read of 0 bytes would cause
it to read 65535 bytes. This caused the read to overwrite the entire
mote memory, set the return address to 0 on the stack, and reboot.
Phil
More information about the Tinyos-help
mailing list