MDIO on S32Z28x evaluation board I'm working with evoluation board S32E288-975EVB and try to setup basic NETC in RGMII mode with own implementation without RTD integration. So, I followed the guideline AN13866_NETC_Config, NETC reference manual and S32E27RM - setup clocks according to this guide ETH_0_TX_RGMII_CLK 125MHz(source PERIPH_DFS3), P1_NETC_AXI_CLK (source PERIPH_DFS5) 50MHz, ETH_0_RX_RGMII_CLK 125MHz (source ETH_PHY). PCIE functions: Timer, MDIO, Switch,ENETC, VFs were enabled. The NETC module is active, at least I can set/reset registers. I try to use EMDIO for communication with PHY RTL8211 on the board and by very first read command EMDIO stucks in busy state. SIUL2_1[MSCR58] = 0x00210001 SIUL2_1[MSCR59] = 0x00390001 SIUL2_1[IMCR175] = 0x00000002 EMDIO_CFG = 0x00427D08 (Clause22 with preamble, normal operation) EMDIO_CTL = 0x00080E2 (PHY address 0x7, register 0x2, Read command) As result all flags BSY in EMDIO_CFG/EMDIO_CTL set and never reset, EMDIO_DATA is empty, EMDIO_CFG[CMP] = 0. I catched MDC and MDIO signals with oscilloscope, the MDC is running 100kHz, PHY is answering and set in DATA bits correct value, but MDIO doesn't accept it and doesn't work. Any idea, what can be wrong? Re: MDIO on S32Z28x evaluation board Hello @Gonchar,
Thanks for reaching out to us and sorry for the late reply. Regarding your problem, at first glance I cannot know what exactly is wrong. Please share the following so I can analyze the problem better:
Which board are you using? the S32Z280-594EVB or the S32Z280-400EVB or the S32E288-975EVB? I am a bit confused by the title and the description
If you are using one of the boards with two Ethernet ports, which port are you using to perform the test?
In your test are you connecting another device to the board or are you only communication with the PHY?
Can you share a complete dump of the EMDIO registers? This is, from 0x74B6_0000 to 0x74B6_1C44.
Thanks in advance for the information. Re: MDIO on S32Z28x evaluation board I got support from Yassine Karafi, the issue was in GPIO config. I checked and can confirm the root cause was there. Re: MDIO on S32Z28x evaluation board Hello @Gonchar ,
I am glad to know you were able to solve your problem.
If in the future you have any other question or issue, please create a new post and we will be happy to help you.
Best regards Re: MDIO on S32Z28x evaluation board The lable on the board is S32SE28X-DC and it looks very similar to S32E288-975EVB what you mentioned, I made probably typo in title - sorry. I'm trying to communicate with PHY only and according to schematics it has PHY Address 0x7. Nothing else is connected, so both RJ45 connectors are not in use. Memory dump looks like I have access only to adressess 0x74B6_1C00-0x74B6_1C44, so according to reference manual it is exactly NETC EMDIO base function registers and offset is 0x1C00.
記事全体を表示