[En-Nut-Discussion] Rebooting an Ethernut

Trevor O'Grady togrady at comtech.uk.com
Wed Jul 14 16:00:40 CEST 2004


This works for me.

void reboot(void)
{
	cli();
	wdt_reset();
	wdt_enable(1);
	while(1);
}

Regards
Trevor

-----Original Message-----
From: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de]On Behalf Of Ole Reinhardt
Sent: 14 July 2004 14:33
To: Ethernut User Chat (English)
Subject: [En-Nut-Discussion] Rebooting an Ethernut


Hi Folks,

is it possible to reboot an Ethernut?

Shure I could jump to address 0x0000 and restart my code this way, but
doing so all the system hardware is still initialized with the last used
values. Does anybody knows a way to reset all registers of the ATMega to
their default values before rebooting?

Could the watchdog be used for such a hack? (generating a hardware reset
signal?)

Regards,

Ole Reinhardt

-- 
kernel concepts    Tel: +49-271-771091-14
Dreisbachstr. 24   Fax: +49-271-771091-19
D-57250 Netphen    E+ : +49-177-7420433
--


_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion




More information about the En-Nut-Discussion mailing list