<?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>i.MX RT Crossover MCUsのトピックRe: CLOCK_GetSysPfdFreq does not return correct frequency for bypassed pll clock</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/CLOCK-GetSysPfdFreq-does-not-return-correct-frequency-for/m-p/1561581#M22708</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/13582"&gt;@lh_dan&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I believe you are correct. I will pass this insight to the SDK team so they can do the adequate changes on a future release.&lt;/P&gt;
&lt;P&gt;Thank you for reporting this issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR,&lt;/P&gt;
&lt;P&gt;Edwin.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Nov 2022 23:27:58 GMT</pubDate>
    <dc:creator>EdwinHz</dc:creator>
    <dc:date>2022-11-29T23:27:58Z</dc:date>
    <item>
      <title>CLOCK_GetSysPfdFreq does not return correct frequency for bypassed pll clock</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/CLOCK-GetSysPfdFreq-does-not-return-correct-frequency-for/m-p/1555023#M22507</link>
      <description>&lt;P&gt;SDK_2_12_1_MIMXRT1064xxxxA fsl_clock.c&lt;/P&gt;&lt;P&gt;In the function&amp;nbsp;CLOCK_GetSysPfdFreq(clock_pfd_t pfd) when&amp;nbsp;CLOCK_GetPllFreq() returns the frequency of the Bypass Reference Clock, the returned frequency is divided by the pfd clock divider and multiplied by 18U. For the bypass clock, this should not occur.&amp;nbsp;&lt;/P&gt;&lt;P&gt;uint32_t CLOCK_GetSysPfdFreq(clock_pfd_t pfd)&lt;BR /&gt;{&lt;BR /&gt;uint32_t freq = CLOCK_GetPllFreq(kCLOCK_PllSys);&lt;/P&gt;&lt;P&gt;switch (pfd)&lt;BR /&gt;{&lt;BR /&gt;case kCLOCK_Pfd0:&lt;BR /&gt;freq /= ((CCM_ANALOG-&amp;gt;PFD_528 &amp;amp; CCM_ANALOG_PFD_528_PFD0_FRAC_MASK) &amp;gt;&amp;gt; CCM_ANALOG_PFD_528_PFD0_FRAC_SHIFT);&lt;BR /&gt;break;&lt;/P&gt;&lt;P&gt;case kCLOCK_Pfd1:&lt;BR /&gt;freq /= ((CCM_ANALOG-&amp;gt;PFD_528 &amp;amp; CCM_ANALOG_PFD_528_PFD1_FRAC_MASK) &amp;gt;&amp;gt; CCM_ANALOG_PFD_528_PFD1_FRAC_SHIFT);&lt;BR /&gt;break;&lt;/P&gt;&lt;P&gt;case kCLOCK_Pfd2:&lt;BR /&gt;freq /= ((CCM_ANALOG-&amp;gt;PFD_528 &amp;amp; CCM_ANALOG_PFD_528_PFD2_FRAC_MASK) &amp;gt;&amp;gt; CCM_ANALOG_PFD_528_PFD2_FRAC_SHIFT);&lt;BR /&gt;break;&lt;/P&gt;&lt;P&gt;case kCLOCK_Pfd3:&lt;BR /&gt;freq /= ((CCM_ANALOG-&amp;gt;PFD_528 &amp;amp; CCM_ANALOG_PFD_528_PFD3_FRAC_MASK) &amp;gt;&amp;gt; CCM_ANALOG_PFD_528_PFD3_FRAC_SHIFT);&lt;BR /&gt;break;&lt;/P&gt;&lt;P&gt;default:&lt;BR /&gt;freq = 0U;&lt;BR /&gt;break;&lt;BR /&gt;}&lt;BR /&gt;freq *= 18U;&lt;/P&gt;&lt;P&gt;return freq;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Clock tool reference example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lh_dan_0-1668613443289.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/200643iBF687316566084F2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lh_dan_0-1668613443289.png" alt="lh_dan_0-1668613443289.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 15:45:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/CLOCK-GetSysPfdFreq-does-not-return-correct-frequency-for/m-p/1555023#M22507</guid>
      <dc:creator>lh_dan</dc:creator>
      <dc:date>2022-11-16T15:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: CLOCK_GetSysPfdFreq does not return correct frequency for bypassed pll clock</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/CLOCK-GetSysPfdFreq-does-not-return-correct-frequency-for/m-p/1561581#M22708</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/13582"&gt;@lh_dan&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I believe you are correct. I will pass this insight to the SDK team so they can do the adequate changes on a future release.&lt;/P&gt;
&lt;P&gt;Thank you for reporting this issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR,&lt;/P&gt;
&lt;P&gt;Edwin.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 23:27:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/CLOCK-GetSysPfdFreq-does-not-return-correct-frequency-for/m-p/1561581#M22708</guid>
      <dc:creator>EdwinHz</dc:creator>
      <dc:date>2022-11-29T23:27:58Z</dc:date>
    </item>
  </channel>
</rss>

