Ok, I have found a solution by executing the following code on the iris mote
bootstrap :
MCUSR = 0;
wdt_disable();

I have put it into my code into a platform.h file like this :

#ifndef platform_bootstrap
#define platform_bootstrap() \
    MCUSR = 0; \
    wdt_disable();
#endif

I am kind a noob but maybe it should be added into iris platform.h or
elsewhere.

Regards,
Fabrice

On 16 June 2010 20:17, Fabrice Dossin <[email protected]> wrote:

> Hello,
>
> I am currently trying to make a reset on Iris mote by using wdt_enable(0).
> Once it is done, the mote resets but never restarts.
> This is the same problem as in this post :
>
> https://www.millennium.berkeley.edu/pipermail/tinyos-help/2008-November/037061.html
>
> I found some references about difference between the atmega128 and 1281
> saying that after a reset the atmega1281 watchdog could be still active and
> should be stop in early boot sequence.
> http://www.nongnu.org/avr-libc/user-manual/group__avr__watchdog.html
>
> How could I do to fix this on Iris mote. Did someone has a clue for me ?
>
> Kind regards,
> Fabrice
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to