<?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 S32k312 Eval board - Get frequency API issue in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32k312-Eval-board-Get-frequency-API-issue/m-p/2370200#M58813</link>
    <description>&lt;P&gt;Dear Sir/Madam,&lt;/P&gt;&lt;P&gt;Using S32k312 Mini Eval board for our application.&amp;nbsp;&amp;nbsp;SW32K3_S32M27x_RTD_R21-11_5.0.0 RTD version used.&lt;/P&gt;&lt;P&gt;Wnen get clock frequency called getting hard fault error,&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mcu_GetClockFrequency(SCS_CLK); - hard fault error&lt;/P&gt;&lt;P&gt;Mcu_GetClockFrequency(AIPS_PLAT_CLK); - hard fault error&lt;/P&gt;&lt;P&gt;Mcu_GetClockFrequency(CORE_CLK); - hard fault error&lt;/P&gt;&lt;P&gt;Mcu_GetClockFrequency&lt;STRONG&gt;(CLKOUT_RUN_CLK);&amp;nbsp; - working fine&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Thalapushpam1_0-1779452196078.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/386531iE7950CBFC77F2037/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Thalapushpam1_0-1779452196078.png" alt="Thalapushpam1_0-1779452196078.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is the sequence I used for clock init,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Thalapushpam1_1-1779452432930.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/386532i35B63881C36FBC77/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Thalapushpam1_1-1779452432930.png" alt="Thalapushpam1_1-1779452432930.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Added some delay after Mcu_SetMode(McuModeSettingConf_0); &amp;amp; tried still got the same issue. Is it PLL stabilization take time? if yes how long?&lt;/P&gt;&lt;P&gt;I want to set the systick based on the core clock frequency using&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;OsIf_Timer_System_Internal_Init() API. can you support.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks.&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 22 May 2026 12:24:14 GMT</pubDate>
    <dc:creator>Thalapushpam1</dc:creator>
    <dc:date>2026-05-22T12:24:14Z</dc:date>
    <item>
      <title>S32k312 Eval board - Get frequency API issue</title>
      <link>https://community.nxp.com/t5/S32K/S32k312-Eval-board-Get-frequency-API-issue/m-p/2370200#M58813</link>
      <description>&lt;P&gt;Dear Sir/Madam,&lt;/P&gt;&lt;P&gt;Using S32k312 Mini Eval board for our application.&amp;nbsp;&amp;nbsp;SW32K3_S32M27x_RTD_R21-11_5.0.0 RTD version used.&lt;/P&gt;&lt;P&gt;Wnen get clock frequency called getting hard fault error,&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mcu_GetClockFrequency(SCS_CLK); - hard fault error&lt;/P&gt;&lt;P&gt;Mcu_GetClockFrequency(AIPS_PLAT_CLK); - hard fault error&lt;/P&gt;&lt;P&gt;Mcu_GetClockFrequency(CORE_CLK); - hard fault error&lt;/P&gt;&lt;P&gt;Mcu_GetClockFrequency&lt;STRONG&gt;(CLKOUT_RUN_CLK);&amp;nbsp; - working fine&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Thalapushpam1_0-1779452196078.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/386531iE7950CBFC77F2037/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Thalapushpam1_0-1779452196078.png" alt="Thalapushpam1_0-1779452196078.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is the sequence I used for clock init,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Thalapushpam1_1-1779452432930.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/386532i35B63881C36FBC77/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Thalapushpam1_1-1779452432930.png" alt="Thalapushpam1_1-1779452432930.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Added some delay after Mcu_SetMode(McuModeSettingConf_0); &amp;amp; tried still got the same issue. Is it PLL stabilization take time? if yes how long?&lt;/P&gt;&lt;P&gt;I want to set the systick based on the core clock frequency using&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;OsIf_Timer_System_Internal_Init() API. can you support.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks.&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2026 12:24:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k312-Eval-board-Get-frequency-API-issue/m-p/2370200#M58813</guid>
      <dc:creator>Thalapushpam1</dc:creator>
      <dc:date>2026-05-22T12:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: S32k312 Eval board - Get frequency API issue</title>
      <link>https://community.nxp.com/t5/S32K/S32k312-Eval-board-Get-frequency-API-issue/m-p/2371410#M58887</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/262976"&gt;@Thalapushpam1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please compare your configuration with the attached .mex file? I have created a simple test on my side, calling Mcu_GetClockFrequency for some of the clocks you mentioned, and I did not encounter any issues. For your reference, I am also attaching my main file.&lt;/P&gt;
&lt;P&gt;Regarding the OsIf TimerClockRef, I believe the following thread could be a helpful reference:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32K/Delay-function-using-OSIF/m-p/1946299" target="_blank" rel="noopener"&gt;Delay function using OSIF&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, VaneB&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2026 16:45:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k312-Eval-board-Get-frequency-API-issue/m-p/2371410#M58887</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2026-05-26T16:45:35Z</dc:date>
    </item>
  </channel>
</rss>

