Page 1 of 1

Problem writing to the EMACMIIADDR_REG

Posted: Tue Jun 21, 2022 7:42 am
by ThomasBit
Hi

I try to setup PHY commands. I have MDC and MDIO on IO2 and IO4.
PHY address is 2

If i try to set the PHY address to emacgmiiaddr.miidev and than do a read back, the register is not set to the PHY address of 2:

Code: Select all

emac_ll_set_phy_addr(hal->mac_regs, phy_addr);
// Readback to check
if (hal->mac_regs->emacgmiiaddr.miidev != phy_addr)
        return;
        
This is also the case for other registers.

I'm I missing a point here?

Thomas