Problem writing to the EMACMIIADDR_REG

ThomasBit
Posts: 10
Joined: Thu Jun 09, 2022 11:05 am

Problem writing to the EMACMIIADDR_REG

Postby ThomasBit » Tue Jun 21, 2022 7:42 am

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

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 93 guests