<?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: FRDM-KL25Z not responding to VLLSx wakeup sources? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KL25Z-not-responding-to-VLLSx-wakeup-sources/m-p/227219#M4600</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so I discovered the two things that were the root of my issue that were not entirely intuitive to me at first, so hopefully this post helps others too.&amp;nbsp; I was originally circling around the LLWU setup code (llwu_configure()) and the NVIC setup code, and all of that code was working fine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The two things I had to do were:&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt; 1) I had to add/enable the following code in my sysinit routine: (This was the most crucial part and &lt;EM&gt;must&lt;/EM&gt; be added *before* initializing the PLL clock)&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="_jivemacro_uid_13716785463841215 jive_text_macro jive_macro_code" jivemacro_uid="_13716785463841215"&gt;
&lt;P&gt;// Release hold with ACKISO:&amp;nbsp; Only has an effect if recovering from VLLS1, VLLS2, or VLLS3&lt;/P&gt;
&lt;P&gt;// if ACKISO is set you must clear ackiso before calling pll_init &lt;/P&gt;
&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; or pll init hangs waiting for OSC to initialize&lt;/P&gt;
&lt;P&gt;// if osc enabled in low power modes - enable it first before ack&lt;/P&gt;
&lt;P&gt;// if I/O needs to be maintained without glitches enable outputs and modules first before ack.&lt;/P&gt;
&lt;P&gt;if (PMC_REGSC &amp;amp;&amp;nbsp; PMC_REGSC_ACKISO_MASK)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PMC_REGSC |= PMC_REGSC_ACKISO_MASK;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2) I had to keep the debug connection active.&amp;nbsp; Otherwise, the only way I could wakeup from VLLSx was through run mode.&amp;nbsp; I.e., stop the debugger, unplug the OpenSDA usb cable and replug it back. &lt;/STRONG&gt; &lt;STRONG&gt;To keep the debug connection active, here are the steps I followed, for those who may be interested:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[CodeWarrior]&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Go into the debug configuration....&lt;/LI&gt;&lt;LI&gt;Under the CodeWarrior Download --&amp;gt; [Your Project] FLASH&lt;/LI&gt;&lt;LI&gt;Next to the [Your Project]_FLASH_OpenSDA connection dropdown box, click Edit...&lt;/LI&gt;&lt;LI&gt;Click on the Advanced tab&lt;/LI&gt;&lt;LI&gt;Most likely, the default is "Terminate the debug session(s)".&amp;nbsp; Change it to "Try to reconnect" and specify a desired timeout, if any.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="4757_4757.png"&gt;&lt;IMG alt="4757_4757.png" src="https://community.nxp.com/t5/image/serverpage/image-id/119499i5B636CD97F644E27/image-size/large?v=v2&amp;amp;px=999" title="4757_4757.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[IAR]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; [Not sure how to do this same kind of thing in IAR...]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Nov 2020 12:59:09 GMT</pubDate>
    <dc:creator>admin</dc:creator>
    <dc:date>2020-11-02T12:59:09Z</dc:date>
    <item>
      <title>FRDM-KL25Z not responding to VLLSx wakeup sources?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KL25Z-not-responding-to-VLLSx-wakeup-sources/m-p/227216#M4597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've searched the forums and checked various application notes already, yet I'm struggling to exit the VLLSx mode when I am using an external pin as the wakeup source.&amp;nbsp; According to AN4503.pdf:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"For LLS, VLLS3, VLLS2, VLLS1, and VLLS0 the wake-up events are limited to the enabled LLWU wake-up pins and&lt;/P&gt;&lt;P&gt;modules. The pin can be a wake-up source as long as the pin is enabled as a digital source in the Pin Control Register."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm doing this yet I fail to exit the VLLSx mode.&amp;nbsp; I have tried the example "Low-power demo" in the kl25sc with not 100% success.&amp;nbsp; I can enter the VLLSx modes no problem.&amp;nbsp; It's only after I attempt to use the associated LLWU pin (say, PTC3 / LLWU7 ) that I have absolutely no response.&amp;nbsp; I have also tried other LLWUx pins without success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an example, please let me know if you can:&lt;/P&gt;&lt;P&gt;1) Enter VLLS1 when an I/O pin goes low (say PTD6 / LLWU15 or PTC3 / LLWU7).&lt;/P&gt;&lt;P&gt;2) Exit VLLS1 when that same I/O pin goes high&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This request is for the FRDM-KL25Z Rev. D board.&lt;/P&gt;&lt;P&gt;Help is appreciated! Thanks in advance,&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jun 2013 00:50:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KL25Z-not-responding-to-VLLSx-wakeup-sources/m-p/227216#M4597</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2013-06-19T00:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-KL25Z not responding to VLLSx wakeup sources?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KL25Z-not-responding-to-VLLSx-wakeup-sources/m-p/227217#M4598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think your attempt is polling the pin state from a GPIO like &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;PTD6 / LLWU15 or PTC3 / LLWU7&lt;/SPAN&gt;, if the state is low, enable the external input pin with rising edge detection and enter vlls1 mode after that, and when this pin goes high , the rising edge detected on this pin would bring the device out of vlls1 mode.right? Please kindly help to clarify!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jun 2013 05:41:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KL25Z-not-responding-to-VLLSx-wakeup-sources/m-p/227217#M4598</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2013-06-19T05:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-KL25Z not responding to VLLSx wakeup sources?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KL25Z-not-responding-to-VLLSx-wakeup-sources/m-p/227218#M4599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been able to use a falling edge pin wakeup on PTC3 to wakeup from VLLS1.&amp;nbsp; Could you post your LLWU setup code?&amp;nbsp; Maybe your missing one little small thing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jun 2013 20:19:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KL25Z-not-responding-to-VLLSx-wakeup-sources/m-p/227218#M4599</guid>
      <dc:creator>chris_brown</dc:creator>
      <dc:date>2013-06-19T20:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-KL25Z not responding to VLLSx wakeup sources?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KL25Z-not-responding-to-VLLSx-wakeup-sources/m-p/227219#M4600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so I discovered the two things that were the root of my issue that were not entirely intuitive to me at first, so hopefully this post helps others too.&amp;nbsp; I was originally circling around the LLWU setup code (llwu_configure()) and the NVIC setup code, and all of that code was working fine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The two things I had to do were:&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt; 1) I had to add/enable the following code in my sysinit routine: (This was the most crucial part and &lt;EM&gt;must&lt;/EM&gt; be added *before* initializing the PLL clock)&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="_jivemacro_uid_13716785463841215 jive_text_macro jive_macro_code" jivemacro_uid="_13716785463841215"&gt;
&lt;P&gt;// Release hold with ACKISO:&amp;nbsp; Only has an effect if recovering from VLLS1, VLLS2, or VLLS3&lt;/P&gt;
&lt;P&gt;// if ACKISO is set you must clear ackiso before calling pll_init &lt;/P&gt;
&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; or pll init hangs waiting for OSC to initialize&lt;/P&gt;
&lt;P&gt;// if osc enabled in low power modes - enable it first before ack&lt;/P&gt;
&lt;P&gt;// if I/O needs to be maintained without glitches enable outputs and modules first before ack.&lt;/P&gt;
&lt;P&gt;if (PMC_REGSC &amp;amp;&amp;nbsp; PMC_REGSC_ACKISO_MASK)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PMC_REGSC |= PMC_REGSC_ACKISO_MASK;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2) I had to keep the debug connection active.&amp;nbsp; Otherwise, the only way I could wakeup from VLLSx was through run mode.&amp;nbsp; I.e., stop the debugger, unplug the OpenSDA usb cable and replug it back. &lt;/STRONG&gt; &lt;STRONG&gt;To keep the debug connection active, here are the steps I followed, for those who may be interested:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[CodeWarrior]&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Go into the debug configuration....&lt;/LI&gt;&lt;LI&gt;Under the CodeWarrior Download --&amp;gt; [Your Project] FLASH&lt;/LI&gt;&lt;LI&gt;Next to the [Your Project]_FLASH_OpenSDA connection dropdown box, click Edit...&lt;/LI&gt;&lt;LI&gt;Click on the Advanced tab&lt;/LI&gt;&lt;LI&gt;Most likely, the default is "Terminate the debug session(s)".&amp;nbsp; Change it to "Try to reconnect" and specify a desired timeout, if any.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="4757_4757.png"&gt;&lt;IMG alt="4757_4757.png" src="https://community.nxp.com/t5/image/serverpage/image-id/119499i5B636CD97F644E27/image-size/large?v=v2&amp;amp;px=999" title="4757_4757.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[IAR]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; [Not sure how to do this same kind of thing in IAR...]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 12:59:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KL25Z-not-responding-to-VLLSx-wakeup-sources/m-p/227219#M4600</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2020-11-02T12:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-KL25Z not responding to VLLSx wakeup sources?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KL25Z-not-responding-to-VLLSx-wakeup-sources/m-p/227220#M4601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx. Richard. &lt;/P&gt;&lt;P&gt;The post seems to answer what I always want to know about ACKISO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if the device is in VLLS mode, then the perihperals and io pads are in a latched state.&lt;/P&gt;&lt;P&gt;We should release this hold state with "Writing one to this bit when it is set releases the IO pads and certain peripherals"(from Reference Manual).&lt;/P&gt;&lt;P&gt;Now the device will return IOs or "certain peripherals" back to normal run mode state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the sample code said, perhaps there will cause the hang result when we do pll_init without this release.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2013 11:20:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KL25Z-not-responding-to-VLLSx-wakeup-sources/m-p/227220#M4601</guid>
      <dc:creator>allen_zhan</dc:creator>
      <dc:date>2013-07-31T11:20:29Z</dc:date>
    </item>
  </channel>
</rss>

