2021-04-07 5:13 AM
Hello Sir.
In STM32H747I-DISCO board, LAN8742A IC cannot read properly.
Always read only the 0xFFFF value.
In the same source, NUCLEO-H745ZI-Q board reads IO of LAN8742A well.
In LAN8742.c
®value is always 0xFFFF.
if((pObj->IO.GetTick() - tickstart) <= LAN8742_SW_RESET_TO)
{
if(pObj->IO.ReadReg(pObj->DevAddr, LAN8742_BCR, ®value) < 0)
{
status = LAN8742_STATUS_READ_ERROR;
break;
}
}
else
{
status = LAN8742_STATUS_RESET_TIMEOUT;
break;
}
Anyone please help.
2021-04-13 11:36 PM
I had similar issue on a custom board. The problem was that I had wrong configuration of pins in the LAN8742A. Check any jumpers so that the chip is put into correct mode, you probably want RMII mode.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.