<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>S32K中的主题 Re: ETH MDIO driver</title>
    <link>https://community.nxp.com/t5/S32K/ETH-MDIO-driver/m-p/2409934#M60808</link>
    <description>&lt;P&gt;SJA110 2.0 and Using RMII&lt;/P&gt;&lt;P&gt;I want to use the MDIO to monitor the registers and check the status of the switch and MCU when one of the ports is disconnected. This is just one method of detection, as I'm not sure what causes the TCP server and client to fail to coexist simultaneously.&amp;nbsp;Not sure which version it is.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xingyun_0-1788248086523.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/395673iED88FF59C770EB57/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xingyun_0-1788248086523.png" alt="xingyun_0-1788248086523.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;xingyun_0-1788248086523.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Sep 2026 07:39:24 GMT</pubDate>
    <dc:creator>xingyun</dc:creator>
    <dc:date>2026-09-01T07:39:24Z</dc:date>
    <item>
      <title>ETH MDIO driver</title>
      <link>https://community.nxp.com/t5/S32K/ETH-MDIO-driver/m-p/2409536#M60760</link>
      <description>&lt;P&gt;We are using sia1110, and now we've noticed that when both TCP client and server are running simultaneously, one of them will randomly disconnect after some time. The client can reconnect successfully by clicking the reconnect button on the host machine, but the server cannot.&lt;/P&gt;&lt;P&gt;The same procedure does not have this problem on different platforms. Could you please explain to me the reason for this?&lt;/P&gt;&lt;P&gt;My current idea is to use MDIO to monitor the status between the MCU and the switch, but I'm currently facing some problems.&lt;/P&gt;&lt;DIV&gt;status_t Dwmac_LLD_Mii_Read_Reg(volatile DwmacReg *dwmac_reg, uint32_t phy_addr, uint32_t reg_addr, uint32_t *reg_data)&lt;/DIV&gt;&lt;DIV&gt;{&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; while (dwmac_reg-&amp;gt;MAC_MDIO_ADDRESS.B.GB != 0U) {; }&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; dwmac_reg-&amp;gt;MAC_MDIO_DATA.B.RA = reg_addr;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; dwmac_reg-&amp;gt;MAC_MDIO_DATA.B.GD = 0;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; dwmac_reg-&amp;gt;MAC_MDIO_ADDRESS.B.PA = phy_addr;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; dwmac_reg-&amp;gt;MAC_MDIO_ADDRESS.B.RDA = reg_addr;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; dwmac_reg-&amp;gt;MAC_MDIO_ADDRESS.B.GOC = 2U;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; dwmac_reg-&amp;gt;MAC_MDIO_ADDRESS.B.CR = 0xB;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; dwmac_reg-&amp;gt;MAC_MDIO_ADDRESS.B.GB = 1U;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; while (dwmac_reg-&amp;gt;MAC_MDIO_ADDRESS.B.GB != 0U) {; }&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; *reg_data = (uint16_t) (dwmac_reg-&amp;gt;MAC_MDIO_DATA.R &amp;amp; 0x0000FFFFU);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; return STATUS_SUCCESS;&lt;/DIV&gt;&lt;DIV&gt;}&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Dwmac_LLD_Mii_Read_Reg(&amp;amp;ETHERNET_0, 0x1B, 0x2U, &amp;amp;reg_val);&lt;/DIV&gt;&lt;DIV&gt;The underlying function being used here, in which reg_val remains 0 all the time.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 31 Aug 2026 07:17:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/ETH-MDIO-driver/m-p/2409536#M60760</guid>
      <dc:creator>xingyun</dc:creator>
      <dc:date>2026-08-31T07:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: ETH MDIO driver</title>
      <link>https://community.nxp.com/t5/S32K/ETH-MDIO-driver/m-p/2409675#M60772</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/258092"&gt;@xingyun&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;DIV&gt;
&lt;P&gt;Before analyzing the TCP disconnection and the MDIO read function, could you please provide some additional information about your setup?&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Which exact SJA1110 device variant and silicon revision are you using?&lt;/LI&gt;
&lt;LI&gt;Which MCU or processor is connected to the SJA1110 and which interface is used between them, for example RGMII, RMII, SGMII or another interface?&lt;/LI&gt;
&lt;LI&gt;Could you provide a simplified connection diagram showing the MCU, SJA1110 ports and the devices running the TCP client and server?&lt;/LI&gt;
&lt;LI&gt;Which TCP/IP stack and stack version are you using?&lt;/LI&gt;
&lt;LI&gt;Which version of SJA1110 SDK/RTD is used in the project?&lt;/LI&gt;
&lt;LI&gt;Does the TCP client and server run on the same MCU and the same Ethernet interface or on separate devices/interfaces?&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV&gt;Could you also clarify what exactly you intend to monitor using the MDIO read function? In particular, which device and register do PHY address 0x1B and register address 0x02 refer to in your setup? Please also share the relevant schematic section or connection details showing how the SMI interface, including the MDC and MDIO signals, is connected between the MCU and the SJA1110.&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;DIV&gt;We kindly ask you to provide precise details for the questions above, as this will help us establish a clear understanding of your setup and avoid any potential misunderstandings at an early stage of the analysis.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;P&gt;Pavel&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2026 12:52:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/ETH-MDIO-driver/m-p/2409675#M60772</guid>
      <dc:creator>PavelL</dc:creator>
      <dc:date>2026-08-31T12:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: ETH MDIO driver</title>
      <link>https://community.nxp.com/t5/S32K/ETH-MDIO-driver/m-p/2409934#M60808</link>
      <description>&lt;P&gt;SJA110 2.0 and Using RMII&lt;/P&gt;&lt;P&gt;I want to use the MDIO to monitor the registers and check the status of the switch and MCU when one of the ports is disconnected. This is just one method of detection, as I'm not sure what causes the TCP server and client to fail to coexist simultaneously.&amp;nbsp;Not sure which version it is.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xingyun_0-1788248086523.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/395673iED88FF59C770EB57/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xingyun_0-1788248086523.png" alt="xingyun_0-1788248086523.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;xingyun_0-1788248086523.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2026 07:39:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/ETH-MDIO-driver/m-p/2409934#M60808</guid>
      <dc:creator>xingyun</dc:creator>
      <dc:date>2026-09-01T07:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: ETH MDIO driver</title>
      <link>https://community.nxp.com/t5/S32K/ETH-MDIO-driver/m-p/2410310#M60827</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/258092"&gt;@xingyun&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;To further help you I need more information. Please answer to all question below:&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp;&lt;SPAN&gt;Which exact SJA1110 device variant&amp;nbsp;do you use? SJA1110A, B, C or D?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2. What ports on SJA1110 are connected to TCPS and to TCPC?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3. Both used ports&amp;nbsp;to TCPS and to TCPC used RMII?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;4.&amp;nbsp;TCPS and to TCPC are connected directly to RMII or is there any PHY between them?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;5. How is SJA1110 configured? Is there any SW running on SJA1110 or SJA1110 acts only as a switch?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;6. What software has been used to configure SJA1110? S32 Design Studio ?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Pavel&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2026 05:59:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/ETH-MDIO-driver/m-p/2410310#M60827</guid>
      <dc:creator>PavelL</dc:creator>
      <dc:date>2026-09-02T05:59:28Z</dc:date>
    </item>
  </channel>
</rss>

