[En-Nut-Discussion] NutRegisterDevice Lockup
Dave Warren
dwarren at luescher.com
Tue Sep 26 10:29:37 CEST 2006
Hi Tim,
I also discovered this 'feature'. The code is in an endless loop waiting for
the ethernet hardware.
I guess it would be nice if the endless loop contained a NutSleep's then
other treads could still run.
regards
Dave Warren
----- Original Message -----
From: "Tim DeBaillie" <debaillie at ciholas.com>
To: <en-nut-discussion at egnite.de>
Sent: Monday, September 25, 2006 8:49 PM
Subject: [En-Nut-Discussion] NutRegisterDevice Lockup
>
> Using AT91SAM7X256-EK with Ethernut 4.1.9 rc.
>
> I need to attempt DHCP and then fall back to a static address if no DHCP
> response. I have configured this as requested from the API. The whole
> program locks if you try to register the ethernet device and there is no
> cable in the port.
>
> This is bad news. If an ethernet cable gets cut and the device is
> restarted, then it will stall until the device is back on the network.
>
> Is there anyway to prevent this without rewriting NutRegisterDevice() or
> it's subroutines or the Ethernet driver?
>
> Tim
> _______________________________________________
> 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