<?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: KL17 - VLLS1 pin wake-up (LLWU)</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL17-VLLS1-pin-wake-up-LLWU/m-p/1410515#M62381</link>
    <description>&lt;P&gt;Hi Pablo,&lt;/P&gt;&lt;P&gt;Typo error I mean KL17 SDK. Sorry about that.&lt;/P&gt;&lt;P&gt;By the way, I kind of found the issue. The LLWU wakeup pin flag is not being cleared. because the&amp;nbsp;&lt;EM&gt;&lt;FONT size="2"&gt;LLWU_HANDLER(void)&amp;nbsp;&lt;/FONT&gt;&lt;/EM&gt;is not being called after VLLS1 exit.&lt;/P&gt;&lt;P&gt;If I add&amp;nbsp;&lt;EM&gt;&lt;FONT size="2"&gt;LLWU_ClearExternalWakeupPinFlag(LLWU, 14);&amp;nbsp;&lt;/FONT&gt;&lt;/EM&gt;in the main() it works. The Idd goes to the expected levels.&amp;nbsp;Any reason why the that IRQ handler is not being called?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Andre&lt;/P&gt;</description>
    <pubDate>Tue, 08 Feb 2022 20:43:07 GMT</pubDate>
    <dc:creator>AndreVB</dc:creator>
    <dc:date>2022-02-08T20:43:07Z</dc:date>
    <item>
      <title>KL17 - VLLS1 pin wake-up (LLWU)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL17-VLLS1-pin-wake-up-LLWU/m-p/1396297#M62207</link>
      <description>&lt;P&gt;&lt;FONT size="2"&gt;Hello my friends!&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;I have an application using the KL17 (coded with MCUXpresso) in which I excute a piece of code and put the part in VLPS for 1s. This is my &lt;U&gt;ON Mode.&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;By pressing two buttons when wake up from VLPS, my device enters in VLLS3. Consumption is 2uA. I have a RTC also working. I use LLWU pin to wake up from VLLS3. This is my &lt;U&gt;OFF Mode&lt;/U&gt;. Everthing is perfect so far.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;However, I tried VLLS1. Parts enters in VLLS1, consumption is 1.6uA. The part exits VLLS1 but now I have an extra constant 2mA current. The application apparently enters in VLPS (I know that because it puts the LCD in power down after a few seconds idle). Well, at least the LPMTR is doing its job. But maybe the part no longer enters in VLPS anymore?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;If I put the part in VLLS1 again&amp;nbsp;consumption goes to 1.6uA. But it wakes up again with the extra ~2mA.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;Main() related code&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;/* Power related. */&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;SMC_SetPowerModeProtection(SMC, kSMC_AllowPowerModeAll);&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;if (kRCM_SourceWakeup &amp;amp; RCM_GetPreviousResetSources(RCM)) /* Wakeup from VLLS. */&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;PMC_ClearPeriphIOIsolationFlag(PMC);&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT size="2"&gt;BOARD_InitBootPins();&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2"&gt;BOARD_BootClockRUN();&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;To enter VLLS1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT size="2"&gt;{&amp;nbsp;&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2"&gt;LLWU_SetExternalWakeupPinMode(LLWU, 14, kLLWU_ExternalPinFallingEdge);&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2"&gt;EnableIRQ(LLWU_IRQn); /* pin is configured on Pins Tool&amp;nbsp; */&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT size="2"&gt;smc_power_mode_vlls_config_t vlls_config;&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2"&gt;vlls_config.subMode = kSMC_StopSub1;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT size="2"&gt;SMC_PreEnterStopModes();&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2"&gt;SMC_SetPowerModeVlls(SMC, &amp;amp;vlls_config);&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2"&gt;SMC_PostExitStopModes();&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2"&gt;}&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;LLWU Handler&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT size="2"&gt;void LLWU_HANDLER(void)&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2"&gt;{&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2"&gt;LLWU_ClearExternalWakeupPinFlag(LLWU, 14);&amp;nbsp;&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2"&gt;}&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;In summary, everething works fine if I replace&amp;nbsp;&lt;EM&gt;&lt;FONT size="2"&gt;vlls_config.subMode = kSMC_StopSub1&amp;nbsp; &amp;nbsp;by&amp;nbsp; vlls_config.subMode = kSMC_StopSub3&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Any clue of what can be happening? By the way, the issue happens in VLLS0, 1, and 2.&amp;nbsp;To build the code, I use examples from the KL25 SDK. I do appreciate any help.&lt;/P&gt;&lt;P&gt;Thank you,&amp;nbsp;Andre VB.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 22:12:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL17-VLLS1-pin-wake-up-LLWU/m-p/1396297#M62207</guid>
      <dc:creator>AndreVB</dc:creator>
      <dc:date>2022-01-07T22:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: KL17 - VLLS1 pin wake-up (LLWU)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL17-VLLS1-pin-wake-up-LLWU/m-p/1401138#M62261</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/189151"&gt;@AndreVB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to apologize for the delay. I got sick suddenly and couldn't write a response to you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hoping you find well, I would like to share with you an application note that might be helpful to clarify your concern about VLLS0, 1 and 2: &lt;A href="https://www.nxp.com/docs/en/application-note/AN4470.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/application-note/AN4470.pdf&lt;/A&gt;. The AN contains important information about VLLS and some charts with valued info.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hoping this AN can be helpful, please let me know if you have some other concerns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sincerely&lt;/P&gt;
&lt;P&gt;Pablo Avalos.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 21:19:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL17-VLLS1-pin-wake-up-LLWU/m-p/1401138#M62261</guid>
      <dc:creator>PabloAvalos</dc:creator>
      <dc:date>2022-01-18T21:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: KL17 - VLLS1 pin wake-up (LLWU)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL17-VLLS1-pin-wake-up-LLWU/m-p/1409236#M62354</link>
      <description>&lt;P&gt;Hello Pablo&lt;/P&gt;&lt;P&gt;I went through the document but I coundn´t find any anything related to solve my problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found a post (&lt;A href="https://community.nxp.com/t5/Kinetis-Microcontrollers/VLPS-mode-started-from-debugger-draws-2mAs-Even-if-debugger-is/m-p/332412)" target="_blank"&gt;https://community.nxp.com/t5/Kinetis-Microcontrollers/VLPS-mode-started-from-debugger-draws-2mAs-Even-if-debugger-is/m-p/332412)&lt;/A&gt;.&amp;nbsp;It looks similar to my problem but it happes in VLPS.&lt;/P&gt;&lt;P&gt;The code (above) I am using was based on KL02´s SDK example.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any clue on what´s going on?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Andre&lt;/P&gt;</description>
      <pubDate>Sat, 05 Feb 2022 20:21:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL17-VLLS1-pin-wake-up-LLWU/m-p/1409236#M62354</guid>
      <dc:creator>AndreVB</dc:creator>
      <dc:date>2022-02-05T20:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: KL17 - VLLS1 pin wake-up (LLWU)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL17-VLLS1-pin-wake-up-LLWU/m-p/1410511#M62380</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/189151"&gt;@AndreVB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for letting me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hoping you are well, let me check that issue, because if you are correctly in a low power mode, you do not have to see higher currents. Only may I ask you a question? Why did you tell me at the beginning you were using KL17 and the current SDK you are using now is KL02 ? I'm confused in this part.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will stay tuned to your response, so please let me know if you have more questions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;BR /&gt;Pablo Avalos.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 20:23:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL17-VLLS1-pin-wake-up-LLWU/m-p/1410511#M62380</guid>
      <dc:creator>PabloAvalos</dc:creator>
      <dc:date>2022-02-08T20:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: KL17 - VLLS1 pin wake-up (LLWU)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL17-VLLS1-pin-wake-up-LLWU/m-p/1410515#M62381</link>
      <description>&lt;P&gt;Hi Pablo,&lt;/P&gt;&lt;P&gt;Typo error I mean KL17 SDK. Sorry about that.&lt;/P&gt;&lt;P&gt;By the way, I kind of found the issue. The LLWU wakeup pin flag is not being cleared. because the&amp;nbsp;&lt;EM&gt;&lt;FONT size="2"&gt;LLWU_HANDLER(void)&amp;nbsp;&lt;/FONT&gt;&lt;/EM&gt;is not being called after VLLS1 exit.&lt;/P&gt;&lt;P&gt;If I add&amp;nbsp;&lt;EM&gt;&lt;FONT size="2"&gt;LLWU_ClearExternalWakeupPinFlag(LLWU, 14);&amp;nbsp;&lt;/FONT&gt;&lt;/EM&gt;in the main() it works. The Idd goes to the expected levels.&amp;nbsp;Any reason why the that IRQ handler is not being called?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Andre&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 20:43:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL17-VLLS1-pin-wake-up-LLWU/m-p/1410515#M62381</guid>
      <dc:creator>AndreVB</dc:creator>
      <dc:date>2022-02-08T20:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: KL17 - VLLS1 pin wake-up (LLWU)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL17-VLLS1-pin-wake-up-LLWU/m-p/1413247#M62417</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/189151"&gt;@AndreVB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you so much for your reply and the info provided.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If IRQ Handler is not being called, it could be for two reasons, the IRQ is not being configured correctly (please check that you are calling EnableIRQ() function with parameter&amp;nbsp;LLWU_IRQn), or the other reason can be that interrupt flag is not being cleared correctly since you start running, please check those.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have more questions, please let me know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards.&lt;BR /&gt;Pablo Avalos.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 20:21:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL17-VLLS1-pin-wake-up-LLWU/m-p/1413247#M62417</guid>
      <dc:creator>PabloAvalos</dc:creator>
      <dc:date>2022-02-14T20:21:40Z</dc:date>
    </item>
  </channel>
</rss>

