<?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: How to Keep RTC Active during Wake from VLLS3? in MCUXpresso SDK</title>
    <link>https://community.nxp.com/t5/MCUXpresso-SDK/How-to-Keep-RTC-Active-during-Wake-from-VLLS3/m-p/956514#M1733</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robin, that may be what I'm running into.&amp;nbsp; It is unclear though (at least to me) what the phrase "unless it was configured in RTC OSC" means.&amp;nbsp; I do have the RTC running during VLLS3 in order to keep accurate time.&amp;nbsp; But this device doesn't have the dedicated RTC OSC pins EXTAL32 and XTAL32.&amp;nbsp; So I am using the system OSC pins ETAL0 and XTAL0 with a 32.768Khz clock to drive the clock into the RTC module.&amp;nbsp; So does this mean I need to re-configure the clock or not?&amp;nbsp; Below is the clock configuration of the chip just before going to VLLS3.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Annotation 2019-06-25 085856.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/89727i4C28C7A6F9447A25/image-size/large?v=v2&amp;amp;px=999" role="button" title="Annotation 2019-06-25 085856.png" alt="Annotation 2019-06-25 085856.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I do need to re-configure the clock, doesn't that mean that the RTC is going to be slightly inaccurate as it briefly turns OFF during wake and then is re-enabled a (very) short time later.&amp;nbsp; But it doesn't take much to cause a significant error over multiple wakeup events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;James.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Jun 2019 13:05:45 GMT</pubDate>
    <dc:creator>james5</dc:creator>
    <dc:date>2019-06-25T13:05:45Z</dc:date>
    <item>
      <title>How to Keep RTC Active during Wake from VLLS3?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/How-to-Keep-RTC-Active-during-Wake-from-VLLS3/m-p/956512#M1731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a project targeting the MKL03Z32 that goes into deep sleep VLLS3 and wakes from LLWU_P4.&amp;nbsp; I want to keep accurate track of time, so the RTC unit is enabled during both wake and deep sleep.&amp;nbsp; This all seems to work as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only hiccup is that it seems that when the micro wakes from VLLS3 it turns of the RTC bit in SIM-&amp;gt;SCGC6 which turns off the clock to the RTC module.&amp;nbsp; As a result, the RTC stops.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I currently set a bit in the System File Register (which keeps state through this wake event) that is set once the RTC is configured the first time and then I manually turn on the RTC bit in SIM-&amp;gt;SCGC6 as one of the first things in the main loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This does function but the RTC is turned off for a small amount of time every time it wakes and thus my timing is accumulating error.&amp;nbsp; Is there a way to keep the RTC clock enabled during a wake event?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it matters, I'm using an external crystal as the source for the RTC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2019 14:35:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/How-to-Keep-RTC-Active-during-Wake-from-VLLS3/m-p/956512#M1731</guid>
      <dc:creator>james5</dc:creator>
      <dc:date>2019-06-21T14:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to Keep RTC Active during Wake from VLLS3?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/How-to-Keep-RTC-Active-during-Wake-from-VLLS3/m-p/956513#M1732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;According to the description of "2.5.6 Exiting VLLS3, VLLS2, VLLS1, or VLLS0" in &lt;A href="https://www.nxp.com/docs/en/application-note/AN4503.pdf"&gt;AN4503&lt;/A&gt;: &lt;BR /&gt;&lt;EM&gt;If the oscillator has been kept running in VLLS1,VLLS2, or VLLS3, it must be re-configured before ACKISO is written (unless it was configured in RTC OSC).&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Exiting VLLS3, VLLS2, VLLS1, or VLLS0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/89684iBB69454A3FBA95C0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Exiting VLLS3, VLLS2, VLLS1, or VLLS0.png" alt="Exiting VLLS3, VLLS2, VLLS1, or VLLS0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please check if it was caused by this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2019 07:08:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/How-to-Keep-RTC-Active-during-Wake-from-VLLS3/m-p/956513#M1732</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2019-06-25T07:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to Keep RTC Active during Wake from VLLS3?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/How-to-Keep-RTC-Active-during-Wake-from-VLLS3/m-p/956514#M1733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robin, that may be what I'm running into.&amp;nbsp; It is unclear though (at least to me) what the phrase "unless it was configured in RTC OSC" means.&amp;nbsp; I do have the RTC running during VLLS3 in order to keep accurate time.&amp;nbsp; But this device doesn't have the dedicated RTC OSC pins EXTAL32 and XTAL32.&amp;nbsp; So I am using the system OSC pins ETAL0 and XTAL0 with a 32.768Khz clock to drive the clock into the RTC module.&amp;nbsp; So does this mean I need to re-configure the clock or not?&amp;nbsp; Below is the clock configuration of the chip just before going to VLLS3.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Annotation 2019-06-25 085856.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/89727i4C28C7A6F9447A25/image-size/large?v=v2&amp;amp;px=999" role="button" title="Annotation 2019-06-25 085856.png" alt="Annotation 2019-06-25 085856.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I do need to re-configure the clock, doesn't that mean that the RTC is going to be slightly inaccurate as it briefly turns OFF during wake and then is re-enabled a (very) short time later.&amp;nbsp; But it doesn't take much to cause a significant error over multiple wakeup events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;James.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2019 13:05:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/How-to-Keep-RTC-Active-during-Wake-from-VLLS3/m-p/956514#M1733</guid>
      <dc:creator>james5</dc:creator>
      <dc:date>2019-06-25T13:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to Keep RTC Active during Wake from VLLS3?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/How-to-Keep-RTC-Active-during-Wake-from-VLLS3/m-p/956515#M1734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To anyone else who stumbles across this, I have confirmed with NXP that the RTC clock is gated on wake from VLLS3 (maybe from other states) to RUN for exactly 125ms (4096 cycles of 32.76Khz clock).&amp;nbsp; So to keep more accurate time over multiple wake up events you need to add one to the RTC seconds register once every 8 times the micro goes through this wake up sequence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;James.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2019 16:53:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/How-to-Keep-RTC-Active-during-Wake-from-VLLS3/m-p/956515#M1734</guid>
      <dc:creator>james5</dc:creator>
      <dc:date>2019-07-23T16:53:26Z</dc:date>
    </item>
  </channel>
</rss>

