Hello geeks !
I am trying to use ethernet on with LPC2368 and National's PHY DP83843.
I am using the EasyWeb example to start with.The problem is that the MAC is not
getting initialized. All I could figure out reading the status register is that
it is giving "Remote Fault". The datasheet couldnt give much info about this
faulty condition. Will be grateful for any leads, any word of wisdom for the
above mentioned issue.
Thanks !
Nik
Ethernet using LPC2368 and DP83848- Remore Fault
Started by ●March 22, 2010
Reply by ●March 22, 20102010-03-22
Remote Fault is a PHY issue, not a MAC issue.
(1) Check the MDC and MDIO first, send some
simple requests like Get_IDs to ensure that you
can talk to the PHY.
(2) If (1) is OK. Check the hardware connection,
cable, switch/hub, etc.
(3) If (1) is not, check your own board. It's
likely a H/W issue. LPC23xx + NationalPHY has been
tested on many boards.
(4) Make sure your timeout value is large enough
when you check the link status(PHYSTS).
If you want answers from geeks, you need to
think like a geek and ask geeky question
with lot of details:-)
best,
Tom
--- In l..., nitinkothari@... wrote:
>
> Hello geeks !
>
> I am trying to use ethernet on with LPC2368 and National's PHY DP83843.
>
> I am using the EasyWeb example to start with.The problem is that the MAC is not getting initialized. All I could figure out reading the status register is that it is giving "Remote Fault". The datasheet couldnt give much info about this faulty condition. Will be grateful for any leads, any word of wisdom for the above mentioned issue.
> Thanks !
> Nik
>
(1) Check the MDC and MDIO first, send some
simple requests like Get_IDs to ensure that you
can talk to the PHY.
(2) If (1) is OK. Check the hardware connection,
cable, switch/hub, etc.
(3) If (1) is not, check your own board. It's
likely a H/W issue. LPC23xx + NationalPHY has been
tested on many boards.
(4) Make sure your timeout value is large enough
when you check the link status(PHYSTS).
If you want answers from geeks, you need to
think like a geek and ask geeky question
with lot of details:-)
best,
Tom
--- In l..., nitinkothari@... wrote:
>
> Hello geeks !
>
> I am trying to use ethernet on with LPC2368 and National's PHY DP83843.
>
> I am using the EasyWeb example to start with.The problem is that the MAC is not getting initialized. All I could figure out reading the status register is that it is giving "Remote Fault". The datasheet couldnt give much info about this faulty condition. Will be grateful for any leads, any word of wisdom for the above mentioned issue.
> Thanks !
> Nik
>
Reply by ●March 23, 20102010-03-23
Very true Tom! I will try my best to sound geeky :-)
Thanks for the response !
(1) Check the MDC and MDIO first, send some
simple requests like Get_IDs to ensure that you
can talk to the PHY.
---> On sending Get_ID, I am getting the response correct. The PHY is sending :
ID1 = 8192
ID2 = 23696
(2) If (1) is OK. Check the hardware connection,
cable, switch/hub, etc.
---> Cables and hub, both are working good.
(4) Make sure your timeout value is large enough
when you check the link status(PHYSTS)
---> The timeout value is 0x50000 counts. I guess large enough.
In the code, instead of auto negotiation for speed, I made it 10Mbps full duplex by writing 0x0100 in BMCR. This did not give the Remote Fault and the code proceeded.
Now, my PC is showing connection as 10Mbps,but the PHY status register of DP83848 reads 0x142, which again shows 'Remote Fault'.
Thanks for the response !
(1) Check the MDC and MDIO first, send some
simple requests like Get_IDs to ensure that you
can talk to the PHY.
---> On sending Get_ID, I am getting the response correct. The PHY is sending :
ID1 = 8192
ID2 = 23696
(2) If (1) is OK. Check the hardware connection,
cable, switch/hub, etc.
---> Cables and hub, both are working good.
(4) Make sure your timeout value is large enough
when you check the link status(PHYSTS)
---> The timeout value is 0x50000 counts. I guess large enough.
In the code, instead of auto negotiation for speed, I made it 10Mbps full duplex by writing 0x0100 in BMCR. This did not give the Remote Fault and the code proceeded.
Now, my PC is showing connection as 10Mbps,but the PHY status register of DP83848 reads 0x142, which again shows 'Remote Fault'.
Reply by ●March 23, 20102010-03-23