This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Ethernet problem on DM6467T

Hi everyone

     im using KS8995 as a external  PHY with DM6467T.But i found that i can't receive package,but sending was OK.

i had using emac_loopback prj to check that problem. this prj will sending one package 50 times.the package is 128 bytes(from 0x00 to 0x80):

00 01 02 03 04 06 00 24 21 2B 48 40 08 00 45 00 
00 9C CA 04 00 00 80 11 C8 B6 C0 A8 13 07 C0 A8 
13 3E 0B 7A 00 07 00 88 3B 77 01 02 03 04 05 06 
07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 
17 18 19 1A 1B 1C 1D 1E 1F 20 21 22 23 24 25 26 
27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 
37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 
47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 
57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63 64 65 66 
67 68 69 6A 6B 6C 6D 6E 6F AA 71 72 73 74 75 76 
77 78 79 7A 7B 7C 7D 7E 77 80

But 6467t only catched some of them and the package wasn't correct.Each package was only 35 bytes ,as listed below:

E5 F5 05 16 26 36 46 56 66 76 86 96 A6 B6 C6 D6
E6 F6 A6 1A 27 37 47 57 67 77 87 97 A7 B7 C7 D7
E7 77 07.

PHY MII Control Reg : 0x7100(100M,full-duplex, loop back mode)
EMAC MACCONTROL: 0x00000021(GMII enable,full-duplex)
EMAC_RXMBPENABLE :  0x01e02020(receiving every package)

Can anyone give some advise?

Best Regards,
falloutmx
  • Are you using the 'emac_loopback' project from spectrum digital EVM ? It was developed for a different PHY chip which is on the EVM. 

    Hence I suggest you to verify  the PHY  setup in your system.

    Regards

    Varada

  • i know that.KS8995 only has 6 MII standard Reg.

    i have changed the code from:

        mii_phy_setReg( 1, 0,  0xa100 );        // Force 100mbit, full duplex
        mii_phy_setReg( 1, 28, 0x74f0 );        // Enable LINK LED for link, RXTX LED for TX/RX activity
        printf( "    In MII mode\n" );
        mii_phy_setReg( 1, 19, 0x8001 );        // Enable MII loopback
        mii_phy_setReg( 1, 18, 0x0000 );        // Force MDI mode, no MDI negotiation
        mii_phy_setReg( 1, 22, 0x1810 );        // MII interface mode
    to:
         mii_phy_setReg( 1, 0,  0x7110 );     //100m,full duplex,force MDI,auto-negotiation,loopback mode

    with others remains.

     

    thanks for your reply

    And Regards

    falloutmx

  • KS8995 is not only a PHY but also a switch.i configured it as a PHY.

    It has 5 PHY inside and we use only the first one.

    Could it be a problem?

  • DM6467 supports many industry standard PHY chips. 

    So please contact the PHY manufacturer for Application note/reference for setup. There might be some specific settings needed when you configure this part as PHY.

     

    Hope this helps.

    Regards

    Varada

     

  • finally i solve this problem. KS8995 doesn't have RXER pin.

    So i connected RXER(6467's side) to GND with 10K Resistance.But that wasn't enough to pulldown the pin (still had 1.3 v ).

    solved by using 1k Resistance.

  • Thanks for this update. It will be a reference for others who use the same PHY.