<?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: KL82Z - STOP mode in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL82Z-STOP-mode-vs-tickless-idle/m-p/890994#M52655</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jing, you have to install a couple things like "KSDK 1.3.0 KL82Z Eclipse Update" package.&amp;nbsp; See the Getting Started guide.&amp;nbsp; &lt;A class="link-titled" href="https://www.nxp.com/support/developer-resources/evaluation-and-development-boards/freedom-development-boards/mcu-boards/freedom-development-board-for-kinetis-ultra-low-power-kl82-mcus:FRDM-KL82Z?&amp;amp;tab=In-Depth_Tab" title="https://www.nxp.com/support/developer-resources/evaluation-and-development-boards/freedom-development-boards/mcu-boards/freedom-development-board-for-kinetis-ultra-low-power-kl82-mcus:FRDM-KL82Z?&amp;amp;tab=In-Depth_Tab"&gt;Freedom Development Board for Kinetis KL82 | NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Apr 2019 12:26:18 GMT</pubDate>
    <dc:creator>nickbedbury</dc:creator>
    <dc:date>2019-04-10T12:26:18Z</dc:date>
    <item>
      <title>KL82Z - STOP mode vs tickless idle</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL82Z-STOP-mode-vs-tickless-idle/m-p/890992#M52653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Setup&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I'm trying to get a KL82Z to operate in RUN mode when necessary (when tasks need to execute), otherwise STOP mode to save power.&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;My project employs freeRTOS and Processor Expert (PE) via Kinetis Design Studio IDE&lt;/LI&gt;&lt;LI&gt;I'm using KSDK 1.3.0&lt;/LI&gt;&lt;LI&gt;I enabled tickless idle as well as the idle hook&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Questions&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1) Does configuring PE as follows enable both RUN and STOP mode?&amp;nbsp; Or do I need an explicit configuration for STOP as well?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/74015iD3AF00467C89E32C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) I'm aware of the `power_manager_rtos_demo` from KSDK and have seen really low power usage in STOP mode.&amp;nbsp; In the demo, there are calls to `POWER_SYS_SetMode()` when a user enters a selection.&amp;nbsp; With tickless idle and/or Processor Expert, can I expect power mode switches to happen automatically?&amp;nbsp; Or will I need to add such calls, in `vApplicationIdleHook()` for instance?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) More generally, what is the difference between STOP and the tickless idle state?&amp;nbsp; It seems like STOP is lower power, but tickless idle is easier to use in freeRTOS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2019 19:18:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL82Z-STOP-mode-vs-tickless-idle/m-p/890992#M52653</guid>
      <dc:creator>nickbedbury</dc:creator>
      <dc:date>2019-04-09T19:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: KL82Z - STOP mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL82Z-STOP-mode-vs-tickless-idle/m-p/890993#M52654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nick,&lt;/P&gt;&lt;P&gt;I am using KDS3.2, but the Processor Expert does not support KL82 at all. And KSDK1.3 also doesn't support KL82. I can only import KL82 SDK2.2 example. How do you use it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2019 09:38:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL82Z-STOP-mode-vs-tickless-idle/m-p/890993#M52654</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2019-04-10T09:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: KL82Z - STOP mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL82Z-STOP-mode-vs-tickless-idle/m-p/890994#M52655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jing, you have to install a couple things like "KSDK 1.3.0 KL82Z Eclipse Update" package.&amp;nbsp; See the Getting Started guide.&amp;nbsp; &lt;A class="link-titled" href="https://www.nxp.com/support/developer-resources/evaluation-and-development-boards/freedom-development-boards/mcu-boards/freedom-development-board-for-kinetis-ultra-low-power-kl82-mcus:FRDM-KL82Z?&amp;amp;tab=In-Depth_Tab" title="https://www.nxp.com/support/developer-resources/evaluation-and-development-boards/freedom-development-boards/mcu-boards/freedom-development-board-for-kinetis-ultra-low-power-kl82-mcus:FRDM-KL82Z?&amp;amp;tab=In-Depth_Tab"&gt;Freedom Development Board for Kinetis KL82 | NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2019 12:26:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL82Z-STOP-mode-vs-tickless-idle/m-p/890994#M52655</guid>
      <dc:creator>nickbedbury</dc:creator>
      <dc:date>2019-04-10T12:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: KL82Z - STOP mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL82Z-STOP-mode-vs-tickless-idle/m-p/890995#M52656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you. But I still can't download SDK_1.3.0_FRDM-K82F_Eclipse_Update.zip. So, I tried other way.&lt;/P&gt;&lt;P&gt;1. I found a very good example. It shows how to set in PE clearly. &lt;A href="https://community.nxp.com/docs/DOC-339742"&gt;https://community.nxp.com/docs/DOC-339742&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. It shows in this example that PE only generate some power control structure. You should pass these control structure to driver by yourself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2019 05:52:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL82Z-STOP-mode-vs-tickless-idle/m-p/890995#M52656</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2019-04-11T05:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: KL82Z - STOP mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL82Z-STOP-mode-vs-tickless-idle/m-p/890996#M52657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jing,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With that example, I experience similar to what you described for KL82Z.&amp;nbsp; I think because the KL27 support isn't installed in KDS, Processor Expert gets disabled for me upon importing the example project:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/79451i2962D6BE465E540F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not familiar with how to convert a project to from KL27 to KL82, but working on it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2019 18:31:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL82Z-STOP-mode-vs-tickless-idle/m-p/890996#M52657</guid>
      <dc:creator>nickbedbury</dc:creator>
      <dc:date>2019-04-11T18:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: KL82Z - STOP mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL82Z-STOP-mode-vs-tickless-idle/m-p/890997#M52658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Turns out there was an option under Project Properties -&amp;gt; Processor Expert.&amp;nbsp; I needed to re-enable editing.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The converted project KL27 -&amp;gt; KL82 is attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2019 19:25:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL82Z-STOP-mode-vs-tickless-idle/m-p/890997#M52658</guid>
      <dc:creator>nickbedbury</dc:creator>
      <dc:date>2019-04-11T19:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: KL82Z - STOP mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL82Z-STOP-mode-vs-tickless-idle/m-p/890998#M52659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, KDS support KL27 in default.&lt;/P&gt;&lt;P&gt;BTW, can you share me KSDK 1.3.0 KL82Z Eclipse Update?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2019 02:04:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL82Z-STOP-mode-vs-tickless-idle/m-p/890998#M52659</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2019-04-12T02:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: KL82Z - STOP mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL82Z-STOP-mode-vs-tickless-idle/m-p/890999#M52660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm, yeah it appears the link in the Getting Started guide is broken.&amp;nbsp; The SDK tar.gz (including some projects I've built) is larger than 50MB so I cannot attach here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2019 11:44:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL82Z-STOP-mode-vs-tickless-idle/m-p/890999#M52660</guid>
      <dc:creator>nickbedbury</dc:creator>
      <dc:date>2019-04-12T11:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: KL82Z - STOP mode vs tickless idle</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL82Z-STOP-mode-vs-tickless-idle/m-p/891000#M52661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Answers to my original questions:&lt;BR /&gt;1) The power modes need to be configured in PEX and a call to `POWER_SYS_SetMode() is used.` The example that Jing provided and I revised for the KL82Z demonstrates this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Tickless idle doesn't switch modes automatically.&amp;nbsp; With the NXP KL82Z SDK, it is also not supported to perform a mode switch in the tickless idle hook.&amp;nbsp; Mode switches work best from a regular task.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;This blog goes over some of the details further, showing how custom PEX components can be used to switch power modes in hooks: &lt;A class="link-titled" href="https://mcuoneclipse.com/2013/10/20/tutorial-using-the-frdm-kl25z-as-low-power-board/" title="https://mcuoneclipse.com/2013/10/20/tutorial-using-the-frdm-kl25z-as-low-power-board/"&gt;Tutorial: Using the FRDM-KL25Z as Low Power Board | MCU on Eclipse&lt;/A&gt;&amp;nbsp; I didn't want to go this route since it would be a major overhaul of my project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) While tickless idle provides some power savings, using the power manager STOP/VLPS/VLLS gives even lower power for the KL82Z in my application.&amp;nbsp; I believe the power difference is partly that tickless idle just stops the SYSTICK clock while peripherals and other clocks keep running.&amp;nbsp; In STOP modes, even more clocks are disabled resulting in lower power.&amp;nbsp; (That's just a guess though.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Apr 2019 12:31:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL82Z-STOP-mode-vs-tickless-idle/m-p/891000#M52661</guid>
      <dc:creator>nickbedbury</dc:creator>
      <dc:date>2019-04-19T12:31:14Z</dc:date>
    </item>
  </channel>
</rss>

