[En-Nut-Discussion] Problems with WatchDog using multithreads

Fernando Me Ga ferradi at gmail.com
Thu Apr 8 16:02:55 CEST 2010


Thanks you.

2010/4/8 Ole Reinhardt <ole.reinhardt at embedded-it.de>:
> Hello,
>
>> I am trying to use WatchDog in my application but there is a problem
>> when several thread use NutSleep. These threads get block and the
>> WatchDog restart the system before the specified timeout. In the
>> simple example below it is expected to each thread puts there message
>> every 10 seconds but does not. They put there message only ones and
>> soon after the system restart.
>
> On Ethernut 3 for example the maximum time for the watchdog is about a
> second and a little... This depends on the watchdogs internal counter
> size and the used clock.
>
> In your case you'll generate an overflow in the watchdog timer register,
> resulting in a more or less random value for your watchdog but at least
> way shorter than expected.
>
> Bye,
>
> Ole
>
> --
>
> Thermotemp GmbH, Embedded-IT
>
> Embedded Hard-/ Software and Open Source Development,
> Integration and Consulting
>
> http://www.embedded-it.de
>
> Geschäftsstelle Siegen - Steinstraße 67 - D-57072 Siegen -
> tel +49 (0)271 5513597, +49 (0)271-73681 - fax +49 (0)271 736 97
>
> Hauptsitz - Hademarscher Weg 7 - 13503 Berlin
> Tel +49 (0)30 4315205 - Fax +49 (0)30 43665002
> Geschäftsführer: Jörg Friedrichs, Ole Reinhardt
> Handelsregister Berlin Charlottenburg HRB 45978 UstID DE 156329280
>
> _______________________________________________
> http://lists.egnite.de/mailman/listinfo/en-nut-discussion
>



More information about the En-Nut-Discussion mailing list