<?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: deep sleep mode issue in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/deep-sleep-mode-issue/m-p/572728#M18641</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you manage to use the RTC&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;alarm to wake in deep sleep or power down mode?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Daniel&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Mar 2017 10:20:09 GMT</pubDate>
    <dc:creator>danieltoma</dc:creator>
    <dc:date>2017-03-08T10:20:09Z</dc:date>
    <item>
      <title>deep sleep mode issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/deep-sleep-mode-issue/m-p/572724#M18637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jpplus on Thu May 07 23:36:24 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to put my 4337 into deep sleep mode and I start from the LPCopen's example of pmc_states.c (using 2.16 version from lpcopen for 4337)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;when I put my board to deep sleep, it simply shuts down itself. I have serveral quesitons related to this example and general deep sleep mode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) I don't see __WFI() or Chip_PMC_Sleep(); be called in this example which contradicts with the data sheet.&amp;nbsp;&amp;nbsp; Does this example really working?&amp;nbsp; I read a thread saying this example has bug, but need fix in latest one, but not sure 2.16 contains this fix.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) hardware control of deep-sleep mode, I put below code and WFI(), but MCU never wake up when I trigger wakeup pin 0.&amp;nbsp; Do the hardware control of deep sleep also require all clock shutdown/off. still need enable the event router? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; LPC_PMC-&amp;gt;PD0_SLEEP0_HW_ENA = 0x01; //M4 core&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; LPC_PMC-&amp;gt;PD0_SLEEP0_MODE = 0x003000AA;//deep sleep&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; SCB-&amp;gt;SCR = 0x04; // Set SLEEPDEEP to 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; LPC_EVENTROUTER-&amp;gt;SET_EN = 0xf;//wakeup pin 0-3 to wakeup&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) any working example/reference about the deep sleep mode except the pmc_states.c?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;JP&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:55:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/deep-sleep-mode-issue/m-p/572724#M18637</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: deep sleep mode issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/deep-sleep-mode-issue/m-p/572725#M18638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mc on Fri May 08 09:31:19 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi jplus,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you please modify Chip_PMC_Set_PwrState function in LPCOpen and try again?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;void Chip_PMC_Set_PwrState(CHIP_PMC_PWR_STATE_T PwrState)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Set Deep sleep mode bit in System Control register of M4 core */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_PMC-&amp;gt;PD0_SLEEP0_HW_ENA |=(1&amp;lt;&amp;lt;0)|(1&amp;lt;&amp;lt;1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Set power state in PMC */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_PMC-&amp;gt;PD0_SLEEP0_MODE = (uint32_t) PwrState;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; __WFI();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:55:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/deep-sleep-mode-issue/m-p/572725#M18638</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: deep sleep mode issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/deep-sleep-mode-issue/m-p/572726#M18639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by henna on Sun May 31 19:07:40 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working on the similar project and I face the same issue. I am trying to put my LPC4357 into Deep power down mode and I am not able to wake up from RTC alarm event interrupt.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However I am able to wake up from wake up 0 event interrupt.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To make sure RTC alarm is triggered I am putting ON one LED in the interrupt.the VBAT pin stays at 3.3V all the time and I put debug to check if RTC is enabling or not, everything works fine but, if I put my 4357 in deep power down mode and choose to wake up from RTC alarm event interrupt I loose the control of debug( which is expected) but by I never get RTC alarm interrupt.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I suspect RTC is not working( or is not getting power) as expected in deep power down mode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone tell what I am doing wrong or any help about how to check power of RTC domain once the core is deep power down.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help will be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Heena &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:55:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/deep-sleep-mode-issue/m-p/572726#M18639</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: deep sleep mode issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/deep-sleep-mode-issue/m-p/572727#M18640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure if it is too late. The user manual for lpc43xx states&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;12.2 General description&lt;/STRONG&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;STRONG&gt;Remark&lt;/STRONG&gt;: Before selecting the Deep-sleep mode or Power-down mode, you must select the IRC as the clock source for all output clocks through the CGU registers (see Section 13.8.1 ) and power down all PLLs.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The confusion comes because sections 12.2.3 and 12.2.4 recommended steps do not mention this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also need to disable semihosting from your project.&lt;/P&gt;&lt;P&gt;I read further, &amp;nbsp;it is not that simple, especially for deep power down mode&lt;/P&gt;&lt;P&gt;a) Only 256 bytes of register starting from&amp;nbsp;0x4004 1000 is retained.&lt;/P&gt;&lt;P&gt;b) Need to wait awhile to fetch code from flash into memory&lt;/P&gt;&lt;P&gt;c) Optionally to switch back to core clock, adjust clock source, and ramp up the clock speed&lt;/P&gt;&lt;P&gt;c) Need to initialize to the state before you going to deep power down sleep (should store the value in flash before that mode)&lt;/P&gt;&lt;P&gt;d) Continue as usual&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution is very specific to your application. I could not find any working example from the Internet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 14:22:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/deep-sleep-mode-issue/m-p/572727#M18640</guid>
      <dc:creator>hmyoong</dc:creator>
      <dc:date>2017-02-23T14:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: deep sleep mode issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/deep-sleep-mode-issue/m-p/572728#M18641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you manage to use the RTC&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;alarm to wake in deep sleep or power down mode?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Daniel&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 10:20:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/deep-sleep-mode-issue/m-p/572728#M18641</guid>
      <dc:creator>danieltoma</dc:creator>
      <dc:date>2017-03-08T10:20:09Z</dc:date>
    </item>
  </channel>
</rss>

