<?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中的主题 Can't enter VLLS0 on KL03</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-t-enter-VLLS0-on-KL03/m-p/486741#M29985</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having trouble entering VLLS0 on a KL03. The symptoms are that the processor executes WFI, but doesn't go into sleep. If I have a debugger attached, it lands me in the reset vector ("No source available for "___isr_vector() at 0x0""). Without a debugger, power consumption remains as before (1.44mA).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the exact code sequence I'm using:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P&gt;&amp;nbsp; SMC-&amp;gt;PMPROT = SMC_PMPROT_AVLP_MASK | SMC_PMPROT_AVLLS_MASK; // not actually needed, startup code initializes PMPROT to 0x22&lt;/P&gt;&lt;P&gt;&amp;nbsp; SMC-&amp;gt;PMCTRL &amp;amp;= ~SMC_PMCTRL_STOPM_MASK;&lt;/P&gt;&lt;P&gt;&amp;nbsp; SMC-&amp;gt;PMCTRL |= SMC_PMCTRL_STOPM(4);&lt;/P&gt;&lt;P&gt;&amp;nbsp; SMC-&amp;gt;STOPCTRL = SMC_STOPCTRL_VLLSM(0);&lt;/P&gt;&lt;P&gt;&amp;nbsp; dummyread = SMC-&amp;gt;STOPCTRL;&lt;/P&gt;&lt;P&gt;&amp;nbsp; SCB-&amp;gt;SCR |= SCB_SCR_SLEEPDEEP_Msk;&lt;/P&gt;&lt;P&gt;&amp;nbsp; __WFI();&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could the lack of a pullup on the RESET pin have something to do with this? (I am not 100% certain that this pullup isn't required)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attached a complete KL03 project that should do nothing but enter VLLS0 and never wake up.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is much appreciated.&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-337429"&gt;KL03-Test.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Dec 2015 20:38:07 GMT</pubDate>
    <dc:creator>jrychter</dc:creator>
    <dc:date>2015-12-16T20:38:07Z</dc:date>
    <item>
      <title>Can't enter VLLS0 on KL03</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-t-enter-VLLS0-on-KL03/m-p/486741#M29985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having trouble entering VLLS0 on a KL03. The symptoms are that the processor executes WFI, but doesn't go into sleep. If I have a debugger attached, it lands me in the reset vector ("No source available for "___isr_vector() at 0x0""). Without a debugger, power consumption remains as before (1.44mA).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the exact code sequence I'm using:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P&gt;&amp;nbsp; SMC-&amp;gt;PMPROT = SMC_PMPROT_AVLP_MASK | SMC_PMPROT_AVLLS_MASK; // not actually needed, startup code initializes PMPROT to 0x22&lt;/P&gt;&lt;P&gt;&amp;nbsp; SMC-&amp;gt;PMCTRL &amp;amp;= ~SMC_PMCTRL_STOPM_MASK;&lt;/P&gt;&lt;P&gt;&amp;nbsp; SMC-&amp;gt;PMCTRL |= SMC_PMCTRL_STOPM(4);&lt;/P&gt;&lt;P&gt;&amp;nbsp; SMC-&amp;gt;STOPCTRL = SMC_STOPCTRL_VLLSM(0);&lt;/P&gt;&lt;P&gt;&amp;nbsp; dummyread = SMC-&amp;gt;STOPCTRL;&lt;/P&gt;&lt;P&gt;&amp;nbsp; SCB-&amp;gt;SCR |= SCB_SCR_SLEEPDEEP_Msk;&lt;/P&gt;&lt;P&gt;&amp;nbsp; __WFI();&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could the lack of a pullup on the RESET pin have something to do with this? (I am not 100% certain that this pullup isn't required)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attached a complete KL03 project that should do nothing but enter VLLS0 and never wake up.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is much appreciated.&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-337429"&gt;KL03-Test.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 20:38:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-t-enter-VLLS0-on-KL03/m-p/486741#M29985</guid>
      <dc:creator>jrychter</dc:creator>
      <dc:date>2015-12-16T20:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Can't enter VLLS0 on KL03</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-t-enter-VLLS0-on-KL03/m-p/486742#M29986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found the answer in a different thread: &lt;A href="https://community.nxp.com/message/498968"&gt;Problems putting KL03 into VLPS and reducing power consumption&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As it turns out, the KL03 needs an errata fix (it always pays to find and read the errata for your particular chip and mask) because of&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.000000pt; font-family: 'HelveticaLTStd'; font-weight: bold;"&gt;e8068: RTC: Fail to enter low power mode if RTC time invalid flag&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.000000pt; font-family: 'HelveticaLTStd'; font-weight: bold;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.000000pt; font-family: 'HelveticaLTStd'; font-weight: bold;"&gt;(TIF) is not cleared after POR &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This additional code needs to be run before entering low power modes:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp; // Errata 8068 fix&lt;/P&gt;&lt;P&gt;&amp;nbsp; 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;/P&gt;&lt;P&gt;&amp;nbsp; RTC-&amp;gt;TSR = 0x00; // dummy write to RTC TSR per errata 8068&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; SIM-&amp;gt;SCGC6 &amp;amp;= ~SIM_SCGC6_RTC_MASK; // disable clock to RTC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2015 21:32:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-t-enter-VLLS0-on-KL03/m-p/486742#M29986</guid>
      <dc:creator>jrychter</dc:creator>
      <dc:date>2015-12-17T21:32:52Z</dc:date>
    </item>
  </channel>
</rss>

