<?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: Wrong MDC frequency RW612 frdm_rw612 in Zephyr Project</title>
    <link>https://community.nxp.com/t5/Zephyr-Project/Wrong-MDC-frequency-RW612-frdm-rw612/m-p/2055015#M270</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope you are doing well. Could you please give us more details about your setup?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What SDK version are you using? Did you try with the ethernet example from the SDK?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How are you measuring this with the FRDM?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Ricardo&lt;/P&gt;</description>
    <pubDate>Mon, 03 Mar 2025 21:45:59 GMT</pubDate>
    <dc:creator>Ricardo_Zamora</dc:creator>
    <dc:date>2025-03-03T21:45:59Z</dc:date>
    <item>
      <title>Wrong MDC frequency RW612 frdm_rw612</title>
      <link>https://community.nxp.com/t5/Zephyr-Project/Wrong-MDC-frequency-RW612-frdm-rw612/m-p/2054592#M269</link>
      <description>&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;During development I encountered Ethernet connection stability issues. After some investigation using both rw612 custom board and frdm_rw612, it occured that frequency on MDC pin was wrong. Instead of 2.5MHz, it is 13 MHz. As Ethernet module ksz8081 allows up to 10 MHz MDC frequency, it is just luck that eth is working stable on frdm_rw612 (you can flash any eth sample from Zephyr and see that frequency on MDC pin on frdm_rw612 is 13 MHz)&lt;BR /&gt;&lt;BR /&gt;Getting deeper, it seems that issue root cause is in ethernet MSCR register, which for MII_SPEED calculation uses fixed 50MHz clock value. I found it in Zephyr under &lt;EM&gt;&lt;SPAN class=""&gt;CLOCK_GetTddrMciEnetClkFreq(void)&lt;/SPAN&gt; &lt;/EM&gt;function in&amp;nbsp;&lt;EM&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;mcux/mcux-sdk/devices/RW612/drivers/fsl_clock.&lt;/SPAN&gt;&lt;/SPAN&gt;c&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;When i calculate this register value using M33 processor frequency (260 MHz), then I see correct MDC frequency - 2.5MHz.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to RW612 datasheet frequency in code (50 MHz) seems to be correct, but in reality it uses 260 MHz clock as reference to calculations.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Initially I changed returned value from &lt;EM&gt;&lt;SPAN class=""&gt;CLOCK_GetTddrMciEnetClkFreq&lt;/SPAN&gt;&lt;/EM&gt; to 260 MHz, but I'm not sure that it won't influence on other part of code but it now works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could You please confirm that issue exists and help me where to fix it?&lt;/P&gt;&lt;P&gt;&lt;LI-PRODUCT title="RW612" id="RW612"&gt;&lt;/LI-PRODUCT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 09:28:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Zephyr-Project/Wrong-MDC-frequency-RW612-frdm-rw612/m-p/2054592#M269</guid>
      <dc:creator>Maciej_Jj</dc:creator>
      <dc:date>2025-03-03T09:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong MDC frequency RW612 frdm_rw612</title>
      <link>https://community.nxp.com/t5/Zephyr-Project/Wrong-MDC-frequency-RW612-frdm-rw612/m-p/2055015#M270</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope you are doing well. Could you please give us more details about your setup?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What SDK version are you using? Did you try with the ethernet example from the SDK?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How are you measuring this with the FRDM?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Ricardo&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 21:45:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Zephyr-Project/Wrong-MDC-frequency-RW612-frdm-rw612/m-p/2055015#M270</guid>
      <dc:creator>Ricardo_Zamora</dc:creator>
      <dc:date>2025-03-03T21:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong MDC frequency RW612 frdm_rw612</title>
      <link>https://community.nxp.com/t5/Zephyr-Project/Wrong-MDC-frequency-RW612-frdm-rw612/m-p/2055481#M271</link>
      <description>&lt;P&gt;Hello Ricardo,&lt;/P&gt;&lt;P&gt;With our product we are working on Zephyr 3.7 but to be sure that this issue is reproducible I set up Zephyr 4.1.0.rc3, it uses zephyrSdk 0.17.0 and in west.yml I see that it points to HAL NXP rev. 9dc7449014a7380355612453b31be479cb3a6833 (&lt;A href="https://github.com/zephyrproject-rtos/hal_nxp/commits/9dc7449014a7380355612453b31be479cb3a6833" target="_blank" rel="noopener"&gt;https://github.com/zephyrproject-rtos/hal_nxp/commits/9dc7449014a7380355612453b31be479cb3a6833&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I build dhcpv4 example from Zephyr samples using the following command:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;west build -b frdm_rw612 samples/net/dhcpv4_client/ -p&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;After flashing, I see on console that this example starts correctly. I measured frequency on GPIO56 (exactly on R31 on frdm_rw612 board). Please see image from frdm_rw612 schematic:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="frdm_rw612_MDC_pin.png" style="width: 549px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/326666i356533E9E4A1BE43/image-dimensions/549x359?v=v2" width="549" height="359" role="button" title="frdm_rw612_MDC_pin.png" alt="frdm_rw612_MDC_pin.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&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;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measured frequency is ~13 MHz. According to ksz8081 datasheet it shall not exceed 10MHz and optimal conditions is if this frequency is 2.5 MHz:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IMG_0131.JPEG" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/326667i1770AC65467D065A/image-size/large?v=v2&amp;amp;px=999" role="button" title="IMG_0131.JPEG" alt="IMG_0131.JPEG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Looking into MSCR register, it seems to have correct value, but in reality it has to be recalculated using 260 MHz frequency, not 50 MHz. Because of that MSCR MII_SPEED is 13MHz instead of 2.5MHz and MSCR HOLDTIME is set to 0 causing connection issues.&lt;/P&gt;&lt;P&gt;I've made some work-around in enet devicetree, but it can't be like that. Using the following method leaves HOLDTIME value wrong and there are still some communication issues.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.jfif" style="width: 745px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/326671i39B51B862D113ED7/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.jfif" alt="image.jfif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I didn't tried eth example from mcuexpresso as we are using Zephyr for our development&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 10:50:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Zephyr-Project/Wrong-MDC-frequency-RW612-frdm-rw612/m-p/2055481#M271</guid>
      <dc:creator>Maciej_Jj</dc:creator>
      <dc:date>2025-03-04T10:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong MDC frequency RW612 frdm_rw612</title>
      <link>https://community.nxp.com/t5/Zephyr-Project/Wrong-MDC-frequency-RW612-frdm-rw612/m-p/2055495#M272</link>
      <description>&lt;P&gt;Here I attach measuring MDC frequency with changed &lt;EM&gt;CLOCK_GetTddrMciEnetClkFreq &lt;/EM&gt;to 260 MHz:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IMG_0142.JPEG" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/326675i2B15295EFE944D4D/image-size/large?v=v2&amp;amp;px=999" role="button" title="IMG_0142.JPEG" alt="IMG_0142.JPEG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clock_freq_change.png" style="width: 556px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/326676iC9F78D373A92AAF4/image-size/large?v=v2&amp;amp;px=999" role="button" title="clock_freq_change.png" alt="clock_freq_change.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 11:16:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Zephyr-Project/Wrong-MDC-frequency-RW612-frdm-rw612/m-p/2055495#M272</guid>
      <dc:creator>Maciej_Jj</dc:creator>
      <dc:date>2025-03-04T11:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong MDC frequency RW612 frdm_rw612</title>
      <link>https://community.nxp.com/t5/Zephyr-Project/Wrong-MDC-frequency-RW612-frdm-rw612/m-p/2057210#M273</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know that you are using Zephyr, but could you please help us check if this issue is also present when using the MCUXpresso SDK?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also will be checking the Zephyr example in the meantime.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Ricardo&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 16:41:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Zephyr-Project/Wrong-MDC-frequency-RW612-frdm-rw612/m-p/2057210#M273</guid>
      <dc:creator>Ricardo_Zamora</dc:creator>
      <dc:date>2025-03-06T16:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong MDC frequency RW612 frdm_rw612</title>
      <link>https://community.nxp.com/t5/Zephyr-Project/Wrong-MDC-frequency-RW612-frdm-rw612/m-p/2057224#M275</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No problem, I've flashed frdmrw612_enet_txrx_transfer sample using MCUXpresso IDE 24.9.25 and here everything seems to work fine, measured frequency on MDC pin is 2.5 MHz&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 16:56:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Zephyr-Project/Wrong-MDC-frequency-RW612-frdm-rw612/m-p/2057224#M275</guid>
      <dc:creator>Maciej_Jj</dc:creator>
      <dc:date>2025-03-06T16:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong MDC frequency RW612 frdm_rw612</title>
      <link>https://community.nxp.com/t5/Zephyr-Project/Wrong-MDC-frequency-RW612-frdm-rw612/m-p/2057277#M276</link>
      <description>&lt;P&gt;It seems that in MCUxpresso sample 260 MHz frequency is being used to calculate MSCR register values:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mcuxpresso_enetup.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/327045i127FBB6737847BC6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mcuxpresso_enetup.png" alt="mcuxpresso_enetup.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 18:09:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Zephyr-Project/Wrong-MDC-frequency-RW612-frdm-rw612/m-p/2057277#M276</guid>
      <dc:creator>Maciej_Jj</dc:creator>
      <dc:date>2025-03-06T18:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong MDC frequency RW612 frdm_rw612</title>
      <link>https://community.nxp.com/t5/Zephyr-Project/Wrong-MDC-frequency-RW612-frdm-rw612/m-p/2062815#M279</link>
      <description>&lt;P&gt;Hello Ricardo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;are there any updates?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 07:38:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Zephyr-Project/Wrong-MDC-frequency-RW612-frdm-rw612/m-p/2062815#M279</guid>
      <dc:creator>Maciej_Jj</dc:creator>
      <dc:date>2025-03-17T07:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong MDC frequency RW612 frdm_rw612</title>
      <link>https://community.nxp.com/t5/Zephyr-Project/Wrong-MDC-frequency-RW612-frdm-rw612/m-p/2073503#M294</link>
      <description>Hello Maciej,&lt;BR /&gt;&lt;BR /&gt;I was going through all your inputs and yes you find the relevant issue which need to be fixed. As a quick fix you can change the value of CLOCK_MHZ as you did to 260MHz in the function CLOCK_GetTddrMciEnetClkFreq. You can continue work and we will work on the update on GitHub repository.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Pavel Krenek</description>
      <pubDate>Thu, 03 Apr 2025 08:16:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Zephyr-Project/Wrong-MDC-frequency-RW612-frdm-rw612/m-p/2073503#M294</guid>
      <dc:creator>pavel_krenek</dc:creator>
      <dc:date>2025-04-03T08:16:45Z</dc:date>
    </item>
  </channel>
</rss>

