<?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>MCUXpresso GeneralのトピックRe: SRAM status during power-down mode cortex m0+</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/SRAM-status-during-power-down-mode-cortex-m0/m-p/889950#M1743</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zhang,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;I use an interrupt pin for wake up, set in&amp;nbsp;STARTERP0 register and I use __WFI() to enter in&amp;nbsp;power down mode. I observed that if use __WFE() to enter in power down, &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;the program went back to the place where it entered&amp;nbsp; but I have to use wait for interrupt instruction for my application.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I check&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;PCON-&amp;gt;PM&amp;nbsp;register and&amp;nbsp;is on 0x02, but i also write 1 in PCON-&amp;gt;NODPD reg to prevent entering in deep power down.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;My opinion is that the processor take a reset after it receive the interrupt, but i don't know why yet.&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;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Alexandru Vasi&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Feb 2019 12:29:21 GMT</pubDate>
    <dc:creator>vasi_alex_92</dc:creator>
    <dc:date>2019-02-14T12:29:21Z</dc:date>
    <item>
      <title>SRAM status during power-down mode cortex m0+</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/SRAM-status-during-power-down-mode-cortex-m0/m-p/889948#M1741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using an LPC804 cortex m0+, and in datasheet&amp;nbsp;is written the microprocessor holds SRAM and registers status in power-down mode, but every time when I use WFI to enter in power-down mode, it wakes up and starts again to execute the main function from the beginning (in main I have an init function and an infinite looper).&lt;/P&gt;&lt;P&gt;I want to ask you if when the microprocessor wakes up from&amp;nbsp;&lt;SPAN&gt;power-down mode continues its execution from last command __WFI and after in&amp;nbsp;IRQHandler, because that's what I understand&amp;nbsp;from datasheet?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2019 14:51:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/SRAM-status-during-power-down-mode-cortex-m0/m-p/889948#M1741</guid>
      <dc:creator>vasi_alex_92</dc:creator>
      <dc:date>2019-02-08T14:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: SRAM status during power-down mode cortex m0+</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/SRAM-status-during-power-down-mode-cortex-m0/m-p/889949#M1742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;the description in your screenshot is correct.&lt;/P&gt;&lt;P&gt;I ever tested wake up by WKT, WAKE pin, the program went back to the place where it entered power down mode. while if you wake up code by reset, the code will be executed from start. Please check how you wake up the MCU.&lt;/P&gt;&lt;P&gt;LPC804 has 4 low power mode, only waking up from deep power down mode resets the chip. Please check PCON-&amp;gt;PM register, make use its value is 2.&lt;/P&gt;&lt;P&gt;to shoot the trouble, I suggust you test wake up feature with WAKE pin, it's easy.&lt;/P&gt;&lt;P&gt;Or you can use MCUXpresso SDK demo code &lt;STRONG&gt;power_mode_switch_lpc&lt;/STRONG&gt; to test wake up feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jun Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2019 10:39:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/SRAM-status-during-power-down-mode-cortex-m0/m-p/889949#M1742</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2019-02-14T10:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: SRAM status during power-down mode cortex m0+</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/SRAM-status-during-power-down-mode-cortex-m0/m-p/889950#M1743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zhang,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;I use an interrupt pin for wake up, set in&amp;nbsp;STARTERP0 register and I use __WFI() to enter in&amp;nbsp;power down mode. I observed that if use __WFE() to enter in power down, &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;the program went back to the place where it entered&amp;nbsp; but I have to use wait for interrupt instruction for my application.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I check&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;PCON-&amp;gt;PM&amp;nbsp;register and&amp;nbsp;is on 0x02, but i also write 1 in PCON-&amp;gt;NODPD reg to prevent entering in deep power down.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;My opinion is that the processor take a reset after it receive the interrupt, but i don't know why yet.&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;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Alexandru Vasi&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2019 12:29:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/SRAM-status-during-power-down-mode-cortex-m0/m-p/889950#M1743</guid>
      <dc:creator>vasi_alex_92</dc:creator>
      <dc:date>2019-02-14T12:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: SRAM status during power-down mode cortex m0+</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/SRAM-status-during-power-down-mode-cortex-m0/m-p/889951#M1744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Writing 1 in PCON-&amp;gt;NODPD reg is not necessary but it should not cause wake up reset. From your description, I can't find anywhere abnormal.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Maybe we use different board and different project, thus I can't reproduce your issue.&lt;/P&gt;&lt;P&gt;with this remote support, we need have a criterion to identify the problem on SW or HW. Thus please use MCUXpresso SDK demo code &lt;STRONG&gt;power_mode_switch_lpc,&amp;nbsp;&lt;/STRONG&gt; Wakeup pin wakeup, to test it. If the demo code works well, you can check your code with referring the demo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jun Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2019 11:08:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/SRAM-status-during-power-down-mode-cortex-m0/m-p/889951#M1744</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2019-02-15T11:08:00Z</dc:date>
    </item>
  </channel>
</rss>

