• AVR Freaks

SMSC8720A failed to initialise Error in TCP/IP stack

Author
arpatel
Starting Member
  • Total Posts : 69
  • Reward points : 0
  • Joined: 2019/01/09 23:24:14
  • Location: 0
  • Status: offline
2019/04/08 19:21:16 (permalink)
0

SMSC8720A failed to initialise Error in TCP/IP stack

Hi
I am getting DRV PHY Init failed (-1 or -3).
When I put probe on the chip it display activity only on REF_LCK and EMDC . All other pins are IDLE.
Both LED are on all the time with green led flashing and Orange LED steady.
 
 
console result:
>macinfo
Interface: PIC32INT driver statistics
        nRxOkPackets: 0, nRxPendBuffers: 0, nRxSchedBuffers: 4, nRxErrorPackets: 0, nRxFragmentErrors: 0
        nTxOkPackets: 66, nTxPendBuffers: 0, nTxErrorPackets: 0, nTxQueueFull: 0
Interface: PIC32INT hardware statistics
        FRMTXOK : 0x       4
        FRMRXOK : 0x       0
        RXBUFCNT: 0x       0
        RXOVFLOW: 0x       0
        FCSERROR: 0x       0
        ALGNERR : 0x       0
        SCOLFRM : 0x       0
        MCOLFRM : 0x       0
 
It clearly shows that mac is not receiving anything from PHY.
Does anybody have any idea why ?
IS this device failed or some thing related to firmware?
 
 
 
MCU : PIC32MZ2048EHM064 @200MHz
Harmony 2.04
Phy = RMII connection ,25MHz Crystal.
post edited by arpatel - 2019/04/08 23:08:22
#1
rainad
Super Member
  • Total Posts : 1480
  • Reward points : 0
  • Joined: 2009/05/01 13:39:25
  • Location: 0
  • Status: online
Re: SMSC8720A failed to initialise Error in TCP/IP stack 2019/04/09 15:58:43 (permalink)
0
You can try one of the miim commands to read some known PHY registers. While doing that, probe the MDC and MDIO signal with a scope and see if there's anything suspicious.  The 25 MHz clock should also be present.
Something is obviously wrong with the PHY, maybe layout, some signal, power, etc.
When inserting the cable, do the LEDs blink?
  
#2
arpatel
Starting Member
  • Total Posts : 69
  • Reward points : 0
  • Joined: 2019/01/09 23:24:14
  • Location: 0
  • Status: offline
Re: SMSC8720A failed to initialise Error in TCP/IP stack 2019/04/09 17:07:43 (permalink)
0
Phy Register:
r0 = 0x1100
r1 = 0x782d
r2 = 0xc0f1
r3 = 0xde1
r4 = 0x1
r5 to r15 = 0xffff
r18 = 0x60e0
r27 = 0x1a
r29 = 0xc8
r31 = 0x1058
 
I can see the 25MHz clock on the EREFCLK pin and some activity on MDC and MDIO.
 
It may be blown Or something wrong with internal circuitry.
Both LED are steady.
Thanks
 
#3
rainad
Super Member
  • Total Posts : 1480
  • Reward points : 0
  • Joined: 2009/05/01 13:39:25
  • Location: 0
  • Status: online
Re: SMSC8720A failed to initialise Error in TCP/IP stack 2019/04/10 08:54:49 (permalink)
0
Looks like everything is in good shape.
The only thing remaining is the  MAC <-> PHY data bus.
- check that the 10 RMII signals wiring is correct
- check the fuses: FMIIEN + FETHIO
- check that the MAC receives the 50 MHz clock
 
 
 
#4
arpatel
Starting Member
  • Total Posts : 69
  • Reward points : 0
  • Joined: 2019/01/09 23:24:14
  • Location: 0
  • Status: offline
Re: SMSC8720A failed to initialise Error in TCP/IP stack 2019/04/10 23:53:22 (permalink)
0
I am suspicious about the same the data bus. I cant see anything on there. NO activity.
However I can see reference clock is there.
Thus:
-RMII signal wiring is correct as 5/10 board working.
-Fuse setting is right as well.
-may be MAC receicves 50MHz Clock as I cant measure clock exactly. I have got only 25MHz CRO. But there is some activity so I belive clock shouldnt be a issue.
 
So now Only thing remains is change the PHY, it may have burst internally and receive part not working.
 
#5
Jump to:
© 2021 APG vNext Commercial Version 4.5