<?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: Systick timer problem of KEA8 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Systick-timer-problem-of-KEA8/m-p/1092669#M57729</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alexis，&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; You understand correctly！But I only find this problem using KEA8 in FEI mode.I think FEE mode works correctly because I did not find the similar problem before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards！&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jul 2020 17:15:20 GMT</pubDate>
    <dc:creator>623619261</dc:creator>
    <dc:date>2020-07-30T17:15:20Z</dc:date>
    <item>
      <title>Systick timer problem of KEA8</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Systick-timer-problem-of-KEA8/m-p/1092667#M57727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a strange problem with kea8.It&amp;nbsp;&lt;/P&gt;&lt;UL style="list-style-type: square;"&gt;&lt;LI&gt;My core clock is FEI mode ,48Mhz,and bus clock is 24Mhz.And configure code as below:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;ICS_C2 = 0x20;&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; ICS_C1 = 0x04;&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; while ((ICS_S &amp;amp; ICS_S_LOCK_MASK) == 0);&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; SIM_CLKDIV = 0x01100000;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; ICS_C2 = 0x00;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL style="list-style-type: square;"&gt;&lt;LI&gt;I use systick to make a 1ms interrupt.&lt;SPAN&gt;And configure code as below:&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt; /*!Comment:Set the systick timer as 1ms.*/&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; SYST_RVR = 48000u;&lt;/STRONG&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;STRONG&gt; /*!Comment:set systick source clock.*/&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; SYST_CSR |= (1 &amp;lt;&amp;lt; 2);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/*!Comment:Enable systick.*/&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; SYST_CSR |= (1 &amp;lt;&amp;lt; 0); &lt;/STRONG&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;STRONG&gt; /*!Comment:Enable interrupt.*/&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; SYST_CSR |= (1 &amp;lt;&amp;lt; 1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;void SysTick_Handler(void)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;{ &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;STRONG&gt;/*!Comment:Catch the first time entering interrupt.*/&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; GPIOA_PTOR |= (1 &amp;lt;&amp;lt; 13u);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL style="list-style-type: square;"&gt;&lt;LI&gt;The GPIO is correctly configured.When I power on the device ,It delay about 120ms to enter the first interrupt handle function "&lt;STRONG&gt;SysTick_Handler&lt;/STRONG&gt;".If I use PIT module instead of systick,the delay time will decreace to 20~30ms.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;I want to fix the delay time of systick timer?&lt;/EM&gt;&lt;/STRONG&gt;I use other chip like kea64 FEE mode with systick timer will not have this problem,it delay 20~30ms,too.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;I want to know the &lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;minimal time to initialize clock FEI and FEE mode(KEA8 KEA64) .&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2020 15:46:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Systick-timer-problem-of-KEA8/m-p/1092667#M57727</guid>
      <dc:creator>623619261</dc:creator>
      <dc:date>2020-07-27T15:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Systick timer problem of KEA8</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Systick-timer-problem-of-KEA8/m-p/1092668#M57728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Chari Zhou,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if I understand correctly, you're presenting a problem of a delay present in the systick that is not present if you use other timers like the LPIT but this only happens when you use the internal oscillator but with the external one doesn't happen in the KEA64, am I correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this also happen using the FEE mode in the KEA8 or only with the FEI?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2020 22:16:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Systick-timer-problem-of-KEA8/m-p/1092668#M57728</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-07-29T22:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Systick timer problem of KEA8</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Systick-timer-problem-of-KEA8/m-p/1092669#M57729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alexis，&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; You understand correctly！But I only find this problem using KEA8 in FEI mode.I think FEE mode works correctly because I did not find the similar problem before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards！&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2020 17:15:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Systick-timer-problem-of-KEA8/m-p/1092669#M57729</guid>
      <dc:creator>623619261</dc:creator>
      <dc:date>2020-07-30T17:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Systick timer problem of KEA8</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Systick-timer-problem-of-KEA8/m-p/1092670#M57730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Charl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you let me know how are you measuring this time? And also, could you try enabling the PIT and the Systick at the same time and check if the same delay appears?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2020 21:12:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Systick-timer-problem-of-KEA8/m-p/1092670#M57730</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-07-31T21:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: Systick timer problem of KEA8</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Systick-timer-problem-of-KEA8/m-p/1092671#M57731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alexis，&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Can you let me know how are you measuring this time?&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;I do this by measuring the GPIO.I set PTB4 at the end of initialize code and toggle PTB4 in the systick timer interrupt handle function.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;2.&amp;nbsp;And also, could you try enabling the PIT and the Systick at the same time and check if the same delay appears?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;OK，I will try this on work day.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards！&lt;/P&gt;&lt;P&gt;Charl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2020 22:01:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Systick-timer-problem-of-KEA8/m-p/1092671#M57731</guid>
      <dc:creator>623619261</dc:creator>
      <dc:date>2020-07-31T22:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Systick timer problem of KEA8</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Systick-timer-problem-of-KEA8/m-p/1092672#M57732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Hello Alexis，&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;UL style="list-style-type: square;"&gt;&lt;LI style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;STRONG&gt;And also, could you try enabling the PIT and the Systick at the same time and check if the same delay appears?&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Only the systick timer has this problem！&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Best Regards！&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Charl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2020 02:04:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Systick-timer-problem-of-KEA8/m-p/1092672#M57732</guid>
      <dc:creator>623619261</dc:creator>
      <dc:date>2020-08-03T02:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Systick timer problem of KEA8</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Systick-timer-problem-of-KEA8/m-p/1092673#M57733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Charl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to replicate this in the TRK-KEA8 but I couldn't do it, in my test the signals are shifted by some microseconds, this is the signals that I capture and as you see there isn't any perceptive delay:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/109741i6978DADE492877C5/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The delay is around 13 us between the two signals:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/109782i9B7A84F65FF8CBCF/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;You can check my code below. This is using the S32 Design Studio IDE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2020 23:29:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Systick-timer-problem-of-KEA8/m-p/1092673#M57733</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-08-06T23:29:28Z</dc:date>
    </item>
  </channel>
</rss>

