Facing issues while using ksz8873RLL micrel 64pin chip to be integrated with Freescale K-70

cancel
Showing results for 
Search instead for 
Did you mean: 

Facing issues while using ksz8873RLL micrel 64pin chip to be integrated with Freescale K-70

422 Views
charliegujrati
Contributor II

Currently, for our project we use the Freescale MQX 4.0.

As we use the K-70 tower board with the chip KSZ8041NL (single port) which is a part of the serial board connected to the k-70 tower board.

And we have a change in requirement where we have to use the KSZ8873RLL (3 port chip) we would like to know what changes has to be done from our side on the MQX RTOS code.

While using the KSZ8041NL single port chip, we used the below code set from MQX.

File name : C:\Freescale\Freescale_MQX_4_0\mqx\source\io\enet\phy\ phy_ksz8041.c

Function name : static boolean phy_ksz8041_init()

The function used for reading the address of the register: *enet_ptr->PARAM_PTR->ENET_IF->MAC_IF->PHY_READ()

However, for the new micrel chip KSZ8873RLL (3 port chip)  the above code is not working.

And as per the data sheet we see that register address obtained does not allow the communication of the chip with the K-70 board.

Hence, request to please let us know if we have any code changes to be done on the MAC layer of MQX RTOS code for the new KSZ8873RLL chip. !

0 Kudos
1 Reply

94 Views
soledad
NXP Employee
NXP Employee

Hello Charlie,

Unfortunately there is not a package with driver ksz8873 integration in MQX so it is necessary to perform the required changes in the Ethernet driver in the BSP.

The PHY ksz8041 is right now configured in the BSP. It is necessary to change the driver in case that the new PHY of ksz8873 is different than the ksz8041 PHY.

You need to take special attention to the module: ini_enet.c (C:\Freescale\Freescale_MQX_4_0\mqx\source\bsp\twrk70f120m), phy_ksz8041.h and phy_ksz8041.c (C:\Freescale\Freescale_MQX_4_0\mqx\source\io\enet\phy)

Here is where the PHY is initialized.

The changes should apply according with the specifications of your PHY. It is possible that no changes are needed. This can be tested using the MQX with no changes in the BSP and see if it works correctly, this according the below thread:

https://community.freescale.com/thread/110698

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

I hope this information helps.


Have a great day,
Sol

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos