<?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: K60 with MQX 4.2: cannot enter STOP mode (LLS)</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/K60-with-MQX-4-2-cannot-enter-STOP-mode-LLS/m-p/505857#M16215</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you David but I found the problem. In lpm_smc.c, there is a SPI workaround(ENGR00178898) where SPI clocks are disabled before calling WFI. This fix is incomplete as it only takes care of SPI0 and SPI1. On my custom board, SPI2 is used so the following lines must be added.&lt;/P&gt;&lt;P&gt;/*before&amp;nbsp; _ASM_SLEEP(NULL)*/&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;#ifdef SIM_SCGC3_SPI2_MASK&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SIM_SCGC3 &amp;amp;= ~SIM_SCGC3_SPI2_MASK;&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*after&amp;nbsp; _ASM_SLEEP(NULL)*/&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;#ifdef SIM_SCGC3_SPI2_MASK&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SIM_SCGC3 |= SIM_SCGC3_SPI2_MASK;&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Apr 2016 16:46:59 GMT</pubDate>
    <dc:creator>louef</dc:creator>
    <dc:date>2016-04-18T16:46:59Z</dc:date>
    <item>
      <title>K60 with MQX 4.2: cannot enter STOP mode (LLS)</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/K60-with-MQX-4-2-cannot-enter-STOP-mode-LLS/m-p/505855#M16213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am working on a K60 custom board with MQX 4.2 and I am having issues putting the processor to STOP mode (LLS). It seems the WFI instruction has no effect. _lpm_set_operation_mode(&lt;EM&gt;LPM_OPERATION_MODE_STOP&lt;/EM&gt;) is called from PEE at 96 Mhz. Clock config was done using Processor Expert, the custom board has a 8 MHZ resonator. Before WFI is executed, here are the registers:&lt;/P&gt;&lt;P&gt;SIM_SCGC4 = 0xF0100070 -&amp;gt; LLWU is set&lt;/P&gt;&lt;P&gt;LLWU_ME = 0x01 -&amp;gt; WUME0 is selected for wakeup source&lt;/P&gt;&lt;P&gt;MCG_C6 = 0x40 -&amp;gt; clock monitor disabled&lt;/P&gt;&lt;P&gt;MC_PMPROT = 0x2A -&amp;gt; LLS is allowed&lt;/P&gt;&lt;P&gt;MC_PMCTRL = 0x8B -&amp;gt; STOPM to Low-Leakage Stop (LLS), RUNM=00&lt;/P&gt;&lt;P&gt;SCB_SCR = 0x04 -&amp;gt; SLEEPDEEP bit is set&lt;/P&gt;&lt;P&gt;After WFI instruction:&lt;/P&gt;&lt;P&gt;LLWU_F3 = 0x00 - &amp;gt; Module 0 input was not a wakeup source&lt;/P&gt;&lt;P&gt;SMC_PMCTRL = 0x8B -&amp;gt; STOPA is set&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I also tried the Lowpower mqx example without success.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;Any help would be appreciated, Thank You.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 15:24:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/K60-with-MQX-4-2-cannot-enter-STOP-mode-LLS/m-p/505855#M16213</guid>
      <dc:creator>louef</dc:creator>
      <dc:date>2016-04-14T15:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: K60 with MQX 4.2: cannot enter STOP mode (LLS)</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/K60-with-MQX-4-2-cannot-enter-STOP-mode-LLS/m-p/505856#M16214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Louise-Philippe,&lt;/P&gt;&lt;P&gt;If you have problem with Lowpower example in MQX my guess is you have the debugger/IDE being used during test.&amp;nbsp; If debugger interface active the device will not go into low power mode.&amp;nbsp; You need to disconnect the debugger and let application run independently.&lt;/P&gt;&lt;P&gt;If your debugger interface is not being used maybe there is outstanding ISR request for some reason???&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 14:25:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/K60-with-MQX-4-2-cannot-enter-STOP-mode-LLS/m-p/505856#M16214</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2016-04-15T14:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: K60 with MQX 4.2: cannot enter STOP mode (LLS)</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/K60-with-MQX-4-2-cannot-enter-STOP-mode-LLS/m-p/505857#M16215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you David but I found the problem. In lpm_smc.c, there is a SPI workaround(ENGR00178898) where SPI clocks are disabled before calling WFI. This fix is incomplete as it only takes care of SPI0 and SPI1. On my custom board, SPI2 is used so the following lines must be added.&lt;/P&gt;&lt;P&gt;/*before&amp;nbsp; _ASM_SLEEP(NULL)*/&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;#ifdef SIM_SCGC3_SPI2_MASK&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SIM_SCGC3 &amp;amp;= ~SIM_SCGC3_SPI2_MASK;&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*after&amp;nbsp; _ASM_SLEEP(NULL)*/&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;#ifdef SIM_SCGC3_SPI2_MASK&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SIM_SCGC3 |= SIM_SCGC3_SPI2_MASK;&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 16:46:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/K60-with-MQX-4-2-cannot-enter-STOP-mode-LLS/m-p/505857#M16215</guid>
      <dc:creator>louef</dc:creator>
      <dc:date>2016-04-18T16:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: K60 with MQX 4.2: cannot enter STOP mode (LLS)</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/K60-with-MQX-4-2-cannot-enter-STOP-mode-LLS/m-p/505858#M16216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Be careful with this peripheral clock clearing/setting as it does not work for SLEEP mode since the core will execute the event that takes the core out of SLEEP which can attempt to use the SPI[0-2] causing Hardfaults.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 04:04:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/K60-with-MQX-4-2-cannot-enter-STOP-mode-LLS/m-p/505858#M16216</guid>
      <dc:creator>matlock</dc:creator>
      <dc:date>2016-04-19T04:04:55Z</dc:date>
    </item>
  </channel>
</rss>

