Gast
#2848233
Was mache ich falsch?
Ich lasse mein Programm absichtlich den Watchdog verhungern
(Watchdog wird sonst nicht im Programm verwendet):
if(strstr (string,"reboot") != 0) //string received
{ cli();
wdt_enable (WDTO_2S);
/* Wait for the watchdog to bite */
while (1);
}//end if reboot
Wenn dann den Mikrocontroller wieder neu startet bekomme ich ein
Dauerreset, ob wohl ich sofort am Anfang meines Programmes den Watdog
deaktiviere bzw. zurücksetzte.
int main(void)
{
wdt_disable();
wdt_reset();
init(); //call of INIT
........
Was mache ich grundlegend falsch????
Danke für eure Mühe!
Gruß
Bernhardt