<?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: Kl25z doesn't wake up from LLS in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Kl25z-doesn-t-wake-up-from-LLS/m-p/507774#M5108</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rocco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made a quick review on your files and could notice that you are masking the LLWU interrupt, but if you check KL25's reference manual, in section 15.1.2.1 LLS mode, there is a note that specifies about LLWU interrupt must not be masked by the interrupt controller to avoid a scenario where the system does not fully exit stop mode on an LLS recovery, so i think that is your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition, i am also attaching a basic project where RTC, GPIO and Power Mode are included, in this case, i can wake up from LLS either using external pin (PTD6) and/or RTC Alarm interrupt, i hope this can help you as guidance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested this project and it works well to demostrate that RTC can wake MCU from LLS mode (please notice that i am not using an external 32.768kHz RTC clock and accuracy is not achieved in this simple project, but it serves as guidance to understand the process to wake-up by using external and internal modules).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information about RTC clocking in FRDM-KL25Z i can suggest to watch this post: &lt;A href="https://community.nxp.com/message/397323"&gt;RTC in KL devices - should it be possible to use OSC32KCLK?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;If you have another question please let me know it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jan 2016 02:23:58 GMT</pubDate>
    <dc:creator>isaacavila</dc:creator>
    <dc:date>2016-01-26T02:23:58Z</dc:date>
    <item>
      <title>Kl25z doesn't wake up from LLS</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Kl25z-doesn-t-wake-up-from-LLS/m-p/507773#M5107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm doing an IoT project with the Kl25z freedom board, and I have a problem switching between power modes. I want to put the kl25z into LLS mode and wake it up with a pulse counting event from the LPTMR or a RTC clock alarm. I manage to put the kl25z to LLS but then it never wakes up. I tested the RTC and LPTMR ISRs and they work fine while the MCU is in Run mode. I'm using KDS and KDSK v1.2. I'm sourcing the RTC_CLKIN pin with a 32.768kHz lab function generator oscillator. Here goes the pictures of my PE configuration:&lt;/P&gt;&lt;P&gt;clock config:&lt;span class="lia-inline-image-display-wrapper" image-alt="130784_130784.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120993i907327EF894525D7/image-size/large?v=v2&amp;amp;px=999" role="button" title="130784_130784.png" alt="130784_130784.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="lls1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/54189i4BC0CDCCA57638A5/image-size/large?v=v2&amp;amp;px=999" role="button" title="lls1.png" alt="lls1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SIM config:&lt;span class="lia-inline-image-display-wrapper" image-alt="130785_130785.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120994i598A5C0B705E7FBD/image-size/large?v=v2&amp;amp;px=999" role="button" title="130785_130785.png" alt="130785_130785.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="lls2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/54232iC86B5872A0884664/image-size/large?v=v2&amp;amp;px=999" role="button" title="lls2.png" alt="lls2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SMC init config &lt;span class="lia-inline-image-display-wrapper" image-alt="130786_130786.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120995iCE470FAEF5B103D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="130786_130786.png" alt="130786_130786.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="lls3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/54253i55FC7232FA16B527/image-size/large?v=v2&amp;amp;px=999" role="button" title="lls3.png" alt="lls3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LLWU init config &lt;span class="lia-inline-image-display-wrapper" image-alt="130787_130787.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120996iE8EB3C28E80D1132/image-size/large?v=v2&amp;amp;px=999" role="button" title="130787_130787.png" alt="130787_130787.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="lls4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/54273iD4320FD667B38B68/image-size/large?v=v2&amp;amp;px=999" role="button" title="lls4.png" alt="lls4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also I attach my main.c and event.c files.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have read a bunch of app notes and the mcu reference manual but they didn't help solving my problem.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rocco&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338604"&gt;sources.rar&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 15:45:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Kl25z-doesn-t-wake-up-from-LLS/m-p/507773#M5107</guid>
      <dc:creator>roccorondinella</dc:creator>
      <dc:date>2016-01-21T15:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Kl25z doesn't wake up from LLS</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Kl25z-doesn-t-wake-up-from-LLS/m-p/507774#M5108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rocco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made a quick review on your files and could notice that you are masking the LLWU interrupt, but if you check KL25's reference manual, in section 15.1.2.1 LLS mode, there is a note that specifies about LLWU interrupt must not be masked by the interrupt controller to avoid a scenario where the system does not fully exit stop mode on an LLS recovery, so i think that is your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition, i am also attaching a basic project where RTC, GPIO and Power Mode are included, in this case, i can wake up from LLS either using external pin (PTD6) and/or RTC Alarm interrupt, i hope this can help you as guidance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested this project and it works well to demostrate that RTC can wake MCU from LLS mode (please notice that i am not using an external 32.768kHz RTC clock and accuracy is not achieved in this simple project, but it serves as guidance to understand the process to wake-up by using external and internal modules).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information about RTC clocking in FRDM-KL25Z i can suggest to watch this post: &lt;A href="https://community.nxp.com/message/397323"&gt;RTC in KL devices - should it be possible to use OSC32KCLK?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;If you have another question please let me know it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 02:23:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Kl25z-doesn-t-wake-up-from-LLS/m-p/507774#M5108</guid>
      <dc:creator>isaacavila</dc:creator>
      <dc:date>2016-01-26T02:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Kl25z doesn't wake up from LLS</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Kl25z-doesn-t-wake-up-from-LLS/m-p/507775#M5109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Issac! I tried your example and worked, I think the problem was the masked LLWU interruptions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 14:21:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Kl25z-doesn-t-wake-up-from-LLS/m-p/507775#M5109</guid>
      <dc:creator>roccorondinella</dc:creator>
      <dc:date>2016-01-27T14:21:10Z</dc:date>
    </item>
  </channel>
</rss>

