how to add support for a different(LAN9303) phy driver to MQX?

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

how to add support for a different(LAN9303) phy driver to MQX?

782 Views
akshaymn
Contributor I

Hi,

I am using K70 tower board and MQX for my project. I was using the serial board's micrel ksz8041 chip as my phy driver. i have replaced the LAN IC from Micrel to Microchip's LAN9303. Now I want to add the LAN9303 phy driver to MQX and test its ping functionality. Any help on integrating  a custom phy driver into MQX is appreciated.

Thanks,

Akshay

Labels (1)
0 Kudos
2 Replies

410 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Akshay:

I think you need to change the driver, please take special attention to the module

init_enet.c (C:\Freescale\Freescale_MQX_4_2\mqx\source\bsp\[twrk60n512])

phy_ksz8041.h and phy_ksz8041.c  here is where the phy is initialized.

The changes should apply according to the specifications of your Phy.

After you perform all the necessary changes in the BSP, it is necessary to recompile the libraries.

Hope this information is helpful, Have a nice day!

Regards

Daniel

0 Kudos

410 Views
akshaymn
Contributor I

Hi Daniel,

I had already made the required changes in the files init_enet.c phy_ksz8041.c and phy_ksz8041.h. I then recompiled the MQX libraries too.

What i am trying to achieve is to perform a simple ping operation using the LAN9303 chip. Even after doing the steps mentioned i am not able to ping my tower board which is connected to LAN9303. But I am able to read the LAN9303 Virtual PHY registers. I'm not able to understand why i'm able to ping?

Thanks,

Akshay

0 Kudos