<?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: Problem reading RESETCAUSE register on LPC55S36 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-reading-RESETCAUSE-register-on-LPC55S36/m-p/1516796#M50057</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Pls use the code like:&lt;/P&gt;
&lt;P&gt;#include "fsl_power.h"&lt;/P&gt;
&lt;P&gt;power_reset_cause_t p_reset_cause;&lt;BR /&gt;power_boot_mode_t p_boot_mode;&lt;BR /&gt;power_wakeup_pin_t p_wakeupio_cause;&lt;/P&gt;
&lt;P&gt;POWER_GetWakeUpCause(&amp;amp;p_reset_cause, &amp;amp;p_boot_mode, &amp;amp;p_wakeupio_cause);&lt;BR /&gt;__asm("nop");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiangjun_rong_0-1662361506717.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/192444iD41C739098879D54/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_0-1662361506717.png" alt="xiangjun_rong_0-1662361506717.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This function within the drivers provided checks the reset source using the AOREG1 register of the PMC.&lt;/P&gt;
&lt;P&gt;reset_cause_reg = PMC-&amp;gt;AOREG1;&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Sep 2022 07:08:00 GMT</pubDate>
    <dc:creator>xiangjun_rong</dc:creator>
    <dc:date>2022-09-05T07:08:00Z</dc:date>
    <item>
      <title>Problem reading RESETCAUSE register on LPC55S36</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-reading-RESETCAUSE-register-on-LPC55S36/m-p/1511016#M49942</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm working on a LPCXpresso55S36 evaluation board, and I'm trying to read the PMC-&amp;gt;RESETCAUSE register to get the last chip reset reason, however it's value is always zero. I started from the demo project "power_mode_switch_lpc" in SDK 10.2.2 and I've tried to add a simple printf as follow in main function:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PRINTF("Last Reset cause: %d\n",PMC-&amp;gt;RESETCAUSE);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;At power-on, I expected that last reset cause was POR, so the value should be "1", but the printed value was"0". After RTC wakeup the device from the "Deep power down mode", i expected that&amp;nbsp; "DPD_EVENTS_ORDER" bits was set as "010b" (RTC) and the "DPDRESET_RTC" bit was set to "1", but also in this case the printed value was always "0".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Am i missing something? How could i get info about last reset cause?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Enrico&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 14:56:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-reading-RESETCAUSE-register-on-LPC55S36/m-p/1511016#M49942</guid>
      <dc:creator>EnBono</dc:creator>
      <dc:date>2022-08-24T14:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem reading RESETCAUSE register on LPC55S36</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-reading-RESETCAUSE-register-on-LPC55S36/m-p/1511336#M49949</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have tried to read the RESETCAUSE register on LPC55S36, I also get zero even if I press Reset button, I will continue to investigate the cause soon.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 01:37:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-reading-RESETCAUSE-register-on-LPC55S36/m-p/1511336#M49949</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2022-08-25T01:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem reading RESETCAUSE register on LPC55S36</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-reading-RESETCAUSE-register-on-LPC55S36/m-p/1512927#M49979</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/26034"&gt;@xiangjun_rong&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Any news about this problem?&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Enrico&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 06:47:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-reading-RESETCAUSE-register-on-LPC55S36/m-p/1512927#M49979</guid>
      <dc:creator>EnBono</dc:creator>
      <dc:date>2022-08-29T06:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem reading RESETCAUSE register on LPC55S36</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-reading-RESETCAUSE-register-on-LPC55S36/m-p/1513599#M49990</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have asked AE team why the register reading is always zero.&lt;/P&gt;
&lt;P&gt;I will give you a response after I get feedback&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 05:54:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-reading-RESETCAUSE-register-on-LPC55S36/m-p/1513599#M49990</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2022-08-30T05:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem reading RESETCAUSE register on LPC55S36</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-reading-RESETCAUSE-register-on-LPC55S36/m-p/1516796#M50057</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Pls use the code like:&lt;/P&gt;
&lt;P&gt;#include "fsl_power.h"&lt;/P&gt;
&lt;P&gt;power_reset_cause_t p_reset_cause;&lt;BR /&gt;power_boot_mode_t p_boot_mode;&lt;BR /&gt;power_wakeup_pin_t p_wakeupio_cause;&lt;/P&gt;
&lt;P&gt;POWER_GetWakeUpCause(&amp;amp;p_reset_cause, &amp;amp;p_boot_mode, &amp;amp;p_wakeupio_cause);&lt;BR /&gt;__asm("nop");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiangjun_rong_0-1662361506717.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/192444iD41C739098879D54/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_0-1662361506717.png" alt="xiangjun_rong_0-1662361506717.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This function within the drivers provided checks the reset source using the AOREG1 register of the PMC.&lt;/P&gt;
&lt;P&gt;reset_cause_reg = PMC-&amp;gt;AOREG1;&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2022 07:08:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-reading-RESETCAUSE-register-on-LPC55S36/m-p/1516796#M50057</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2022-09-05T07:08:00Z</dc:date>
    </item>
  </channel>
</rss>

