<?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: RTC does not advance time counter in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-does-not-advance-time-counter/m-p/767627#M46685</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's what was wrong. The RTC oscillator was not running. Thanks Mark!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Mar 2018 23:54:07 GMT</pubDate>
    <dc:creator>mscovel</dc:creator>
    <dc:date>2018-03-19T23:54:07Z</dc:date>
    <item>
      <title>RTC does not advance time counter</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-does-not-advance-time-counter/m-p/767624#M46682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The RTC Time Seconds Register (TSR) and Timer Prescaler Register (TPR) do not increment while the K65 is running/single stepping (nor powered off with a battery connected).&lt;/P&gt;&lt;P&gt;The tower does not have this problem. Both TSR and TPR run (constantly increment) and when powered off/on the TSR is updated to reflect the elapsed time.&lt;/P&gt;&lt;P&gt;Furthermore, the KSDK example&amp;nbsp;rtc_example_twrk65f180m sets an RTC alarm and waits for it to happen. This works on the tower and not on our board.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm thinking there is some K65 errata that Freescale/NXP don't know about yet.&lt;/P&gt;&lt;P&gt;Could this be related to MCG clock speed?&lt;/P&gt;&lt;P&gt;Has anybody seen this problem or does anyone have any idea how to fix it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Mar 2018 00:38:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-does-not-advance-time-counter/m-p/767624#M46682</guid>
      <dc:creator>mscovel</dc:creator>
      <dc:date>2018-03-18T00:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: RTC does not advance time counter</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-does-not-advance-time-counter/m-p/767625#M46683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check your 32kHz crystal on your own HW - without this oscillating the time will never increment (as in your case).&lt;BR /&gt;If this is not the cause, check that the RTC oscillator intialisation has not been missed somehow; ie. setting RTC_CR_OSCE bit in RTC_CR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Kinetis: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;BR /&gt;Kinetis K66:&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FTWR-K65F180M.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/TWR-K65F180M.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FFRDM-K66F.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/FRDM-K66F.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FTEENSY_3.6.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/TEENSY_3.6.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Free Open Source solution: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2FuTasker%2FuTasker-Kinetis" rel="nofollow" target="_blank"&gt;https://github.com/uTasker/uTasker-Kinetis&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Working project in 15 minutes video: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fyoutu.be%2FK8ScSgpgQ6M" rel="nofollow" target="_blank"&gt;https://youtu.be/K8ScSgpgQ6M&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For better, faster, cheaper product developments consider the uTasker developer's version, professional Kinetis support, one-on-one training and complete fast-track project solutions to set you apart from the herd : &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fsupport.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/support.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Mar 2018 13:29:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-does-not-advance-time-counter/m-p/767625#M46683</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2018-03-18T13:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: RTC does not advance time counter</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-does-not-advance-time-counter/m-p/767626#M46684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That’s good info Mark. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mark Scovel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Mar 2018 13:34:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-does-not-advance-time-counter/m-p/767626#M46684</guid>
      <dc:creator>mscovel</dc:creator>
      <dc:date>2018-03-18T13:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: RTC does not advance time counter</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-does-not-advance-time-counter/m-p/767627#M46685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's what was wrong. The RTC oscillator was not running. Thanks Mark!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2018 23:54:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-does-not-advance-time-counter/m-p/767627#M46685</guid>
      <dc:creator>mscovel</dc:creator>
      <dc:date>2018-03-19T23:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: RTC does not advance time counter</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-does-not-advance-time-counter/m-p/767628#M46686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had the same problem with a custom K81 board.&amp;nbsp; The RTC did not run with any new MCUXpresso project.&amp;nbsp; &amp;nbsp;But it did run with some example code.&amp;nbsp; On investigation I found that the watchdog setup in the demo checked and set the RTC CR OSCE bit, because it needed the RTC Time Alarm. The side-effect was that the RTC ran beautifully...&amp;nbsp; &amp;nbsp;until I disabled the watchdog.&amp;nbsp; To preserve sanity I set the OSCE bit right after the RTC_Init&lt;/P&gt;&lt;PRE&gt; rtc_config_t rtcConfig;
 RTC_GetDefaultConfig(&amp;amp;rtcConfig);
 RTC_Init(RTC, &amp;amp;rtcConfig);
 RTC-&amp;gt;CR |= RTC_CR_OSCE_MASK; // Enable Oscillator
 RTC_StartTimer(RTC);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2018 00:43:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-does-not-advance-time-counter/m-p/767628#M46686</guid>
      <dc:creator>deniscollis</dc:creator>
      <dc:date>2018-06-14T00:43:39Z</dc:date>
    </item>
  </channel>
</rss>

