<?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>topic Re: PHY_Read is always returning 0xFFFF (MCU: MPC5775B, PHY: KSZ8061RNB) in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/PHY-Read-is-always-returning-0xFFFF-MCU-MPC5775B-PHY-KSZ8061RNB/m-p/2085440#M27563</link>
    <description>&lt;P&gt;Hello Petr,&lt;/P&gt;&lt;P&gt;Thanks a lot for the reply.&lt;/P&gt;&lt;P&gt;The trigger signal shown in the diagram is a GPIO signal configured to track the timestamp of first read operation. The Digital signal is cleared before writing into base-&amp;gt;MMFR, inside&amp;nbsp;ENET_WriteManagementFrame(). It is set after completion. I had captured PHY Reset signal separately. I could find that the reset signal is deasserted before the read activity on MDIO. I had checked the ECR register and confirmed that the ENET reset is also asserted and deasserted successfully during initialization.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Read operation is always returning 0xffff. But write operation is successful.&lt;/P&gt;&lt;P&gt;As you said, I shall check PHY for MMFR TA field.&lt;/P&gt;&lt;P&gt;Please let me know if there are any further points to be cross verified.&lt;/P&gt;&lt;P&gt;Thanks, and Kind Regards,&lt;/P&gt;&lt;P&gt;Divya&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Apr 2025 11:45:17 GMT</pubDate>
    <dc:creator>DivyaVyas</dc:creator>
    <dc:date>2025-04-23T11:45:17Z</dc:date>
    <item>
      <title>PHY_Read is always returning 0xFFFF (MCU: MPC5775B, PHY: KSZ8061RNB)</title>
      <link>https://community.nxp.com/t5/MPC5xxx/PHY-Read-is-always-returning-0xFFFF-MCU-MPC5775B-PHY-KSZ8061RNB/m-p/2083690#M27554</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am developing Ethernet communication using MPC5775B.&lt;BR /&gt;ENET and PHY modules are incorporated. PHY used is KSZ8061RNB and the PHY type chosen is Phy Generic.&lt;BR /&gt;RMII Mode is chosen. Auto negotiation and AutoMDIx configurations are enabled.&lt;BR /&gt;Pin strapping Config: 111 (RMII Normal Mode and AutoMDIx)&lt;BR /&gt;During run time, I verified all the FEC registers and PHY registers.&lt;BR /&gt;I could find the FEC_EIMR, ECR, MSCR, MMFR, TCR and RCR Register values proper, and all intended configurations are reflected in the internal registers,&lt;BR /&gt;except that the PHY_Read is always returning 0xFFFF.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Steps taken to troubleshoot:&lt;/STRONG&gt;&lt;BR /&gt;The power supply is stable. VDDIO and RefClk are stable. No FEC Error flags are set.&lt;BR /&gt;1. Checked if the system is stuck in reset state. ECR register is telling that the reset is asserted, acknowledged and deasserted successfully on FEC.&lt;BR /&gt;Probed on Reset pin of PHY and confirmed that it's released and stable before read attempt.&lt;BR /&gt;2. Checked the Phy Address configuration. It is configured to be 0x01 via HW Pin strapping and also in Software. This is getting reflected in MMFR Register.&lt;BR /&gt;3. A pull down is given on RXD0 for enabling auto negotiation.&lt;BR /&gt;4. Checked the pull up on MDIO line (1K pullup).&lt;BR /&gt;5. Tried reducing the MDC frequency from 2.5MHz to 1MHz.&lt;BR /&gt;6. Probed on MDC line and confirmed that the clock is stable.&lt;BR /&gt;7. Checked the MII Field of MSCR Register and the MII speed is proper (49d or 31h with FEC0_Clk as 100MHz, when MDC frequency is 1MHz) (19d or 13h&amp;nbsp;with FEC0_Clk as 100MHz, when MDC frequency is 2.5MHz).&lt;BR /&gt;8. Scanned all Phy addresses (0x00 to 0x1F). All are returning 0xFFFF.&lt;BR /&gt;9. Probed on MDIO line and checked the activity while read and write operation, keeping a GPIO as trigger.&lt;BR /&gt;10. The MDIO activity is verified via serial monitor logs.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Observation:&lt;/STRONG&gt;&lt;BR /&gt;Please find the FEC Register values below.&lt;BR /&gt;FEC Error Flags: 0x00000000&lt;BR /&gt;EIMR Register: 0x6A780000&lt;BR /&gt;MSCR Register: 0x00000026&lt;BR /&gt;MMFR Register: 0x6083FFFF&lt;BR /&gt;ECR Register: 0xF0000002&lt;BR /&gt;TCR Register: 0x00000004&lt;BR /&gt;RCR Register: 0x05EE012C&lt;/P&gt;&lt;P&gt;The opmode, start frame delimiter, register address and phy address fields of MMFR are proper.&lt;BR /&gt;However, there is no low pulse on MDIO in the Turn Around + Data phase.&lt;BR /&gt;That means PHY is not acknowledging MDIO read.&lt;BR /&gt;As per my understanding, the FEC module handles the turnaround and data driving portions of MDIO reads internally.&lt;/P&gt;&lt;P&gt;I have attached the Observation on CRO, herewith.&lt;BR /&gt;Please check and let me know what change is required to get the PHY respond with proper TA and Data phase.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DivyaVyas_0-1745218705520.png" style="width: 590px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/334019iCA626183A85A981A/image-dimensions/590x354?v=v2" width="590" height="354" role="button" title="DivyaVyas_0-1745218705520.png" alt="DivyaVyas_0-1745218705520.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DivyaVyas_1-1745218951989.png" style="width: 590px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/334021iC1653868635BECEB/image-dimensions/590x354?v=v2" width="590" height="354" role="button" title="DivyaVyas_1-1745218951989.png" alt="DivyaVyas_1-1745218951989.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks, and Kind Regards,&lt;BR /&gt;Divya&lt;/P&gt;</description>
      <pubDate>Mon, 21 Apr 2025 07:11:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/PHY-Read-is-always-returning-0xFFFF-MCU-MPC5775B-PHY-KSZ8061RNB/m-p/2083690#M27554</guid>
      <dc:creator>DivyaVyas</dc:creator>
      <dc:date>2025-04-21T07:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: PHY_Read is always returning 0xFFFF (MCU: MPC5775B, PHY: KSZ8061RNB)</title>
      <link>https://community.nxp.com/t5/MPC5xxx/PHY-Read-is-always-returning-0xFFFF-MCU-MPC5775B-PHY-KSZ8061RNB/m-p/2085202#M27562</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;the SMI signals looks correct. The TA field is 2 bits long. When data is being written to the PHY, the MAC writes '10' to the MDIO line. When data is being read, the MAC releases the MDIO line at first bit and PHY put&amp;nbsp; '0' on second bit. So as you wrote this seems to be PHY issue.&lt;BR /&gt;From scope pictures I see RST is still asserted. Is there reset deassertion before PHY access? The strap-in pins are latched at the deassertion of reset.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR, Petr&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 07:24:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/PHY-Read-is-always-returning-0xFFFF-MCU-MPC5775B-PHY-KSZ8061RNB/m-p/2085202#M27562</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2025-04-23T07:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: PHY_Read is always returning 0xFFFF (MCU: MPC5775B, PHY: KSZ8061RNB)</title>
      <link>https://community.nxp.com/t5/MPC5xxx/PHY-Read-is-always-returning-0xFFFF-MCU-MPC5775B-PHY-KSZ8061RNB/m-p/2085440#M27563</link>
      <description>&lt;P&gt;Hello Petr,&lt;/P&gt;&lt;P&gt;Thanks a lot for the reply.&lt;/P&gt;&lt;P&gt;The trigger signal shown in the diagram is a GPIO signal configured to track the timestamp of first read operation. The Digital signal is cleared before writing into base-&amp;gt;MMFR, inside&amp;nbsp;ENET_WriteManagementFrame(). It is set after completion. I had captured PHY Reset signal separately. I could find that the reset signal is deasserted before the read activity on MDIO. I had checked the ECR register and confirmed that the ENET reset is also asserted and deasserted successfully during initialization.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Read operation is always returning 0xffff. But write operation is successful.&lt;/P&gt;&lt;P&gt;As you said, I shall check PHY for MMFR TA field.&lt;/P&gt;&lt;P&gt;Please let me know if there are any further points to be cross verified.&lt;/P&gt;&lt;P&gt;Thanks, and Kind Regards,&lt;/P&gt;&lt;P&gt;Divya&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 11:45:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/PHY-Read-is-always-returning-0xFFFF-MCU-MPC5775B-PHY-KSZ8061RNB/m-p/2085440#M27563</guid>
      <dc:creator>DivyaVyas</dc:creator>
      <dc:date>2025-04-23T11:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: PHY_Read is always returning 0xFFFF (MCU: MPC5775B, PHY: KSZ8061RNB)</title>
      <link>https://community.nxp.com/t5/MPC5xxx/PHY-Read-is-always-returning-0xFFFF-MCU-MPC5775B-PHY-KSZ8061RNB/m-p/2087225#M27570</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;how is the MDIO pin configured. There should be OBE and IBE bit set. The voltage level looks weird little bit for zero level. What is your SMI circuitry?&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2025 09:49:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/PHY-Read-is-always-returning-0xFFFF-MCU-MPC5775B-PHY-KSZ8061RNB/m-p/2087225#M27570</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2025-04-25T09:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: PHY_Read is always returning 0xFFFF (MCU: MPC5775B, PHY: KSZ8061RNB)</title>
      <link>https://community.nxp.com/t5/MPC5xxx/PHY-Read-is-always-returning-0xFFFF-MCU-MPC5775B-PHY-KSZ8061RNB/m-p/2090959#M27579</link>
      <description>&lt;P&gt;Hello Petr,&lt;/P&gt;&lt;P&gt;Thanks, a lot for the reply.&lt;/P&gt;&lt;P&gt;Please find the configuration below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DivyaVyas_0-1746190576634.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/336076i5EA39A6374159C3E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DivyaVyas_0-1746190576634.png" alt="DivyaVyas_0-1746190576634.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;OBE and IBE are enabled for MDIO pin.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To capture both read and write operations distinctly using GPIO trigger signal, it is&amp;nbsp;&lt;BR /&gt;conditionally toggled based on the opType, while keeping the same timing — before writing to MMFR,&amp;nbsp;and after the operation is complete.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Observation on CRO:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DivyaVyas_1-1746191334175.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/336077i7C400B4AA1C5372F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DivyaVyas_1-1746191334175.png" alt="DivyaVyas_1-1746191334175.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DivyaVyas_2-1746191481190.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/336088i54AFD26980F9355E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DivyaVyas_2-1746191481190.png" alt="DivyaVyas_2-1746191481190.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I could find high impedance state upon TA first bit (3.2V), during read operation. However, the second bit is not 0 (Problematic).&lt;/P&gt;&lt;P&gt;During write operation, TA bit field is loaded with '10', which is proper.&lt;/P&gt;&lt;P&gt;I am checking the PHY. Please provide suggestions.&lt;/P&gt;&lt;P&gt;Thanks, and Kind Regards,&lt;/P&gt;&lt;P&gt;Divya&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2025 13:19:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/PHY-Read-is-always-returning-0xFFFF-MCU-MPC5775B-PHY-KSZ8061RNB/m-p/2090959#M27579</guid>
      <dc:creator>DivyaVyas</dc:creator>
      <dc:date>2025-05-02T13:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: PHY_Read is always returning 0xFFFF (MCU: MPC5775B, PHY: KSZ8061RNB)</title>
      <link>https://community.nxp.com/t5/MPC5xxx/PHY-Read-is-always-returning-0xFFFF-MCU-MPC5775B-PHY-KSZ8061RNB/m-p/2091393#M27581</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have nothing more to add. This seems to be PHY issue.&lt;BR /&gt;You can try to disconnect PHY and measure lines for SMI read/write, just to see signals generated by MCU, but ensure pullup is connected.&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2025 11:48:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/PHY-Read-is-always-returning-0xFFFF-MCU-MPC5775B-PHY-KSZ8061RNB/m-p/2091393#M27581</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2025-05-05T11:48:01Z</dc:date>
    </item>
  </channel>
</rss>

