<?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>MQX Software SolutionsのトピックRe: Using MQX LPM on K22 (MQX 4.2)</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-MQX-LPM-on-K22-MQX-4-2/m-p/669940#M17340</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response, and thank you for the advice. I reversed the order of the code as suggested and found different behavior. Instead of restarting the chip it gets caught at the line below inside of Cpu_SetMCGModeFBE() and case 0:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;while((MCG_S &amp;amp; 0x0CU) != 0x08U) { /* Wait until external reference clock is selected as MCG output */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any action I need to take here in setting MCG_S or I am just missing something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 May 2017 14:10:09 GMT</pubDate>
    <dc:creator>ebollerman</dc:creator>
    <dc:date>2017-05-09T14:10:09Z</dc:date>
    <item>
      <title>Using MQX LPM on K22 (MQX 4.2)</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-MQX-LPM-on-K22-MQX-4-2/m-p/669938#M17338</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 have a question regarding the use of the LPM on the K22, specifically switching back and forth between&amp;nbsp;LPM_OPERATION_MODE_RUN and&amp;nbsp;LPM_OPERATION_MODE_WAIT. I am brand new to this so pardon any ignorance. My chip seems to be resetting after going back into&amp;nbsp;LPM_OPERATION_MODE_RUN mode. I have enabled&amp;nbsp;MQX_ENABLE_LOW_POWER in user_config.h and am able to successfully switch to WAIT mode. Once I am in wait mode however, I am reset and my debugger show that I am in boot.S and restarting. I have used the low power example and the flow of my program is quite simple and is similar to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (CM_ERR_OK != _lpm_set_clock_configuration(BSP_CLOCK_CONFIGURATION_2MHZ))&lt;BR /&gt; {&lt;BR /&gt; _task_block();&lt;BR /&gt; }&lt;BR /&gt;_lpm_set_operation_mode (LPM_OPERATION_MODE_WAIT);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* wait for button press */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_lpm_set_operation_mode (LPM_OPERATION_MODE_RUN);&lt;BR /&gt; if (CM_ERR_OK != _lpm_set_clock_configuration(BSP_CLOCK_CONFIGURATION_DEFAULT))&lt;BR /&gt; {&lt;BR /&gt; _task_block();&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem seems to occur inside _lpm_clock_configuration() -&amp;gt; _cm_set_clock_configuration() -&amp;gt; _bsp_set_clock_configuration()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry if this is too broad. Any help, or understanding of how the LPM actually works would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2017 20:45:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Using-MQX-LPM-on-K22-MQX-4-2/m-p/669938#M17338</guid>
      <dc:creator>ebollerman</dc:creator>
      <dc:date>2017-05-05T20:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using MQX LPM on K22 (MQX 4.2)</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-MQX-LPM-on-K22-MQX-4-2/m-p/669939#M17339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="283714" data-username="ebollerman" href="https://community.nxp.com/people/ebollerman"&gt;Eric Bollerman&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From WAIT mode (mapped to VLPR mode) to Run mode, I would suggest you set clock configuration first, next set operation mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From your code, it seems you set operation mode first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_lpm_set_operation_mode (LPM_OPERATION_MODE_RUN);&lt;BR /&gt; if (CM_ERR_OK != _lpm_set_clock_configuration(BSP_CLOCK_CONFIGURATION_DEFAULT))&lt;BR /&gt; {&lt;BR /&gt; _task_block();&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you try to double check it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a document about MQX Low-Power Management, it describes how it works and how to use it.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://cache.nxp.com/assets/documents/data/en/application-notes/AN4447.pdf?fsrch=1&amp;amp;sr=1&amp;amp;pageNum=1" title="http://cache.nxp.com/assets/documents/data/en/application-notes/AN4447.pdf?fsrch=1&amp;amp;sr=1&amp;amp;pageNum=1"&gt;http://cache.nxp.com/assets/documents/data/en/application-notes/AN4447.pdf?fsrch=1&amp;amp;sr=1&amp;amp;pageNum=1&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Please click correct or helpful button if this post is helpful, thank you&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 08:50:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Using-MQX-LPM-on-K22-MQX-4-2/m-p/669939#M17339</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2017-05-09T08:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using MQX LPM on K22 (MQX 4.2)</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-MQX-LPM-on-K22-MQX-4-2/m-p/669940#M17340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response, and thank you for the advice. I reversed the order of the code as suggested and found different behavior. Instead of restarting the chip it gets caught at the line below inside of Cpu_SetMCGModeFBE() and case 0:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;while((MCG_S &amp;amp; 0x0CU) != 0x08U) { /* Wait until external reference clock is selected as MCG output */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any action I need to take here in setting MCG_S or I am just missing something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 14:10:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Using-MQX-LPM-on-K22-MQX-4-2/m-p/669940#M17340</guid>
      <dc:creator>ebollerman</dc:creator>
      <dc:date>2017-05-09T14:10:09Z</dc:date>
    </item>
  </channel>
</rss>

