This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Link status of ethernet on TM4C 129 platform

Hi,

I enabled ethernet feature on TM4C platform and it works as well.

But I have one problem about getting link status.

I use this function to get the link status:

int checkLinkState(void)
{
	return (EMACPHYRead(EMAC0_BASE, 0, EPHY_BMSR) & EPHY_BMSR_LINKSTAT);
}


In normal case, power on device and then plug in ethernet cable, I can get the correct result.

But sometimes I meet one failed case, if I plug in ethernet cable first and then power on device, I can't get the correct result.

In this failed case, I can see the activity of ethernet LED when power on device, I think that means emac function enabled.

I guess that maybe caused by the register has not written, so I also try to call this function several times, but it still can't get the correct result.

Is it the known issue on emac feature? Or is there any solution to fix it?

Does anyone get the idea on my problem?

thanks
Gavin