AnsweredAssumed Answered

TWR-SER2 with TWRK60D100M

Question asked by Subhav Jain on Jun 1, 2015
Latest reply on Jul 31, 2015 by isaacavila

I have successfully implemented the eth-to-serial example from MQX4.1 onto TWRSER PCB. but now i want to implement the same on TWRSER2 device.

 

I have made following changes in code but still no success.

 

Our changes w.r.t default TWRK60d100M BSP

In init_enet.c

#include "phy_dp83xxx.h" instead of #include “phy_ksz8041.h”

2.  In init_enet.c

const ENET_IF_STRUCT ENET_0 = {

    &MACNET_IF,

//&phy_ksz8041_IF, 

    &phy_dp83xxx_IF,

    MACNET_DEVICE_0,

    MACNET_DEVICE_0,

    BSP_ENET0_PHY_ADDR, // = 1

       BSP_ENET0_PHY_MII_SPEED

};

  3. Add files dp8xxx.c and dp8xxx.h in phy folder

  4. In twrk60d100m.bat we have added copy "%ROOTDIR%\mqx\source\io\enet\phy\phy_dp83xxx.h" "%OUTPUTDIR%\phy_dp83xxx.h" /Y and removed copy "%ROOTDIR%\mqx\source\io\enet\phy\phy_ksz8041.h" "%OUTPUTDIR%\phy_ksz8041.h" /Y

5. TWR-SER2 setting is as per attached file Ethernet.jpg.

6. if ((*enet_ptr->PARAM_PTR->ENET_IF->MAC_IF->PHY_READ)(enet_ptr, DP83XXX_REG_BMCR, &phy_status, MII_TIMEOUT)) { we are getting 0 in phy_status which I think chip is not responding.

 

Thanks in Advance.

Attachments

Outcomes