Read PHY address (LAN 9646) by Ethernet driverHello everyone,
I tried to read the PHY address of LAN 9646 by function Eth_43_GMAC_ReadMii but it return unexpected results. I just want to ask that this function is suitable for reading PHY address. Thanks for reading.
Re: Read PHY address (LAN 9646) by Ethernet driverHi,
yes, the Eth_43_GMAC_ReadMii is a function to read a PHY register over MDIO using clause 22.
It is not clear what parameters you used in function and what reading you get. Be sure you are using right PHY and register addresses as specified in device datasheet for Standard MIIM Registers (Direct) access.
Also be sure MIIM interface is selected, per the device DS it is not a default one, configured by strapping option.
BR, Petr