MQX 3.8 Kinetis K60 PHY change

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MQX 3.8 Kinetis K60 PHY change

Jump to solution
1,248 Views
cimberlina
Contributor I

Hello,

What are the steps for changing from the phyter KSZ8041 to DP83848 ? I want to use MQX 3.8 on MK60N512 project.

 

Tahnks in advance

Claudio

Labels (1)
Tags (1)
0 Kudos
1 Solution
581 Views
petr_uhlir
NXP Employee
NXP Employee
0 Kudos
3 Replies
582 Views
petr_uhlir
NXP Employee
NXP Employee

Hallo cimberlina,

similar way as here:

https://community.freescale.com/message/85378#85378

0 Kudos
581 Views
panpwr
Contributor IV

How do I do it for MQX 3.8.0?  There is no "#include for phy definition file in bsp.h...

I've modified the following:

1. init_enet.c:

const ENET_IF_STRUCT ENET_0 = {

    &MACNET_IF,

    &phy_dm9161_IF,     /*<=== instead of &phy_ksz8041_IF*/

    MACNET_DEVICE_0,

    MACNET_DEVICE_0,

    BSP_ENET0_PHY_ADDR,

    BSP_ENET0_PHY_MII_SPEED

};

2. init_enet.c:

#include "phy_dm9161.h"  /*<=== instead #include "phy_ksz8041.h"*/

3. Recompiled BSP & RTCS libraries.

However, in when performing phy_dm9161_init(), the Status Register reading (&phy_status) always returns 0x0, as if it has not been read at all (The PHY's status register default values are definitely different from 0x0)....

Please advise,

Thank you.

0 Kudos
581 Views
panpwr
Contributor IV
0 Kudos