<?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: Sometimes the cpu never wake up from sleep</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Sometimes-the-cpu-never-wake-up-from-sleep/m-p/173439#M2097</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SLEEP operation mode has by default set LPM_CPU_POWER_MODE_FLAG_SLEEP_ON_EXIT flag. This means, that CPU core goes to sleep again after any ISR finishes. In order to let the core run again, you have to call function _lpm_wakeup_core() inside your gpio ISR.&lt;/P&gt;&lt;P&gt;The operation mode change can be done from any task, there's no connection to initialization of your gpio interrupt. But check the priorities of your tasks, maybe you are continuously switching to the SLEEP mode in a loop.&lt;/P&gt;&lt;P&gt;Regarding the timer component, it's required that you cancel the timer in a task that created it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;PetrM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jun 2012 16:01:39 GMT</pubDate>
    <dc:creator>PetrM</dc:creator>
    <dc:date>2012-06-29T16:01:39Z</dc:date>
    <item>
      <title>Sometimes the cpu never wake up from sleep</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Sometimes-the-cpu-never-wake-up-from-sleep/m-p/173437#M2095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use the lw_gpio_interrrupt to wake up from sleep mode in task_A. If I do this in the same task everything runs well.&lt;/P&gt;&lt;P&gt;Therefor I start the sleep like this: _lpm_set_operation_mode ( LPM_OPERATION_MODE_SLEEP ); I use codewarior with MQX3.8.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if I start the slpee mode in a second task (task_B) sometimes the cpu never wake up. Sometimes It wake up for 5 or 6 times. But than the cpu does not wake up again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it not allowed to start the sleep mode in another task than the gpio_interrupt is handeld?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 15:37:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Sometimes-the-cpu-never-wake-up-from-sleep/m-p/173437#M2095</guid>
      <dc:creator>soli</dc:creator>
      <dc:date>2012-06-20T15:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Sometimes the cpu never wake up from sleep</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Sometimes-the-cpu-never-wake-up-from-sleep/m-p/173438#M2096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In case there is a active timer (_timer_create_component) the problem will occur too. Only if I cancel the timer (_timer_cancel) the cpu will wake up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 18:50:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Sometimes-the-cpu-never-wake-up-from-sleep/m-p/173438#M2096</guid>
      <dc:creator>soli</dc:creator>
      <dc:date>2012-06-20T18:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Sometimes the cpu never wake up from sleep</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Sometimes-the-cpu-never-wake-up-from-sleep/m-p/173439#M2097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SLEEP operation mode has by default set LPM_CPU_POWER_MODE_FLAG_SLEEP_ON_EXIT flag. This means, that CPU core goes to sleep again after any ISR finishes. In order to let the core run again, you have to call function _lpm_wakeup_core() inside your gpio ISR.&lt;/P&gt;&lt;P&gt;The operation mode change can be done from any task, there's no connection to initialization of your gpio interrupt. But check the priorities of your tasks, maybe you are continuously switching to the SLEEP mode in a loop.&lt;/P&gt;&lt;P&gt;Regarding the timer component, it's required that you cancel the timer in a task that created it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;PetrM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2012 16:01:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Sometimes-the-cpu-never-wake-up-from-sleep/m-p/173439#M2097</guid>
      <dc:creator>PetrM</dc:creator>
      <dc:date>2012-06-29T16:01:39Z</dc:date>
    </item>
  </channel>
</rss>

