cancel
Showing results for 
Search instead for 
Did you mean: 

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?

VGoga.1
Associate II

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

}

1 ACCEPTED SOLUTION

Accepted Solutions
Erwan YVIN
ST Employee

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

View solution in original post

1 REPLY 1
Erwan YVIN
ST Employee

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