Hello,
What are the steps for changing from the "phy_ksz8041.h" PHY to the “phy_dp83xxx.h” PHY in an MQX project?
MQX 3.4
CW 7.1.2
Thanks,
Mark
Solved! Go to Solution.
Mark,
sorry I have missed couple of things.
My web_hvac application was possible to compile without problems.
But if you are accessing phy_dp83xxx_IF structure in your application you need to change also following.
in bsp.h change
//#include <phy_ksz8041.h> // Ethernet Physical Interface
#include <phy_dp83xxx.h> // Ethernet Physical Interface
in BSP postbuild batch file "bsp_twrmcf52259.bat" change
rem copy /Y ..\..\..\mqx\source\io\enet\phy\phy_ksz8041.h .
copy /Y ..\..\..\mqx\source\io\enet\phy\phy_dp83xxx.h .
Mark,
even if not stated, but from compiler you are using I suppose you would like to modify some MCF5225x BSP.
1. In BSP library Peripheral IO Drivers -> enet-> phy replace files "phy_ksz8041.*" by “phy_dp83xxx.*”
2. In enet_ini.c change included files
//#include "phy_ksz8041.h"
#include "phy_dp83xxx.h"
3. Modify ENET_IF_STRUCT ENET_0 struct to refer to phy_dp83xxx_IF
const ENET_IF_STRUCT ENET_0 = {
&MCF5xxx_FEC_IF,
&phy_dp83xxx_IF,
MCF5225_FEC0,
MCF5225_FEC0,
BSP_ENET0_PHY_ADDR,
BSP_ENET0_PHY_MII_SPEED
};
I am not sure if there was MQX 3.4 BSP_ENET0_PHY_MII_SPEED parameter in structure. If not, delete it.
When you recompile BSP and it should work.
The BSP and all other libraries compiled fine but now the application has this link error:
Error : Undefined : "phy_dp83xxx_IF"
Referenced from "ENET_0" in
Link failed.
Thanks,
Mark
Mark,
sorry I have missed couple of things.
My web_hvac application was possible to compile without problems.
But if you are accessing phy_dp83xxx_IF structure in your application you need to change also following.
in bsp.h change
//#include <phy_ksz8041.h> // Ethernet Physical Interface
#include <phy_dp83xxx.h> // Ethernet Physical Interface
in BSP postbuild batch file "bsp_twrmcf52259.bat" change
rem copy /Y ..\..\..\mqx\source\io\enet\phy\phy_ksz8041.h .
copy /Y ..\..\..\mqx\source\io\enet\phy\phy_dp83xxx.h .
That did it!
Thanks! It's much appreciated.
Mark