Skip to main content
VGoga.1
Associate
January 20, 2021
Solved

Hello, I am using SPC584B70E5 micro-controller for Ethernet driver development. I wanted to know what is the generic setup of MDC and MDIO pin? Can I verify MDIO interface without MAC initialisation?

  • January 20, 2021
  • 1 reply
  • 1027 views

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);

}

    This topic has been closed for replies.
    Best answer by Erwan YVIN

    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

    0693W000007DpUzQAK.png 

    Best regards

    Erwan

    1 reply

    Erwan YVIN
    Erwan YVINBest answer
    ST Employee
    February 3, 2021

    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

    0693W000007DpUzQAK.png 

    Best regards

    Erwan