2021-01-20 02:02 AM
I have configured MDI and MDIO pins and wanted to verify mdio write cycle signal on DSO. So what other settings need to do apart from MDC and MDIO pin configuration. Do I need to initialize MDC clock? What are the settings need to do for MDC clock.
Below is mdio_write function I am using.
static void mdio_write(volatile struct ETHERNET_tag *reg,uint8_t phy_addr, uint8_t reg_addr,uint16_t data)
{
reg->MAC_MDIO_DATA.B.RA = reg_addr;
reg->MAC_MDIO_DATA.B.GD = data;
reg->MAC_MDIO_ADDRESS.B.PA = phy_addr;
reg->MAC_MDIO_ADDRESS.B.RDA = reg_addr;
reg->MAC_MDIO_ADDRESS.B.GOC = GMII_WRITE_OP;
reg->MAC_MDIO_ADDRESS.B.GB = 1;
dwmac_qos_mdio_busy_wait(reg);
}
Solved! Go to Solution.
2021-02-03 08:28 AM
Hello ,
I think that you are using SPC584Bxx_RLA Network Ping Test Application for Discovery 2
What is DSO ?
you can check the generic setup for MDC and MDIO pin in the pin settings and the file generated. (cfg directory)
For the clock , check the clock settings
Best regards
Erwan
2021-02-03 08:28 AM
Hello ,
I think that you are using SPC584Bxx_RLA Network Ping Test Application for Discovery 2
What is DSO ?
you can check the generic setup for MDC and MDIO pin in the pin settings and the file generated. (cfg directory)
For the clock , check the clock settings
Best regards
Erwan