<?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: KL24z Wake up from VLLS3 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377586#M19982</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. So even after I come out of VLLS3 and the processor is reset, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Cpu_OnLLSWakeUpINT(void) callback will never get called? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mike &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Jan 2015 19:30:21 GMT</pubDate>
    <dc:creator>mikeconover</dc:creator>
    <dc:date>2015-01-28T19:30:21Z</dc:date>
    <item>
      <title>KL24z Wake up from VLLS3</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377563#M19959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am able to put the KL24Z processor into deep sleep with no problems. However, I am having trouble waking up from deep sleep. I am trying to use the low power timer to wake up every minute from deep sleep. Below is my code to get into VLLS3. How do you wakeup from deep sleep??? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SMC_PMPROT = SMC_PMPROT_AVLLS_MASK;&lt;/P&gt;&lt;P&gt;SMC_PMCTRL &amp;amp;= ~SMC_PMCTRL_STOPM_MASK ;&lt;/P&gt;&lt;P&gt;SMC_PMCTRL |= SMC_PMCTRL_STOPM(0x4) ;&lt;/P&gt;&lt;P&gt;SMC_STOPCTRL = SMC_STOPCTRL_VLLSM(3);&lt;/P&gt;&lt;P&gt;SCB_SCR |= SCB_SCR_SLEEPDEEP_MASK;&lt;/P&gt;&lt;P&gt;asm("WFI");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 15:40:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377563#M19959</guid>
      <dc:creator>mikeconover</dc:creator>
      <dc:date>2015-01-26T15:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: KL24z Wake up from VLLS3</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377564#M19960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been reading through posts all day today trying to figure out how to do this. Is the below statement true??? :smileycry:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If you go into VLLSx mode, a wake up event will simple cause a reset of the device and the MQX application will simple start and run as if a Power On Reset occurred.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 23:11:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377564#M19960</guid>
      <dc:creator>mikeconover</dc:creator>
      <dc:date>2015-01-26T23:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: KL24z Wake up from VLLS3</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377565#M19961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only exit possibility from VLLSx is via a reset. The reset can be due to the RESET input or due to a LLWU source - either a LLWU pin or a LLWU module (such as the low power timer that you refer to).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means that if you don't just want the reset pin as wakeup source you need to program the LLWU source as is the case when waking from LLS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When waking from VLLS3 via a wakeup source this can be detected by the RCM_SRS0_WAKEUP bit in RCM_SRS0. Since the LLWU module state is held during a VLLS3 wakeup (via reset) the wakeup source (a pin or a module) is still pending in the LLWU module itself so you know what the source was and can react differently if you like.&lt;/P&gt;&lt;P&gt;Beware that some peripherals and I/Os are isolated from the normal RUN mode after such a wakeup and these need to be set back to their normal mode by acknowledging the isolation bit PMC_REGSC_ACKISO in PMC_REGSC (potentially after clearing any details, settings in the peripherals beforehand if needed).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The MQX application is an "example" and it presumably does the simplest thing and that is to behave as if it were a regular reset. This may be valid behavior in many projects too since, depending on the exact VLLSx mode that was woken from, most things need to be re-initialised again. However, as noted previously, the reason for teeh wake up can be determined and so can also control further execution details. [eg. if it was due to the low power timer you may want the system to perform some initialisation and sleep again, whereas if it were a 'full' reset or power up you may want to also perform additional actions such as initialising external devices, etc.].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is further information about the LLS and VLLSx mode differences and use of the wakeup modules at &lt;A href="http://www.utasker.com/kinetis/LLWU.html" title="http://www.utasker.com/kinetis/LLWU.html"&gt;µTasker LLWU Support&lt;/A&gt;&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;Kinetis: &lt;A href="http://www.utasker.com/kinetis.html" title="http://www.utasker.com/kinetis.html"&gt;µTasker Kinetis support&lt;/A&gt;&lt;/P&gt;&lt;P&gt;KL25: &lt;A href="http://www.utasker.com/kinetis/FRDM-KL25Z.html" title="http://www.utasker.com/kinetis/FRDM-KL25Z.html"&gt;µTasker Kinetis FRDM-KL25Z support&lt;/A&gt; / &lt;A href="http://www.utasker.com/kinetis/TWR-KL25Z48M.html" title="http://www.utasker.com/kinetis/TWR-KL25Z48M.html"&gt;µTasker Kinetis TWR-KL25Z48M support&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For the complete "out-of-the-box" Kinetis experience and faster time to market&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 01:30:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377565#M19961</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-01-27T01:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Re: KL24z Wake up from VLLS3</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377566#M19962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote the wake-up program from VLLS3 by TPTMR on FRDM-KL25Z baremetal environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_1422357148031299" jivemacro_uid="_1422357148031299"&gt;
&lt;P&gt;#define&amp;nbsp; LLWU_irq_no&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7
#define LPTMR_USE_LPOCLK&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1
#define LLWU_LPTMR_ME&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x01&lt;/P&gt;
&lt;P&gt;int main (void)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; DisableInterrupts;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; enable_irq(LLWU_irq_no);
&amp;nbsp;&amp;nbsp;&amp;nbsp; LLWU_ME = LLWU_LPTMR_ME;&amp;nbsp; //Set up more modules to wakeup up&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SIM_SCGC5 |= SIM_SCGC5_LPTMR_MASK;
 
&amp;nbsp;&amp;nbsp;&amp;nbsp; LPTMR0_PSR = ( LPTMR_PSR_PRESCALE(0) // 0000 is div 2
&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;&amp;nbsp; | LPTMR_PSR_PBYP_MASK&amp;nbsp; // LPO feeds directly to LPT
&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;&amp;nbsp; | LPTMR_PSR_PCS(LPTMR_USE_LPOCLK)) ; // use the choice of clock
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; LPTMR0_CMR = LPTMR_CMR_COMPARE(1000);&amp;nbsp; //Set compare value (100ms)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPTMR0_CSR =(&amp;nbsp; LPTMR_CSR_TCF_MASK&amp;nbsp; // Clear any pending interrupt
&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;&amp;nbsp; | LPTMR_CSR_TIE_MASK&amp;nbsp; // LPT interrupt enabled
&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;&amp;nbsp; | LPTMR_CSR_TPS(0)&amp;nbsp;&amp;nbsp;&amp;nbsp; //TMR pin select
&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;&amp;nbsp; |!LPTMR_CSR_TPP_MASK&amp;nbsp; //TMR Pin polarity
&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;&amp;nbsp; |!LPTMR_CSR_TFC_MASK&amp;nbsp; // Timer Free running counter is reset 
&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp; whenever TMR counter equals compare
&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;&amp;nbsp; |!LPTMR_CSR_TMS_MASK&amp;nbsp; //LPTMR0 as Timer
&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;&amp;nbsp; );&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPTMR0_CSR |= LPTMR_CSR_TEN_MASK;&amp;nbsp; //Turn on LPT and start counting
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SMC_PMPROT = SMC_PMPROT_AVLLS_MASK;&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SMC_PMCTRL &amp;amp;= ~SMC_PMCTRL_STOPM_MASK ;&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SMC_PMCTRL |= SMC_PMCTRL_STOPM(0x4) ;&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SMC_STOPCTRL = SMC_STOPCTRL_VLLSM(3);&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SCB_SCR |= SCB_SCR_SLEEPDEEP_MASK;&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; asm("WFI");&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The waking up initiates from the reset state. The following is the console message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;IMG alt="pastedImage_4.png" src="https://community.nxp.com/t5/image/serverpage/image-id/49568iDFA8D793F29E3631/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_4.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Yasuhiko Koumoto.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 13:14:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377566#M19962</guid>
      <dc:creator>yasuhikokoumoto</dc:creator>
      <dc:date>2020-11-02T13:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: KL24z Wake up from VLLS3</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377567#M19963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your reply. So, when you say the only exit for VLLSx is via a reset, that means the processor gets reset and all my variables are lost? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Mike&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 15:40:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377567#M19963</guid>
      <dc:creator>mikeconover</dc:creator>
      <dc:date>2015-01-27T15:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: KL24z Wake up from VLLS3</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377568#M19964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VLLS3 retains RAM content so the variables are not lost unless you actively reinitialise (overwrite) them.&lt;/P&gt;&lt;P&gt;You can therefore recognise that the processor has exited from low leakage power mode and recover such information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is more complicate is to continue from the original processor context since it means that most peripherals need to be reinitialised and the original processor context would need to be saved before entering VLLS3 mode and also be restored. It is possible but I don't think that this is the aim of the low power mode, but instead to be able to perform a minimal recovery of specific information and then basically re-initialise&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;Kinetis: &lt;A class="jive-link-external-small" data-content-finding="Community" href="http://www.utasker.com/kinetis.html" target="_blank"&gt;µTasker Kinetis support&lt;/A&gt;&lt;/P&gt;&lt;P&gt;KL25: &lt;A class="jive-link-external-small" data-content-finding="Community" href="http://www.utasker.com/kinetis/FRDM-KL25Z.html" target="_blank"&gt;µTasker Kinetis FRDM-KL25Z support&lt;/A&gt; / &lt;A class="jive-link-external-small" data-content-finding="Community" href="http://www.utasker.com/kinetis/TWR-KL25Z48M.html" target="_blank"&gt;µTasker Kinetis TWR-KL25Z48M support&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For the complete "out-of-the-box" Kinetis experience and faster time to market&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 15:49:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377568#M19964</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-01-27T15:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: KL24z Wake up from VLLS3</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377569#M19965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using MQX lite for your project? are you enabling the interrupt of the LLWU?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes you can use the Processor Expert method Cpu_SetOperationMode(DOM_STOP,NULL,NULL); to enter into VLLS3 mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the information,&lt;BR /&gt;Adrian Sanchez Cano&lt;BR /&gt;Technical Support Engineer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 16:11:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377569#M19965</guid>
      <dc:creator>adriancano</dc:creator>
      <dc:date>2015-01-27T16:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: KL24z Wake up from VLLS3</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377570#M19966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yasuhiko,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply with some code. So, in your code do you have an LLWU interrupt routine that gets called when the LPTMR expires? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 16:15:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377570#M19966</guid>
      <dc:creator>mikeconover</dc:creator>
      <dc:date>2015-01-27T16:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: KL24z Wake up from VLLS3</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377571#M19967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adrian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I am using MQX lite for my project. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I tried using &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Cpu_SetOperationMode(DOM_STOP,NULL,NULL); to put the processor into deep sleep, it seemed like it was never going into VLLS3 mode. I tried pretty much every different low power setting in processor expert and nothing seemed to help. The processor was always pulling a couple mA when it would go into sleep. The code in my first post is what I used to get around that. With that I am getting the power down to 6 to 7uA.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That being said, in processor expert I am enabling the LLWU. Does this only get enabled when using&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Cpu_SetOperationMode(DOM_STOP,NULL,NULL);??? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the other thread that I posted a few weeks ago. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/338531"&gt;low power mode for KL24z&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 16:22:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377571#M19967</guid>
      <dc:creator>mikeconover</dc:creator>
      <dc:date>2015-01-27T16:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: KL24z Wake up from VLLS3</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377572#M19968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the LPTMR0 expires it causes a reset and so there is no interrupt routine needed.&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;Kinetis: &lt;A class="jive-link-external-small" data-content-finding="Community" href="http://www.utasker.com/kinetis.html" target="_blank"&gt;µTasker Kinetis support&lt;/A&gt;&lt;/P&gt;&lt;P&gt;KL25: &lt;A class="jive-link-external-small" data-content-finding="Community" href="http://www.utasker.com/kinetis/FRDM-KL25Z.html" target="_blank"&gt;µTasker Kinetis FRDM-KL25Z support&lt;/A&gt; / &lt;A class="jive-link-external-small" data-content-finding="Community" href="http://www.utasker.com/kinetis/TWR-KL25Z48M.html" target="_blank"&gt;µTasker Kinetis TWR-KL25Z48M support&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For the complete "out-of-the-box" Kinetis experience and faster time to market&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 16:41:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377572#M19968</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-01-27T16:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Re: KL24z Wake up from VLLS3</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377573#M19969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the FRDM-KL25Z I have about 2uA current consumption in VLLS3 mode and can wake it from any LLWU pin or LLWU module (such as LPTMR), whereby the wakeup is via reset as discussed previously.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have a FRDM-KL25Z board you can load the attached binary to it and command any low power mode in the "administator" menu. It can wake from LLS to normal operation mode or from VLLS3 via reset by connecting J1-pin 9 to GND. This is the easiest way to test the operation but the same happens if I configure for LPTRM (after a fixed delay of course).&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;Kinetis: &lt;A class="jive-link-external-small" data-content-finding="Community" href="http://www.utasker.com/kinetis.html" target="_blank"&gt;µTasker Kinetis support&lt;/A&gt;&lt;/P&gt;&lt;P&gt;KL25: &lt;A class="jive-link-external-small" data-content-finding="Community" href="http://www.utasker.com/kinetis/FRDM-KL25Z.html" target="_blank"&gt;µTasker Kinetis FRDM-KL25Z support&lt;/A&gt; / &lt;A class="jive-link-external-small" data-content-finding="Community" href="http://www.utasker.com/kinetis/TWR-KL25Z48M.html" target="_blank"&gt;µTasker Kinetis TWR-KL25Z48M support&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For the complete "out-of-the-box" Kinetis experience and faster time to market&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 16:58:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377573#M19969</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-01-27T16:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Re: KL24z Wake up from VLLS3</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377574#M19970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code you posted above is the same that processor expert writes for the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Cpu_SetOperationMode(DOM_STOP,NULL,NULL) but if your code is working better for you you can use it instead. The method &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Cpu_SetOperationMode only clears the LLWU flags and set the appropriate registers to enter VLLS modes. The post in the MCUOnEclipse blog is really good an give you some hints and tips to have lower current.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I did a project to enter to VLLS2 mode and found some strange behavior of the LLWU when using MQX lite. I recommend you the next tests:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Ensure that the LLWU interrupt is enabled, this will create an event called Cpu_OnLLSWakeUpINT in the Events.c file. This method is a callback that is called when the LLWU interrupt is serviced. You can see the LLWU interrupt in the Cpu.c file with the name Cpu_INT_LLWInterrupt. You can see that the LLWU is being enabled in the PE_low_level_init in the Cpu.c file with something like this NVICISER0 |= NVIC_ISER_SETENA(&lt;EM&gt;IRQ number in hex&lt;/EM&gt;); &lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="llwu interrupt.png"&gt;&lt;IMG alt="llwu interrupt.png" src="https://community.nxp.com/t5/image/serverpage/image-id/49606iB5425AC0A3CC4287/image-size/large?v=v2&amp;amp;px=999" title="llwu interrupt.png" /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Write a code inside the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Cpu_OnLLSWakeUpINT callback to check if the LLWU interrupt is being services and know if the device is being waken up. When the reset occurs the LLWU ISR is the first think called&amp;nbsp; after the global interrupts are enabled. This is to check if the LLWU ISR is serviced. You can turn on a led there with something like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_1422378306942209" jivemacro_uid="_1422378306942209" modifiedtitle="true"&gt;
&lt;P&gt;SIM_SCGC5 |= SIM_SCGC5_PORTC_MASK;&lt;/P&gt;
&lt;P&gt;PORTC_PCR8 = PORT_PCR_MUX(0x01);&lt;/P&gt;
&lt;P&gt;GPIOC_PDDR |= 1&amp;lt;&amp;lt;8;&lt;/P&gt;
&lt;P&gt;GPIOC_PSOR |= 1&amp;lt;&amp;lt;8;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; You need to configure the clock because are not configured at this point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; :smileyalert: Remember that is you are debugging when entering VLLS mode the debug will be disconnected. Because of this the recommended procedure is to disconnect and connect again the board to ensure it is not trying to restart the&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; communication.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know your results.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this information can help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Adrian Sanchez Cano&lt;BR /&gt;Technical Support Engineer&lt;BR /&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>Mon, 02 Nov 2020 13:14:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377574#M19970</guid>
      <dc:creator>adriancano</dc:creator>
      <dc:date>2020-11-02T13:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: KL24z Wake up from VLLS3</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377575#M19971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regarding the my sample code, when enable_irq(&lt;SPAN style="color: #000000;"&gt;LLWU_irq_no) was executed, something was wrong. I should remove enable_irq(&lt;SPAN style="color: #000000;"&gt;LLWU_irq_no) because the cpu was hanged up after waked up. If I removed &lt;SPAN style="color: #000000;"&gt;enable_irq(&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;LLWU_irq_no) , the CPU repeated entering VLLS3 and exiting from it. Can anyone explan the bejavior?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Yasuhiko Koumoto.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 17:18:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377575#M19971</guid>
      <dc:creator>yasuhikokoumoto</dc:creator>
      <dc:date>2015-01-27T17:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Re: KL24z Wake up from VLLS3</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377576#M19972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the LLWU ISR you need to check the flags to know what was the source of the wake up. When a module, like the LPTMR, is used to wake up the device you need to erase the module flag with. You need to write something like this in the LLWU ISR:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_14223797111279819 jive_macro_code" jivemacro_uid="_14223797111279819" modifiedtitle="true"&gt;
&lt;P&gt;&amp;nbsp; if (LLWU_F3 &amp;amp; LLWU_F3_MWUF0_MASK) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //check if the LPTMR that is associetes with the Wake UP module 0 was the wake up source &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SIM_SCGC5 |= SIM_SCGC5_LPTMR_MASK;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPTMR0_CSR |=&amp;nbsp; LPTMR_CSR_TCF_MASK;&amp;nbsp;&amp;nbsp; // write 1 to TCF to clear the LPT timer compare flag&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPTMR0_CSR = ( LPTMR_CSR_TEN_MASK | LPTMR_CSR_TIE_MASK | LPTMR_CSR_TCF_MASK&amp;nbsp; );&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 17:29:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377576#M19972</guid>
      <dc:creator>adriancano</dc:creator>
      <dc:date>2015-01-27T17:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: KL24z Wake up from VLLS3</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377577#M19973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adrian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the advice but it was helpless. LLWU ISR seemed not to be called by my sample code. Therefore LLWU_F3 flag was not cleared, making entering VLLS3 mode failed after the 2nd time. My conclusion is that the enable_irq(LLWU_irq_no) had not been needed. If the enable_irq(LLWU_irq_no) would be added, the description to clear the LLWU_F3 flag which were mentioned in your post would be needed before entering VLLS3 mode.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Yasuhiko Koumoto.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 18:48:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377577#M19973</guid>
      <dc:creator>yasuhikokoumoto</dc:creator>
      <dc:date>2015-01-27T18:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: KL24z Wake up from VLLS3</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377578#M19974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hi Yiasuhiko&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;If you enter VLLS3 your interrupt handler will not be called.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;However the interrupt is pending after the processor exits reset. This means that the flag should be reset before enabling interrupts again otherwise it will be called then.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Also, don't forget that LLWU peripherals and I/O are isolated (still in LLWU mode) when the processor restarts and you need to set then back to run mode before they can be used normally again - see an overview of the most important details at &lt;A href="http://www.utasker.com/kinetis/LLWU.html" title="http://www.utasker.com/kinetis/LLWU.html"&gt;µTasker LLWU Support&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Mark&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kinetis: &lt;A class="jive-link-external-small" data-content-finding="Community" href="http://www.utasker.com/kinetis.html" target="_blank"&gt;µTasker Kinetis support&lt;/A&gt;&lt;/P&gt;&lt;P&gt;KL25: &lt;A class="jive-link-external-small" data-content-finding="Community" href="http://www.utasker.com/kinetis/FRDM-KL25Z.html" target="_blank"&gt;µTasker Kinetis FRDM-KL25Z support&lt;/A&gt; / &lt;A class="jive-link-external-small" data-content-finding="Community" href="http://www.utasker.com/kinetis/TWR-KL25Z48M.html" target="_blank"&gt;µTasker Kinetis TWR-KL25Z48M support&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For the complete "out-of-the-box" Kinetis experience and faster time to market&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 20:35:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377578#M19974</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-01-27T20:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: KL24z Wake up from VLLS3</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377579#M19975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to cleat LLWU_F3 flash and to clear NVIC interrupt pending are different things. LLWU_F3 flag would be cleared at the new LPTMR setting but then pending NVIC interrupt is not cleared. So if the LLWU interrupt was not enabled, we didn't care the NVIC interrupt pending. To wake up from LLVSx we only set LLWU_ME. To enable LLWU interrupt is not necessary. This is the result of my experiment by using FRDM-KL25Z.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, I cannot understand the following statement in the "VLLSx modes' paragraph of the link shown by you.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;"The isolated peripherals and I/Os are then acknowledged in the power management controller so that they are released back to their RUN modes. "&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What does the "then" mean?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Yasuhiko Koumoto.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 21:15:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377579#M19975</guid>
      <dc:creator>yasuhikokoumoto</dc:creator>
      <dc:date>2015-01-27T21:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: KL24z Wake up from VLLS3</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377580#M19976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hi Yiasuhiko&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The NVIC is disabled in VLLS modes and so is not involved, therefore its mask state is not important. Sources only need to be enabled/cleared in the LLWU module (for pins) or in the LLWU peripheral (LPTMR, CMP, RTC etc.)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;"The isolated peripherals and I/Os are then acknowledged in the power management controller so that they are released back to their RUN modes. "&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;The "then" means "after seeing that the wakeup was due to LLWU the isolation is release by &lt;EM&gt;subsequently.&lt;/EM&gt;.."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Practically it is not important to actually check the source if it is to always be cleared since the clearing mechanism simple doesn't do anything in the normal Reset case.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Mark&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kinetis: &lt;A class="jive-link-external-small" data-content-finding="Community" href="http://www.utasker.com/kinetis.html" target="_blank"&gt;µTasker Kinetis support&lt;/A&gt;&lt;/P&gt;&lt;P&gt;KL25: &lt;A class="jive-link-external-small" data-content-finding="Community" href="http://www.utasker.com/kinetis/FRDM-KL25Z.html" target="_blank"&gt;µTasker Kinetis FRDM-KL25Z support&lt;/A&gt; / &lt;A class="jive-link-external-small" data-content-finding="Community" href="http://www.utasker.com/kinetis/TWR-KL25Z48M.html" target="_blank"&gt;µTasker Kinetis TWR-KL25Z48M support&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For the complete "out-of-the-box" Kinetis experience and faster time to market&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 21:44:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377580#M19976</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-01-27T21:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: KL24z Wake up from VLLS3</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377581#M19977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adrian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. I went back and replaced the code in my first post with &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Cpu_SetOperationMode(DOM_STOP,NULL,NULL) and it seems to be working now. I am not sure what was going on in the past when I was using this command. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I made all the changes you suggested above and I am still not able to come out of VLLS3. :smileycry: I made sure that the LLWU interrupt is enabled. I wrote &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;code inside the &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Cpu_OnLLSWakeUpINT callback to check if the LLWU interrupt is being serviced. It doesn't look like it is though. I am toggling an LED in this callback function and never see it. It looks like something is happening when the low power timer expires though. After it expires, I see the processor start drawing 2mA of current, but nothing seems to be turning on and working. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;When you say I need to configure the clock because they are not configured at this point. Will Cpu_SetClockConfiguration(2); work or I need a different command to setup the clock. I put Cpu_SetClockConfiguration(2); in the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Cpu_OnLLSWakeUpINT callback. Is that correct or do I need to put it somewhere else??&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Yeah, I know that the debugger will get disconnected. I have tried getting out of VLLS3 well over 1000 times with no success. lol &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to give you a little more insight into my application. I am using clock configuration 2 as my normal running clock and I am blinking LED's and talking to serial ports and i2c ports and a bunch of other stuff. Then, I have a low power clock configuration that I set before going into VLLS3 mode. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2015 15:29:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377581#M19977</guid>
      <dc:creator>mikeconover</dc:creator>
      <dc:date>2015-01-28T15:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: KL24z Wake up from VLLS3</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377582#M19978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you say &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;the flag should be reset before enabling interrupts again otherwise it will be called then. Where should this be done? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2015 16:13:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL24z-Wake-up-from-VLLS3/m-p/377582#M19978</guid>
      <dc:creator>mikeconover</dc:creator>
      <dc:date>2015-01-28T16:13:40Z</dc:date>
    </item>
  </channel>
</rss>

