<?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 MKL03 wakes immediately from VLLS3,no wake up source is enabled in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL03-wakes-immediately-from-VLLS3-no-wake-up-source-is-enabled/m-p/677021#M41644</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;kind people.&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm developing a very simple application using the MKL03, similar to others that i developed with MKL05,without&amp;nbsp;any of this&amp;nbsp;problems.&lt;/P&gt;&lt;P&gt;The problem is about VLLS3 mode.To make it&amp;nbsp;very simple end evident i reduced the job that the micro has to do to an almost useless task:&lt;/P&gt;&lt;P&gt;After POR and initialization i blink a LED for 2 secs,then i go to sleep in VLLS3,i wanto to stay in that state indefinitely.If the uC would wake from VLLS3 mode, it&amp;nbsp;would be from reset&amp;nbsp;,so to repeat the LED blink,but this has not to happen,having all the wake up sources disabled.&lt;/P&gt;&lt;P&gt;What happens is,instead, that &amp;nbsp;the uC wakes up&amp;nbsp;immediately after&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;SMC_PMCTRL |= SMC_PMCTRL_STOPM(0x3);
 dummyread = SMC_PMCTRL;
 __asm("WFI");‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I&amp;nbsp;can verify&amp;nbsp;that it was a reset from VLLS3 with this simple&amp;nbsp;check,after &lt;SPAN style="color: #0000ff;"&gt;PE_low_level_init()&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;wake_reason&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;SMC_PMCTRL &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt; SMC_PMCTRL_STOPM_MASK&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; VLLS&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt; 
&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;SMC_STOPCTRL &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt; SMC_STOPCTRL_VLLSM_MASK&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; VLLS_3&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp; wake_reason&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;LLWU_F1&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;wake_reason &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;LLWU_F3&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;wake_reason&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;LLWU_ME&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;wake_reason&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;LLWU_FILT1&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;wake_reason&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;8&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍
&lt;SPAN class="comment token"&gt;//notice that the definition file contains LLWU_FILT2,but it looks not existing,&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;//despite the reference manual,trying to read it leads to an Hard fault&lt;/SPAN&gt;
 &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍
&lt;SPAN class="token function"&gt;Pulses_PTA3&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;wake_reason&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;then i generate n° wake_reason pulses that i can freeze on the oscilloscope,so to recognize at least in wich register the wake event was marked&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I always read 2 pulses,wake_reason==2,indicating that it was actually a wake up from VLLS3 mode,but none of the LLWU registers contains a bit=1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;In&amp;nbsp;the reference manual i read that the other possible sources are NMI pin and RESET pin&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I disabled the NMI in&amp;nbsp;startup_MKL03Z4.S,see last row(&lt;A href="https://community.nxp.com/thread/351942" rel="nofollow noopener noreferrer" target="_blank"&gt;NMI disable K02F with KDS&lt;/A&gt;&amp;nbsp;thanks Jorge Gonzales), because that and lot of the usual settings are not available in the CPU component for this processor.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;/* Flash Configuration */
 .section .FlashConfig, "a"
 .long 0xFFFFFFFF
 .long 0xFFFFFFFF
 .long 0xFFFFFFFF
 .long 0xFFFF3BFE‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;The reset pin is constantly at high level.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I verified that the&amp;nbsp;Allow Very-Low-Leakage Stop Mode AVLLS was correctly set.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Despite this precaution the uC is not able to stay in VLLS3,why?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Diego&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Milan,Italy&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 May 2017 21:26:50 GMT</pubDate>
    <dc:creator>diegocolombo</dc:creator>
    <dc:date>2017-05-11T21:26:50Z</dc:date>
    <item>
      <title>MKL03 wakes immediately from VLLS3,no wake up source is enabled</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL03-wakes-immediately-from-VLLS3-no-wake-up-source-is-enabled/m-p/677021#M41644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;kind people.&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm developing a very simple application using the MKL03, similar to others that i developed with MKL05,without&amp;nbsp;any of this&amp;nbsp;problems.&lt;/P&gt;&lt;P&gt;The problem is about VLLS3 mode.To make it&amp;nbsp;very simple end evident i reduced the job that the micro has to do to an almost useless task:&lt;/P&gt;&lt;P&gt;After POR and initialization i blink a LED for 2 secs,then i go to sleep in VLLS3,i wanto to stay in that state indefinitely.If the uC would wake from VLLS3 mode, it&amp;nbsp;would be from reset&amp;nbsp;,so to repeat the LED blink,but this has not to happen,having all the wake up sources disabled.&lt;/P&gt;&lt;P&gt;What happens is,instead, that &amp;nbsp;the uC wakes up&amp;nbsp;immediately after&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;SMC_PMCTRL |= SMC_PMCTRL_STOPM(0x3);
 dummyread = SMC_PMCTRL;
 __asm("WFI");‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I&amp;nbsp;can verify&amp;nbsp;that it was a reset from VLLS3 with this simple&amp;nbsp;check,after &lt;SPAN style="color: #0000ff;"&gt;PE_low_level_init()&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;wake_reason&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;SMC_PMCTRL &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt; SMC_PMCTRL_STOPM_MASK&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; VLLS&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt; 
&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;SMC_STOPCTRL &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt; SMC_STOPCTRL_VLLSM_MASK&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; VLLS_3&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp; wake_reason&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;LLWU_F1&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;wake_reason &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;LLWU_F3&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;wake_reason&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;LLWU_ME&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;wake_reason&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;LLWU_FILT1&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;wake_reason&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;8&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍
&lt;SPAN class="comment token"&gt;//notice that the definition file contains LLWU_FILT2,but it looks not existing,&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;//despite the reference manual,trying to read it leads to an Hard fault&lt;/SPAN&gt;
 &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍
&lt;SPAN class="token function"&gt;Pulses_PTA3&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;wake_reason&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;then i generate n° wake_reason pulses that i can freeze on the oscilloscope,so to recognize at least in wich register the wake event was marked&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I always read 2 pulses,wake_reason==2,indicating that it was actually a wake up from VLLS3 mode,but none of the LLWU registers contains a bit=1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;In&amp;nbsp;the reference manual i read that the other possible sources are NMI pin and RESET pin&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I disabled the NMI in&amp;nbsp;startup_MKL03Z4.S,see last row(&lt;A href="https://community.nxp.com/thread/351942" rel="nofollow noopener noreferrer" target="_blank"&gt;NMI disable K02F with KDS&lt;/A&gt;&amp;nbsp;thanks Jorge Gonzales), because that and lot of the usual settings are not available in the CPU component for this processor.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;/* Flash Configuration */
 .section .FlashConfig, "a"
 .long 0xFFFFFFFF
 .long 0xFFFFFFFF
 .long 0xFFFFFFFF
 .long 0xFFFF3BFE‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;The reset pin is constantly at high level.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I verified that the&amp;nbsp;Allow Very-Low-Leakage Stop Mode AVLLS was correctly set.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Despite this precaution the uC is not able to stay in VLLS3,why?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Diego&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Milan,Italy&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 May 2017 21:26:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL03-wakes-immediately-from-VLLS3-no-wake-up-source-is-enabled/m-p/677021#M41644</guid>
      <dc:creator>diegocolombo</dc:creator>
      <dc:date>2017-05-11T21:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: MKL03 wakes immediately from VLLS3,no wake up source is enabled</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL03-wakes-immediately-from-VLLS3-no-wake-up-source-is-enabled/m-p/677022#M41645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks to&amp;nbsp;&lt;A href="https://community.nxp.com/thread/447684" rel="nofollow noopener noreferrer" target="_blank"&gt;How can I know what is setting the STOPA bit on SMC_PMCTRL?&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even in my case the problems whas caused by&lt;/P&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.800000190734863px;"&gt;&lt;A data-saferedirecturl="https://www.google.com/url?hl=it&amp;amp;q=http://www.nxp.com/assets/documents/data/en/errata/KL03Z_1N86K.pdf&amp;amp;source=gmail&amp;amp;ust=1495101892814000&amp;amp;usg=AFQjCNF8MmLs_lSU7U3AcbHOyRy6dqMdAQ" href="http://www.nxp.com/assets/documents/data/en/errata/KL03Z_1N86K.pdf" rel="nofollow noopener noreferrer" style="color: #1155cc;" target="_blank"&gt;http://www.nxp.com/assets/documents/data/en/errata/KL03Z_1N86K.pdf&lt;/A&gt;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.800000190734863px;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.800000190734863px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;e8068&lt;/STRONG&gt;: RTC: Fail to enter low power mode if RTC time invalid flag (TIF) is not cleared&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff;"&gt;after POR&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff;"&gt;Errata type: Errata&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff;"&gt;Description: After POR, time invalid flag of RTC is set, RTC_SR[TIF]=1. If this flag is not cleared, the MCU&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff;"&gt;fails to enter low power mode.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff;"&gt;Workaround: Clear time invalid flag of RTC before entering low power mode. This bit is cleared by writing the&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff;"&gt;RTC_TSR register when the time counter is disabled.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;My fault was that i looked in the errata searching specific strings as "VLLS" and i have considered "low power mode" something not properly ineherent to very low leakage stop modes.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;PS this row was senseless becaus this register does not contain infos about wake up reason,it just enables the wake up.Sorry.&lt;/SPAN&gt;&lt;PRE class="" style="background-color: #f5f2f0; border: 0px; font-size: 15px; margin: 0.5em 0px; padding: 1em 1em 1em 3.8em;"&gt;&lt;CODE style="border: 0px; font-weight: inherit; font-size: 15px;"&gt;&lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit; font-size: 15px;"&gt;if&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 15px;"&gt;(&lt;/SPAN&gt;LLWU_ME&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 15px;"&gt;)&lt;/SPAN&gt;wake_reason&lt;SPAN class="" style="color: #a67f59; background-color: rgba(255, 255, 255, 0.498039); border: 0px; font-weight: inherit; font-size: 15px;"&gt;+&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a67f59; background-color: rgba(255, 255, 255, 0.498039); border: 0px; font-weight: inherit; font-size: 15px;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #990000; border: 0px; font-weight: inherit; font-size: 15px;"&gt;5&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 15px;"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2017 10:20:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL03-wakes-immediately-from-VLLS3-no-wake-up-source-is-enabled/m-p/677022#M41645</guid>
      <dc:creator>diegocolombo</dc:creator>
      <dc:date>2017-05-17T10:20:31Z</dc:date>
    </item>
  </channel>
</rss>

