<?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>Kinetis Microcontrollers中的主题 Re: Kinetis K22F Systick read issue</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K22F-Systick-read-issue/m-p/647497#M39327</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response and trying the code.&amp;nbsp; After your verification, I did further investigation into the system and found another process through interrupts resets the value of SYST_CVR causing the problem I saw.&amp;nbsp; When that interference is removed, the systick works fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Sep 2016 14:34:26 GMT</pubDate>
    <dc:creator>nalinsilva</dc:creator>
    <dc:date>2016-09-27T14:34:26Z</dc:date>
    <item>
      <title>Kinetis K22F Systick read issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K22F-Systick-read-issue/m-p/647495#M39325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to read Systick timer of MK22FN512VLL12 but found that the timer doesn't go below about 0x00D00000.&amp;nbsp; My code is as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Initialization&lt;/P&gt;&lt;P&gt;SYST_CSR = 0x5u;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; // enable systick&lt;BR /&gt;SYST_RVR = 0x00FFFFFFu;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // set reload to maximum 24 bit value&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SYST_CVR = 0 ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Reset SYST_CVR to 0 and force reload&lt;BR /&gt;&amp;nbsp;val = 0x009E57FF;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //val is uint32_t&lt;BR /&gt;&amp;nbsp;while(SYST_CVR &amp;gt; val);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With above value in val, the program is stuck forever in the while loop.&amp;nbsp; If I increase val to 0x00FF05FF, program doesn't get stuck at while loop.&amp;nbsp; Using IAR compiler.&amp;nbsp; Also, tried same code on MK22FN512VLH12 but same behavior.&amp;nbsp; Running core clock at 64MHz and the MCU is in normal running mode always.&amp;nbsp; With above SYST_CSR value, no interrupts occur with Systick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know how to resolve this issue and let SYST_CVR reach 0 as mentioned in documentation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2016 18:38:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K22F-Systick-read-issue/m-p/647495#M39325</guid>
      <dc:creator>nalinsilva</dc:creator>
      <dc:date>2016-09-23T18:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis K22F Systick read issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K22F-Systick-read-issue/m-p/647496#M39326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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/6753i3B5C176748A6141F/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;&lt;/P&gt;&lt;P&gt;I have tested on my FRDM-K22F, as you see, there is not any problem.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;XiangJun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2016 08:07:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K22F-Systick-read-issue/m-p/647496#M39326</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2016-09-26T08:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis K22F Systick read issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K22F-Systick-read-issue/m-p/647497#M39327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response and trying the code.&amp;nbsp; After your verification, I did further investigation into the system and found another process through interrupts resets the value of SYST_CVR causing the problem I saw.&amp;nbsp; When that interference is removed, the systick works fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 14:34:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K22F-Systick-read-issue/m-p/647497#M39327</guid>
      <dc:creator>nalinsilva</dc:creator>
      <dc:date>2016-09-27T14:34:26Z</dc:date>
    </item>
  </channel>
</rss>

