K64FX512 Ethernet issue?

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

K64FX512 Ethernet issue?

435 Views
chhsu0229
Contributor II

I am working on K64FX512 Ethernet program. I get the debug information 

netif_add ....
Initializing PHY...

Cannot initialize PHY.

I try to use the example code "frdmk64f_lwip_dhcp_bm" to test the Ethernet function on my board.

I have a few questions.

1) The K64FX512 uses with for specific ethernet phy ?

2) The 50MHz clock is from IC+175D chip that I use phy and connect to pin50, PTA18/EXTAL0 ,

     the mode is set RMII.

    How can I set this clock on my program?

Labels (1)
0 Kudos
1 Reply

364 Views
Alexis_A
NXP TechSupport
NXP TechSupport

Hello,

Check my answers below:

1) The K64FX512 uses with for specific ethernet PHY ?

The FRDM-K64 uses the KSZ8081RNA and the example works with this PHY, if you're using a different one you will need to modify the configurations to match the PHY that you're using.

2) The 50MHz clock is from IC+175D chip that I use PHY and connect to pin50, PTA18/EXTAL0, the mode is set RMII.

How can I set this clock on my program?

If I understanding correctly, you're using an external reference clock to supply the MCU, if this is the case, the lwip examples already set this to work with an external clock, in the case of the FRDM this is supplied by the PHY.

Let me know if this helps you.

Best Regards,

Alexis Andalon

0 Kudos