Hi ,
I am programming a custom board based on MK60DN512 chip.
We are using LAN8720A as a PHY device. Tricky part is determing /setting the PHY ID.
I don't know what is the default ID. In the datasheet they have mentioned that the we have to assert RXER pin low to set the PHY ID. How to assert RXER pin low when it is not configure as GPIO.
I have written a simple code which tries to read the PHY_PHYIDR1 register of LAN8720. I am not getting any valid data.
do
{
vTaskDelay( netifLINK_DELAY );
usData = 0xffff;
ret=mii_read( 0, id, PHY_PHYIDR1, &usData );
id++;
} while( usData == 0xffff);