[En-Nut-Discussion] Problem with Ethernut Startup

en-nut-discussion-admin at egnite.de en-nut-discussion-admin at egnite.de
Mon Jun 23 17:27:34 CEST 2003


Looks like the Ethernet controller reset has a problem.

Background: A simple software reset doesn't work, the
NIC needs a hardware reset after power up. Since board
version 1.3 the Ethernet controller reset is tied to the
general reset line, which is controlled by the reset chip.
On older boards the reset line is connected to Bit 4 of
Port E. NicReset() in dev/nicrtl.c should toggle this line
after it fails to read the NIC ID for ten times.

No idea, why NicReset fails. You may add the following
workaround at the beginning of your application, before
registering devEth0:

   sbi(DDRE, 4);
   sbi(PORTE, 4);
   NutDelay(100);
   cbi(PORTE, 4);

Harald




More information about the En-Nut-Discussion mailing list