I've attached the debug stack and the snippet of the code where it fails.
File: fsl_phylan87201.c,
line 79: (regValue != PHY_CONTROL_ID1)
The regValue is always 0. It is never equal to the PHY_CONTROL_ID1, which is defined to be 7. Maybe the MDIO read is not successful. I also tried this on the second EVM just to be sure and have the same issue.
ragof_0-1636564591496.png
ragof_1-1636564866818.png