<?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: LPC4337 wakeup from deep sleep and power down using RTC in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-wakeup-from-deep-sleep-and-power-down-using-RTC/m-p/634138#M25000</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel Toma,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; LPC4337 support the RTC wake up the deep sleep and power down mode.&lt;/P&gt;&lt;P&gt;Did you enable the RTC_EN in ENABLE register? Please check it!&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/16694i3BF8229CCE043C19/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;Wish it helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Mar 2017 10:39:12 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2017-03-09T10:39:12Z</dc:date>
    <item>
      <title>LPC4337 wakeup from deep sleep and power down using RTC</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-wakeup-from-deep-sleep-and-power-down-using-RTC/m-p/634137#M24999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I am trying to use the RTC alarm to wake up my&amp;nbsp;4337, from the LPCXpresso4337 board, from deep sleep or power down mode mode and I start from the LPCopen's example of pmc_states.c (using 2.20 version from lpcopen for 4337)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&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.0V all the time and I put debug to check if RTC is enabling or not, everything works fine. If&amp;nbsp;I put my 43537 in deep sleep&amp;nbsp;mode or power down and choose to wake up from RTC alarm event interrupt I never get RTC alarm interrupt.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If I chose the WAKE button as wake up signal it works but not with RTC!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Daniel&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 10:35:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-wakeup-from-deep-sleep-and-power-down-using-RTC/m-p/634137#M24999</guid>
      <dc:creator>danieltoma</dc:creator>
      <dc:date>2017-03-08T10:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4337 wakeup from deep sleep and power down using RTC</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-wakeup-from-deep-sleep-and-power-down-using-RTC/m-p/634138#M25000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel Toma,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; LPC4337 support the RTC wake up the deep sleep and power down mode.&lt;/P&gt;&lt;P&gt;Did you enable the RTC_EN in ENABLE register? Please check it!&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/16694i3BF8229CCE043C19/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;Wish it helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 10:39:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-wakeup-from-deep-sleep-and-power-down-using-RTC/m-p/634138#M25000</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-03-09T10:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4337 wakeup from deep sleep and power down using RTC</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-wakeup-from-deep-sleep-and-power-down-using-RTC/m-p/634139#M25001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Hi Kerry,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;Yes the RTC_EN in ENABLED so yesterday after debugging several times the &lt;SPAN style="background-color: #ffffff;"&gt;misc_pmc_states project,&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I found a partial solution to wake up from deep sleep and deep power down mode using the RTC.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I had to modify the&amp;nbsp;misc_pmc_states project and the solution is to add a delay of more than 1 second after the RTC alarm is configured and the RTC is enabled.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;This code&amp;nbsp;to configure the RTC to wake up from deep sleep is not working:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case '2':&lt;BR /&gt; DEBUGSTR("Entering 'Deep Sleep' state ...\r\n");&lt;BR /&gt; if (Wake_RTC) {&lt;BR /&gt; DEBUGOUT("Wait for %d seconds, RTC alarm will wake up from 'Deep Sleep' mode \r\n", RTC_ALARM_TIME);&lt;BR /&gt; Chip_RTC_Enable(LPC_RTC, ENABLE);&lt;BR /&gt; }&lt;BR /&gt; else {&lt;BR /&gt; DEBUGSTR("Press WAKEUP0 button/Connect WAKEUP0 pin to 3.3V to exit 'Deep Sleep' mode \r\n");&lt;BR /&gt; }&lt;BR /&gt; Pwr_state = PMC_DeepSleep;&lt;/P&gt;&lt;P&gt;/* Call Pre SleepPowerDown function */&lt;BR /&gt; PMC_Pre_SleepPowerDown();&lt;/P&gt;&lt;P&gt;/* Goto Deep Sleep mode */&lt;BR /&gt; Chip_PMC_Set_PwrState(Pwr_state);&lt;/P&gt;&lt;P&gt;/* Call Post Wake up Initialisation function */&lt;BR /&gt; PMC_Post_Wakeup(buffer);&lt;BR /&gt; DEBUGSTR("\r\nWoken up \r\n");&lt;BR /&gt; break;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the&amp;nbsp;&lt;SPAN&gt;Chip_RTC_Enable(LPC_RTC, ENABLE); there has to be a delay before&amp;nbsp;entering the deep sleep.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now, I am able to wake up from Deep Sleep and Deep Power Down correctly&amp;nbsp;but from&amp;nbsp;Power Down I am only wake up but using the same PMC_Post_Wakeup(buffer); is not able to reconfigure correctly&amp;nbsp;the system. I have to see why I have this issue only in Power Down!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Daniel&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 10:55:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-wakeup-from-deep-sleep-and-power-down-using-RTC/m-p/634139#M25001</guid>
      <dc:creator>danieltoma</dc:creator>
      <dc:date>2017-03-09T10:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4337 wakeup from deep sleep and power down using RTC</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-wakeup-from-deep-sleep-and-power-down-using-RTC/m-p/634140#M25002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel Toma,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If I download the &lt;SPAN style="background-color: #ffffff;"&gt;misc_pmc_states &lt;/SPAN&gt;project directly to my LPCXpress lpc4337 board, and use the RTC to wakeup directly, I also meet your problem, can't wakeup. I will report this lpcopen code problem to our according department.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; But, just as you said, if I add some delay after the :Chip_ATIMER_IntEnable(LPC_ATIMER); like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="45.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/15414i4C8972EAB147875E/image-size/large?v=v2&amp;amp;px=999" role="button" title="45.jpg" alt="45.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After testing, the power down can wake up, this is the test result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="46.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/15457i7B3BA4E38972D419/image-size/large?v=v2&amp;amp;px=999" role="button" title="46.jpg" alt="46.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The following printf is OK, it means, the clock configuration still correct.&lt;/P&gt;&lt;P&gt;Now, you said, your Power Down is not able to reconfigure correctly&amp;nbsp;the system, could you give me more details about it?&lt;/P&gt;&lt;P&gt;What is the not correct phenomena?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2017 08:06:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-wakeup-from-deep-sleep-and-power-down-using-RTC/m-p/634140#M25002</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-03-13T08:06:09Z</dc:date>
    </item>
  </channel>
</rss>

