Saturday, April 14, 2012

NIOSII - Week 8

For the Stratix board I had a problem with the IOR signal, when IORD_ALTERA_AVALON_LAN91C111_BSR(smsc->regbase) was called in a loop I would get
IOR signal always high which was not correct. So I rebuilt the project and got the IOR signal to alternating which is the correct signal.

Here is output of SSS.

InterNiche Portable TCP/IP, v3.1
Copyright 1996-2008 by InterNiche Technologies. All rights reserved.
Your Ethernet MAC address is 00:07:ed:ff:75:4a
dtrap - needs breakpoint
prepped 1 interface, initializing...
mctest init called
IP address of  : 0.0.0.0
dtrap - needs breakpoint
dtrap - needs breakpoint
Error sending DHCP packet on iface 0.
ip_exit: calling func 0x311cce4
ip_exit: calling func 0x3124874

dtrap - needs breakpoint is outputed because when reading for regbase the value is not 0x3300
when it is  AND with 0xFF00. I was able to get past this error by using a for loop and adding 1 to the regbase untill I get the correct value. Found that if you add 14 to thereg base you get the value you need. So I change the regoffset to 14 and I didn't get the dtrap - needs breakpoint error. Now I get a new error.

Here is output of SSS.

InterNiche Portable TCP/IP, v3.1
Copyright 1996-2008 by InterNiche Technologies. All rights reserved.
Your Ethernet MAC address is 00:07:ed:ff:75:4a
prepped 1 interface, initializing...
s91: No PHY found
SMSC ethernet Rev: 0x1f, ram: 0
mctest init called
IP address of et1 : 0.0.0.0
Created "Inet main" task (Prio: 2)
Created "clock tick" task (Prio: 3)

s91: No PHY found is outputed if the PHY ID in the register doesn't match the PHY ID for lan91c111and is unable to validate a presence of the PHY.

Figured out what the problem is, it is read at the wrong address.

No comments:

Post a Comment