<?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>Kinetis Microcontrollers中的主题 Re: Why KL03 is not going into VLPW mode using Processor Expert?</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-KL03-is-not-going-into-VLPW-mode-using-Processor-Expert/m-p/724604#M44348</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In any of the WAIT modes (using wif) the processor code is frozen so can't do anything. This means that there is no way to stay in the WAIT mode if there is anything that the processor needs to be able to do - the idea is that the processor stays in the WAIT mode whenever it doesn't need to actually need to work and then transitions to a RUN mode when there is something to do (due to a pending interrupt). &lt;EM&gt;It does its work as quickly as possibly and re-enters the WAIT mode again&lt;/EM&gt;. All uTasker projects perform this as standard since there is no disadvantage in operation (as there can be in lower leakage modes).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that uTasker works with KDS so there is nothing new to be learned. It is pure register level code so would be what you are looking for. It is also strange that PE users always invest a large amount of time to get to a point where things are working but they still don't actually understand the code that they are using due to the fact that it is being generated for them. Also they tend to get stuck when PE doesn't support something because actual experience and understanding is still missing.&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;BR /&gt;&lt;EM&gt;uTasker developer and supporter (+5'000 hours experience on +60 Kinetis derivatives in +80 product developments)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&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;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Apr 2018 16:16:01 GMT</pubDate>
    <dc:creator>mjbcswitzerland</dc:creator>
    <dc:date>2018-04-13T16:16:01Z</dc:date>
    <item>
      <title>Why KL03 is not going into VLPW mode using Processor Expert?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-KL03-is-not-going-into-VLPW-mode-using-Processor-Expert/m-p/724601#M44345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Hi, I am a newbie in KL03. The objective of my code is to run in VLPR and VLPW depending on an external signal. In both modes the LPTMR, ADC and the LPUART should be fully functional. I have checked the power demo of KL03 in which you are able to select among different power modes and the wake up source, everything works fine. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Using the KDS and Processor Expert I tried to configure the two modes of operation (VLPR and VLPW) and 1 type of callback, and even if I ask the PE to initialize the system in VLPW, it initializes in VLPR and is not able to get into the VLPW with the instruction&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN&gt;POWER_SYS_SetMode(kPowerManagerVlpw, PowerManagerPolicyAgreement);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;While debugging, when I run this SetMode instruction, I see that in fsl_power_manager.c the variable &lt;EM&gt;mode&lt;/EM&gt; is not set to &lt;EM&gt;kPowerManagerVlpw&lt;/EM&gt; but to &lt;EM&gt;kPowerManagerVlpr&lt;/EM&gt;. I force &lt;EM&gt;mode&lt;/EM&gt; to be &lt;EM&gt;kPowerManagerVlpw&lt;/EM&gt; in the debugger, and it works for a while. The KL03 executes the code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;case kPowerManagerVlpw:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; halModeConfig.powerModeName = kPowerModeVlpw;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and in fsl_smc_hal.c it executes the code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #3f7f5f;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;case kPowerModeVlpw: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #3f7f5f;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* Clear the SLEEPDEEP bit to disable deep sleep mode - enter wait mode*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SCB-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #0000c0;"&gt;SCR&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; &amp;amp;= ~SCB_SCR_SLEEPDEEP_Msk;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Until it gets to wfi. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;What should I do to avoid setting the mode to kPowerManagerVlpw using the debugger (which is not realistic)?&lt;/SPAN&gt; Running in VLPR, I use the following instruction to get to VLPW:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN&gt;// Errata 8068 fix&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN&gt;SIM-&amp;gt;SCGC6 |=SIM_SCGC6_RTC_MASK;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;// enable clock to RTC&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN&gt;RTC-&amp;gt;TSR = 0x00; // dummy write to RTC TSR per errata 8068&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN&gt;SIM-&amp;gt;SCGC6 &amp;amp;= ~SIM_SCGC6_RTC_MASK; // disable clock to RTC&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN&gt;ret_power=POWER_SYS_SetMode(kPowerManagerVlpw, kPowerManagerPolicyAgreement);&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;After searching for this in the NXP Community, I decided to manage the transitions between power modes with the registers. The following is the code that I adapted from NXP community sources:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #7f0055; font-size: 10.0pt;"&gt;void&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; &lt;STRONG&gt;goToVLPW&lt;/STRONG&gt;(){&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #7f0055; font-size: 10.0pt;"&gt;int&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; a;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #7f0055; font-size: 10.0pt;"&gt;int&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; clk;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; update_clock(CLOCK_VLPR);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;CLOCK_SYS_GetFreq(&lt;/SPAN&gt;&lt;EM style="color: #0000c0; font-size: 10.0pt;"&gt;kCoreClock&lt;/EM&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;, &amp;amp;freq);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;gpioEnableWakeUp();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #3f7f5f;"&gt;// &lt;SPAN style="text-decoration: underline;"&gt;Errata&lt;/SPAN&gt;&lt;SPAN&gt; 8068 fix: &lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2019" data-containertype="14" data-objectid="350259" data-objecttype="1" href="https://community.nxp.com/thread/350259"&gt;https://community.nxp.com/thread/350259&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SIM-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #0000c0;"&gt;SCGC6&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; |=SIM_SCGC6_RTC_MASK;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #3f7f5f;"&gt;// enable clock to RTC&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RTC-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #0000c0;"&gt;TSR&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; = 0x00; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #3f7f5f;"&gt;// dummy write to RTC TSR per &lt;SPAN style="text-decoration: underline;"&gt;errata&lt;/SPAN&gt; 8068&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SIM-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #0000c0;"&gt;SCGC6&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; &amp;amp;= ~SIM_SCGC6_RTC_MASK; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #3f7f5f;"&gt;// disable clock to RTC&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; power_mode_status&amp;nbsp; = SMC_PMSTAT; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #3f7f5f;"&gt;//&lt;SPAN style="text-decoration: underline;"&gt;Pag&lt;/SPAN&gt;. 206 RefMan&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #7f0055; font-size: 10.0pt;"&gt;if&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; (power_mode_status == 4){&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&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;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #3f7f5f;"&gt;//&lt;SPAN style="text-decoration: underline;"&gt;It is in VLPR&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SCB_SCR &amp;amp;=~ SCB_SCR_SLEEPDEEP_MASK; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #3f7f5f;"&gt;//SLEEPDEEP cleared; &lt;SPAN style="text-decoration: underline;"&gt;Pag&lt;/SPAN&gt;. 213 RefMan&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SCB_SCR |= (SCB_SCR_SLEEPONEXIT_MASK); &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #3f7f5f;"&gt;//Enter Sleep-On-Exit mode set&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dummyread = SCB_SCR;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&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;/SPAN&gt;&lt;STRONG style="color: #7f0055; font-size: 10.0pt;"&gt;void&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;)dummyread;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&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;/SPAN&gt;&lt;STRONG style="color: #7f0055; font-size: 10.0pt;"&gt;__asm&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #2a00ff;"&gt;"WFI"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;);&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #3f7f5f;"&gt;//Enter VLPW&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; power_mode_status&amp;nbsp; = SMC_PMSTAT; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #3f7f5f;"&gt;//&lt;SPAN style="text-decoration: underline;"&gt;Pag&lt;/SPAN&gt;. 206 RefMan&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How is it possible to work with the ADC, LPTMR and LPUART when operating in VLPW? Is there a way to check if I am really entering into that mode (without measuring the current consumption in my FRDM-KL03 board)? My interrupt will be based on a GPIO input. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I really appreciate any help you can provide. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2018 16:52:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-KL03-is-not-going-into-VLPW-mode-using-Processor-Expert/m-p/724601#M44345</guid>
      <dc:creator>andymurray</dc:creator>
      <dc:date>2018-04-11T16:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Why KL03 is not going into VLPW mode using Processor Expert?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-KL03-is-not-going-into-VLPW-mode-using-Processor-Expert/m-p/724602#M44346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Turn on an LED each time you leave low power mode and turn it off each time you enter it - this allows the state to be seen or measured (when switching fast in and out).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the Open Source uTasker project for KL03 for powerful low power support (see links and videos below).&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 KL02/KL03/KL05:&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-KL02Z.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/FRDM-KL02Z.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-KL03Z.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/FRDM-KL03Z.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-KL05Z.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/FRDM-KL05Z.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Low power mode with UARTs: &lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2019" data-containertype="14" data-objectid="327741" data-objecttype="1" href="https://community.nxp.com/thread/327741#421247"&gt;https://community.nxp.com/message/421247#421247&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Low power and LLWU: &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%2FLLWU.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/LLWU.html&lt;/A&gt;&lt;BR /&gt;Low power videos:&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=https%3A%2F%2Fyoutu.be%2FkWNlsAoMly4" rel="nofollow" target="_blank"&gt;https://youtu.be/kWNlsAoMly4&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=https%3A%2F%2Fyoutu.be%2FiZEMRiDmHzw" rel="nofollow" target="_blank"&gt;https://youtu.be/iZEMRiDmHzw&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=https%3A%2F%2Fyoutu.be%2Fv4UnfcDiaE4" rel="nofollow" target="_blank"&gt;https://youtu.be/v4UnfcDiaE4&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>Wed, 11 Apr 2018 19:06:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-KL03-is-not-going-into-VLPW-mode-using-Processor-Expert/m-p/724602#M44346</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2018-04-11T19:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Why KL03 is not going into VLPW mode using Processor Expert?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-KL03-is-not-going-into-VLPW-mode-using-Processor-Expert/m-p/724603#M44347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Mark,&lt;BR /&gt;thanks for your suggestion. However, I think my problem is a bit more difficult than that:&lt;BR /&gt;1) Processor Expert's configuration and later the instruction SetMode are not able to get the KL03 to VLPW (view my original message). &lt;BR /&gt;2) When I get to force the VLPW mode, something is automatically generating my interrupt, therefore I am not able to keep the KL03 in VLPW, and it goes back directly to the VLPR mode (This may be a problem of my code).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really appreciate your comment and the links to uTasker and Youtube. However, as someone once answered you, I have invested a lot of energy understanding the KDS and Processor Expert for me to start another tool. In fact, I have decided to leave PE expert aside and start doing some more basic coding with registers, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have or know any code example that is always working in VLPW mode? Is it possible to keep the KL03 in only this mode without any transition to VLPR or Run?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2018 15:19:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-KL03-is-not-going-into-VLPW-mode-using-Processor-Expert/m-p/724603#M44347</guid>
      <dc:creator>andymurray</dc:creator>
      <dc:date>2018-04-13T15:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Why KL03 is not going into VLPW mode using Processor Expert?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-KL03-is-not-going-into-VLPW-mode-using-Processor-Expert/m-p/724604#M44348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In any of the WAIT modes (using wif) the processor code is frozen so can't do anything. This means that there is no way to stay in the WAIT mode if there is anything that the processor needs to be able to do - the idea is that the processor stays in the WAIT mode whenever it doesn't need to actually need to work and then transitions to a RUN mode when there is something to do (due to a pending interrupt). &lt;EM&gt;It does its work as quickly as possibly and re-enters the WAIT mode again&lt;/EM&gt;. All uTasker projects perform this as standard since there is no disadvantage in operation (as there can be in lower leakage modes).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that uTasker works with KDS so there is nothing new to be learned. It is pure register level code so would be what you are looking for. It is also strange that PE users always invest a large amount of time to get to a point where things are working but they still don't actually understand the code that they are using due to the fact that it is being generated for them. Also they tend to get stuck when PE doesn't support something because actual experience and understanding is still missing.&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;BR /&gt;&lt;EM&gt;uTasker developer and supporter (+5'000 hours experience on +60 Kinetis derivatives in +80 product developments)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&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;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2018 16:16:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-KL03-is-not-going-into-VLPW-mode-using-Processor-Expert/m-p/724604#M44348</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2018-04-13T16:16:01Z</dc:date>
    </item>
  </channel>
</rss>

