This is a screenshot from my code debugging. When running the function to obtain the PHY ID, the DATA in the USERACCESS0 register always remains 0. I have been unable to identify the reason for this.
This is my hardware schematic. The TMS570LC4357 chip is connected to the PHY chip through a connector. Please help me check whether there are any errors in the hardware。
I am using the official example project v00.04..00 for my code. I added the code EMACHWInit(emacAddress);
in the main
function, but it cannot initialize successfully, and I cannot obtain the PHYID.
In the above-mentioned project, the modifications made using HCG are as follows:
Translate to English, and I observed that the frequency of the X1 pin of the PHY chip is 50MHz, and the frequency of the MDIO pin is 1MHz using an oscilloscope."