<?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: Problem to initialize Systick in FRDM-MCXA153 using peripherals config tool in MCX Microcontrollers</title>
    <link>https://community.nxp.com/t5/MCX-Microcontrollers/Problem-to-initialize-Systick-in-FRDM-MCXA153-using-peripherals/m-p/2265780#M4541</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/59428"&gt;@zorrotz&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, i have checked the code.&lt;/P&gt;
&lt;P&gt;It is a bug.&lt;/P&gt;
&lt;P&gt;I will report it to our SDK team.&lt;/P&gt;
&lt;P&gt;If you want to use&amp;nbsp;kCPU_CLK_to_SYSTICK and&amp;nbsp;&lt;SPAN&gt;kCLOCK_DivSYSTICK.&lt;/SPAN&gt;&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="Harry_Zhang_0-1766042327334.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/370571iBB6BAEF02471336F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Harry_Zhang_0-1766042327334.png" alt="Harry_Zhang_0-1766042327334.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="Harry_Zhang_2-1766042465654.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/370573iB2765589F9902F1D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Harry_Zhang_2-1766042465654.png" alt="Harry_Zhang_2-1766042465654.png" /&gt;&lt;/span&gt;&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="Harry_Zhang_1-1766042338256.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/370572i405EC295B6ABDCAD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Harry_Zhang_1-1766042338256.png" alt="Harry_Zhang_1-1766042338256.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You need to add some code in fsl_clock.h&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Harry_Zhang_3-1766042710072.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/370574i22E81EFC9BD1CF58/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Harry_Zhang_3-1766042710072.png" alt="Harry_Zhang_3-1766042710072.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Harry_Zhang_4-1766042747585.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/370575i94E45AB45ABA1856/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Harry_Zhang_4-1766042747585.png" alt="Harry_Zhang_4-1766042747585.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this will help you.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;</description>
    <pubDate>Thu, 18 Dec 2025 07:26:07 GMT</pubDate>
    <dc:creator>Harry_Zhang</dc:creator>
    <dc:date>2025-12-18T07:26:07Z</dc:date>
    <item>
      <title>Problem to initialize Systick in FRDM-MCXA153 using peripherals config tool</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Problem-to-initialize-Systick-in-FRDM-MCXA153-using-peripherals/m-p/2264733#M4531</link>
      <description>&lt;P&gt;I have used peripherals config tool to configure the Systick to work with cpu_clk divided by 4.&lt;/P&gt;&lt;P&gt;After building the project there are 2 compilation errors, due to the lack of&amp;nbsp;&lt;SPAN&gt;kCPU_CLK_to_SYSTICK and&amp;nbsp;kCLOCK_DivSYSTICK definitions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have checked that these definitions are not included in fsl_clock.h file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Note that I use MCUxpresso IDE 25.6 and SDK 25.09.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The fsl_clock.h file of the mcux-sdk 2.16 available in github includes these definitions, but i not confident in this file because i have found some bugs, for example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- the are some comments that are incorrect&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-&amp;nbsp;CLOCK_FRO12MTrimConfig() function of fsl_clock.c file has this code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SCG0-&amp;gt;SIRCSTAT = SCG_SIRCSTAT_&lt;FONT color="#FF0000"&gt;CCOTRIM&lt;/FONT&gt;(config.cltrim);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SCG0-&amp;gt;SIRCSTAT = SCG_SIRCSTAT_CCOTRIM(config.ccotrim);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; and i think that it should be:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SCG0-&amp;gt;SIRCSTAT = SCG_SIRCSTAT_&lt;FONT color="#FF0000"&gt;CLTRIM&lt;/FONT&gt;(config.cltrim);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SCG0-&amp;gt;SIRCSTAT = SCG_SIRCSTAT_CCOTRIM(config.ccotrim);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have also search the documentation for SDK 25.12, but these definitions are not included.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I can manually modify fsl_clock.h file, but I prefer to have a correct SDK.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there a SDK version for&amp;nbsp;FRDM-MCXA153 which includes these definitions?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2025 09:49:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Problem-to-initialize-Systick-in-FRDM-MCXA153-using-peripherals/m-p/2264733#M4531</guid>
      <dc:creator>zorrotz</dc:creator>
      <dc:date>2025-12-17T09:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem to initialize Systick in FRDM-MCXA153 using peripherals config tool</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Problem-to-initialize-Systick-in-FRDM-MCXA153-using-peripherals/m-p/2264892#M4532</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/59428"&gt;@zorrotz&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have checked the frdm_mcxa153 v25.09 SDK.&lt;/P&gt;
&lt;P&gt;In fsl_clock.c&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Harry_Zhang_0-1765968291918.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/370422i3B4D76CF66338690/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Harry_Zhang_0-1765968291918.png" alt="Harry_Zhang_0-1765968291918.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;status_t CLOCK_FRO12MTrimConfig(sirc_trim_config_t config)
{
    SCG0-&amp;gt;SIRCTCFG = SCG_SIRCTCFG_TRIMDIV(config.trimDiv) | SCG_SIRCTCFG_TRIMSRC(config.trimSrc);

    if (kSCG_SircTrimNonUpdate == config.trimMode)
    {
        SCG0-&amp;gt;SIRCSTAT = (SCG0-&amp;gt;SIRCSTAT &amp;amp; ~SCG_SIRCSTAT_CLTRIM_MASK) | SCG_SIRCSTAT_CLTRIM(config.cltrim);
        SCG0-&amp;gt;SIRCSTAT = (SCG0-&amp;gt;SIRCSTAT &amp;amp; ~SCG_SIRCSTAT_CCOTRIM_MASK) | SCG_SIRCSTAT_CCOTRIM(config.ccotrim);
    }

    /* Set trim mode. */
    SCG0-&amp;gt;SIRCCSR = (SCG0-&amp;gt;SIRCCSR &amp;amp; ~(SCG_SIRCCSR_SIRCTREN_MASK | SCG_SIRCCSR_SIRCTRUP_MASK)) | (uint32_t)config.trimMode;

    if ((SCG0-&amp;gt;SIRCCSR &amp;amp; SCG_SIRCCSR_SIRCVLD_MASK) == 0U)
    {
        return (status_t)kStatus_Fail;
    }

    if ((SCG0-&amp;gt;SIRCCSR &amp;amp; SCG_SIRCCSR_SIRCERR_MASK) == SCG_SIRCCSR_SIRCERR_MASK)
    {
        return (status_t)kStatus_Fail;
    }

    if ((SCG0-&amp;gt;SIRCCSR &amp;amp; SCG_SIRCCSR_TRIM_LOCK_MASK) == 0U)
    {
        return (status_t)kStatus_Fail;
    }

    return (status_t)kStatus_Success;
}
&lt;/LI-CODE&gt;
&lt;P&gt;You can refer to it.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2025 10:45:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Problem-to-initialize-Systick-in-FRDM-MCXA153-using-peripherals/m-p/2264892#M4532</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2025-12-17T10:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem to initialize Systick in FRDM-MCXA153 using peripherals config tool</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Problem-to-initialize-Systick-in-FRDM-MCXA153-using-peripherals/m-p/2264973#M4533</link>
      <description>&lt;P&gt;Hi Harry&lt;/P&gt;&lt;P&gt;Yes, CLOCK_FRO12MTrimConfig() function in&amp;nbsp;SDK v25.09 is OK, but the problem is that this SDK version doesn't have&amp;nbsp;kCPU_CLK_to_SYSTICK and kCLOCK_DivSYSTICK definitions.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2025 11:49:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Problem-to-initialize-Systick-in-FRDM-MCXA153-using-peripherals/m-p/2264973#M4533</guid>
      <dc:creator>zorrotz</dc:creator>
      <dc:date>2025-12-17T11:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem to initialize Systick in FRDM-MCXA153 using peripherals config tool</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Problem-to-initialize-Systick-in-FRDM-MCXA153-using-peripherals/m-p/2265780#M4541</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/59428"&gt;@zorrotz&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, i have checked the code.&lt;/P&gt;
&lt;P&gt;It is a bug.&lt;/P&gt;
&lt;P&gt;I will report it to our SDK team.&lt;/P&gt;
&lt;P&gt;If you want to use&amp;nbsp;kCPU_CLK_to_SYSTICK and&amp;nbsp;&lt;SPAN&gt;kCLOCK_DivSYSTICK.&lt;/SPAN&gt;&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="Harry_Zhang_0-1766042327334.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/370571iBB6BAEF02471336F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Harry_Zhang_0-1766042327334.png" alt="Harry_Zhang_0-1766042327334.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="Harry_Zhang_2-1766042465654.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/370573iB2765589F9902F1D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Harry_Zhang_2-1766042465654.png" alt="Harry_Zhang_2-1766042465654.png" /&gt;&lt;/span&gt;&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="Harry_Zhang_1-1766042338256.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/370572i405EC295B6ABDCAD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Harry_Zhang_1-1766042338256.png" alt="Harry_Zhang_1-1766042338256.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You need to add some code in fsl_clock.h&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Harry_Zhang_3-1766042710072.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/370574i22E81EFC9BD1CF58/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Harry_Zhang_3-1766042710072.png" alt="Harry_Zhang_3-1766042710072.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Harry_Zhang_4-1766042747585.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/370575i94E45AB45ABA1856/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Harry_Zhang_4-1766042747585.png" alt="Harry_Zhang_4-1766042747585.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this will help you.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;</description>
      <pubDate>Thu, 18 Dec 2025 07:26:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Problem-to-initialize-Systick-in-FRDM-MCXA153-using-peripherals/m-p/2265780#M4541</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2025-12-18T07:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem to initialize Systick in FRDM-MCXA153 using peripherals config tool</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Problem-to-initialize-Systick-in-FRDM-MCXA153-using-peripherals/m-p/2266133#M4543</link>
      <description>&lt;P&gt;Thank you Harry!&lt;/P&gt;&lt;P&gt;I will modify fsl_clock.h file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;</description>
      <pubDate>Thu, 18 Dec 2025 12:00:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Problem-to-initialize-Systick-in-FRDM-MCXA153-using-peripherals/m-p/2266133#M4543</guid>
      <dc:creator>zorrotz</dc:creator>
      <dc:date>2025-12-18T12:00:44Z</dc:date>
    </item>
  </channel>
</rss>

