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?
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