<?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: LPC11C24 reset does not clear SYSRSTSTAT register in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11C24-reset-does-not-clear-SYSRSTSTAT-register/m-p/706598#M28506</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;step 1&lt;/P&gt;&lt;P&gt;power up the&amp;nbsp;OM13093 eval board&lt;/P&gt;&lt;P&gt;step 2&lt;/P&gt;&lt;P&gt;start a debug session by pressing button #1. Now 3 bits are set in SYSRSTSTAT register - POR, EXTRST, SYSRST&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/27676iFEDE0BF2AFA75AEF/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;step 3&lt;/P&gt;&lt;P&gt;run program&lt;/P&gt;&lt;P&gt;step 4&lt;/P&gt;&lt;P&gt;pause program&amp;nbsp;&lt;/P&gt;&lt;P&gt;step 5&lt;/P&gt;&lt;P&gt;reset progam by pressing a "Restart" button #2. All 3 bits are still set in SYSRSTSTAT register even though there was no POR.&lt;/P&gt;&lt;P&gt;step 6&lt;/P&gt;&lt;P&gt;run program&lt;/P&gt;&lt;P&gt;step 7&lt;/P&gt;&lt;P&gt;press reset button on the eval board. This will cause the IDE to show error msg. Press OK&lt;/P&gt;&lt;P&gt;step 8&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;reset progam by pressing a "Restart" button #2. All 3 bits are still set in SYSRSTSTAT register even though there was no POR.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Only when I clear SYSRSTSTAT register by calling&amp;nbsp; Chip_SYSCTL_ClearSystemRSTStatus(0x1F); function will I see real source of my reset. Why is that ?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks !&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Aug 2017 05:54:08 GMT</pubDate>
    <dc:creator>adamrakam</dc:creator>
    <dc:date>2017-08-30T05:54:08Z</dc:date>
    <item>
      <title>LPC11C24 reset does not clear SYSRSTSTAT register</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11C24-reset-does-not-clear-SYSRSTSTAT-register/m-p/706596#M28504</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;On LPC11C24 (Cortex M0) i try to find a cause of my MCU reseting. &amp;nbsp;User manual says that reset value of the&amp;nbsp;SYSRSTSTAT &amp;nbsp;register is 0 after RESET. But this is not what I observe. Using&amp;nbsp;MCUXpresso when i pause debugging and press 'Restart' button I see POR in&amp;nbsp;SYSRSTSTAT bit still set. This should not be according to table below. Based on my experiments EXTRST and SYSRST reset sources do not clear POR flag. Does this mean that not all RESET sources are equal? Why are not all reset sources set to zero when executing system reset SYSRST via debugger?&lt;/P&gt;&lt;P&gt;&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/27028iFE9B4C89DB8BB2F7/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;Thank you !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 13:22:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11C24-reset-does-not-clear-SYSRSTSTAT-register/m-p/706596#M28504</guid>
      <dc:creator>adamrakam</dc:creator>
      <dc:date>2017-08-24T13:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11C24 reset does not clear SYSRSTSTAT register</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11C24-reset-does-not-clear-SYSRSTSTAT-register/m-p/706597#M28505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="294338" data-username="adamrakam" href="https://community.nxp.com/people/adamrakam"&gt;adam rakam&lt;/A&gt;,&lt;/P&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: inherit; line-height: 1.5; font-family: 微软雅黑,sans-serif;"&gt;Thank you for your interest in NXP Semiconductor products and&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: inherit; font-family: 微软雅黑,sans-serif;"&gt;for the opportunity to serve you.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;I' was wondering if you can introduce the steps of testing, then I can replicate the 'phenomenon' on my site.&lt;/P&gt;&lt;P&gt;I'm looking forward to your reply.&lt;/P&gt;&lt;P&gt;TIC&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&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>Fri, 25 Aug 2017 03:03:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11C24-reset-does-not-clear-SYSRSTSTAT-register/m-p/706597#M28505</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2017-08-25T03:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11C24 reset does not clear SYSRSTSTAT register</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11C24-reset-does-not-clear-SYSRSTSTAT-register/m-p/706598#M28506</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;step 1&lt;/P&gt;&lt;P&gt;power up the&amp;nbsp;OM13093 eval board&lt;/P&gt;&lt;P&gt;step 2&lt;/P&gt;&lt;P&gt;start a debug session by pressing button #1. Now 3 bits are set in SYSRSTSTAT register - POR, EXTRST, SYSRST&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/27676iFEDE0BF2AFA75AEF/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;step 3&lt;/P&gt;&lt;P&gt;run program&lt;/P&gt;&lt;P&gt;step 4&lt;/P&gt;&lt;P&gt;pause program&amp;nbsp;&lt;/P&gt;&lt;P&gt;step 5&lt;/P&gt;&lt;P&gt;reset progam by pressing a "Restart" button #2. All 3 bits are still set in SYSRSTSTAT register even though there was no POR.&lt;/P&gt;&lt;P&gt;step 6&lt;/P&gt;&lt;P&gt;run program&lt;/P&gt;&lt;P&gt;step 7&lt;/P&gt;&lt;P&gt;press reset button on the eval board. This will cause the IDE to show error msg. Press OK&lt;/P&gt;&lt;P&gt;step 8&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;reset progam by pressing a "Restart" button #2. All 3 bits are still set in SYSRSTSTAT register even though there was no POR.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Only when I clear SYSRSTSTAT register by calling&amp;nbsp; Chip_SYSCTL_ClearSystemRSTStatus(0x1F); function will I see real source of my reset. Why is that ?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks !&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2017 05:54:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11C24-reset-does-not-clear-SYSRSTSTAT-register/m-p/706598#M28506</guid>
      <dc:creator>adamrakam</dc:creator>
      <dc:date>2017-08-30T05:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11C24 reset does not clear SYSRSTSTAT register</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11C24-reset-does-not-clear-SYSRSTSTAT-register/m-p/706599#M28507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="294338" data-username="adamrakam" href="https://community.nxp.com/people/adamrakam" rel="nofollow noopener noreferrer" target="_blank"&gt;adam rakam&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;I had replicated the issue on my site, and I suspect this issue is about the debugging operation.&lt;/P&gt;&lt;P&gt;You can use the following code to get the value of the SYSRSTSTAT register, then using the UART to send it to terminal without entering the debugger mode.&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;sysResetStatus &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Chip_SYSCTL_GetSystemRSTStatus&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;TIC&lt;/P&gt;&lt;P style="min- padding: 0px;"&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, 31 Aug 2017 03:12:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11C24-reset-does-not-clear-SYSRSTSTAT-register/m-p/706599#M28507</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2017-08-31T03:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11C24 reset does not clear SYSRSTSTAT register</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11C24-reset-does-not-clear-SYSRSTSTAT-register/m-p/706600#M28508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I run this code without debugger on the OM13093_LPC11C24 eval board:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;// from sysctl_11xx.h&lt;BR /&gt;#define SYSCTL_RST_POR&amp;nbsp;&amp;nbsp;&amp;nbsp; (1 &amp;lt;&amp;lt; 0)&amp;nbsp;&amp;nbsp; &amp;nbsp;/*!&amp;lt; POR reset status */&lt;BR /&gt;#define SYSCTL_RST_EXTRST (1 &amp;lt;&amp;lt; 1)&amp;nbsp;&amp;nbsp; &amp;nbsp;/*!&amp;lt; External reset status */&lt;BR /&gt;#define SYSCTL_RST_WDT&amp;nbsp;&amp;nbsp;&amp;nbsp; (1 &amp;lt;&amp;lt; 2)&amp;nbsp;&amp;nbsp; &amp;nbsp;/*!&amp;lt; Watchdog reset status */&lt;BR /&gt;#define SYSCTL_RST_BOD&amp;nbsp;&amp;nbsp;&amp;nbsp; (1 &amp;lt;&amp;lt; 3)&amp;nbsp;&amp;nbsp; &amp;nbsp;/*!&amp;lt; Brown-out detect reset status */&lt;BR /&gt;#define SYSCTL_RST_SYSRST (1 &amp;lt;&amp;lt; 4)&amp;nbsp;&amp;nbsp; &amp;nbsp;/*!&amp;lt; software system reset status */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uint32_t reset_source = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int main()&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;reset_source = Chip_SYSCTL_GetSystemRSTStatus();&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_GPIO_SetPinDIROutput(LPC_GPIO, 3, 0);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_GPIO_SetPinState(LPC_GPIO, 3, 0, 0);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_GPIO_SetPinDIROutput(LPC_GPIO, 3, 1);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_GPIO_SetPinState(LPC_GPIO, 3, 1, 0);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_GPIO_SetPinDIROutput(LPC_GPIO, 3, 2);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_GPIO_SetPinState(LPC_GPIO, 3, 2, 0);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;if(reset_source &amp;amp; SYSCTL_RST_POR)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_GPIO_SetPinState(LPC_GPIO, 3, 0, 1);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;if(reset_source &amp;amp; SYSCTL_RST_EXTRST)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_GPIO_SetPinState(LPC_GPIO, 3, 1, 1);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;if(reset_source &amp;amp; SYSCTL_RST_SYSRST)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_GPIO_SetPinState(LPC_GPIO, 3, 2, 1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;while (1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if(Chip_GPIO_GetPinState(LPC_GPIO, 2, 7) == 1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_SYSCTL_ClearSystemRSTStatus(0x1F);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;reset_source = Chip_SYSCTL_GetSystemRSTStatus();&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if(reset_source &amp;amp; SYSCTL_RST_POR)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_GPIO_SetPinState(LPC_GPIO, 3, 0, 1);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;else&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_GPIO_SetPinState(LPC_GPIO, 3, 0, 0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if(reset_source &amp;amp; SYSCTL_RST_EXTRST)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_GPIO_SetPinState(LPC_GPIO, 3, 1, 1);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;else&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_GPIO_SetPinState(LPC_GPIO, 3, 1, 0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if(reset_source &amp;amp; SYSCTL_RST_SYSRST)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_GPIO_SetPinState(LPC_GPIO, 3, 2, 1);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;else&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_GPIO_SetPinState(LPC_GPIO, 3, 2, 0);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if(Chip_GPIO_GetPinState(LPC_GPIO, 0, 3) == 1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;NVIC_SystemReset();&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;return 0;&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code explanation:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;pin 2_7,input - when 1 it clears SYSRSTSTAT register by caling Chip_SYSCTL_ClearSystemRSTStatus(0x1F) function&lt;BR /&gt;pin 0_3,input - when 1 it resets the MCU by calling NVIC_SystemReset() function&lt;BR /&gt;pin 3_0,output - state of the SYSCTL_RST_POR bit in SYSRSTSTAT register&lt;BR /&gt;pin 3_1,output - state of the SYSCTL_RST_EXTRST bit in SYSRSTSTAT register&lt;BR /&gt;pin 3_2,output - state of the SYSCTL_RST_SYSRST bit in SYSRSTSTAT register&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Running the code above gives me these results&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After powering the board up&amp;nbsp; (HW MCU reset):&lt;BR /&gt;SYSCTL_RST_POR&amp;nbsp;&amp;nbsp;&amp;nbsp; = 1&lt;BR /&gt;SYSCTL_RST_EXTRST = 1&lt;BR /&gt;SYSCTL_RST_SYSRST = 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pressing a reset button on the eval board (HW MCU reset)&lt;BR /&gt;SYSCTL_RST_POR&amp;nbsp;&amp;nbsp;&amp;nbsp; = 1&lt;BR /&gt;SYSCTL_RST_EXTRST = 1&lt;BR /&gt;SYSCTL_RST_SYSRST = 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after setting pin 0_3 to 1 (SW MCU reset - NVIC_SystemReset())&lt;BR /&gt;SYSCTL_RST_POR&amp;nbsp;&amp;nbsp;&amp;nbsp; = 1&lt;BR /&gt;SYSCTL_RST_EXTRST = 1&lt;BR /&gt;SYSCTL_RST_SYSRST = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after setting pin 2_7 to 1 (SW SYSRSTSTAT resister reset - Chip_SYSCTL_ClearSystemRSTStatus(0x1F))&lt;BR /&gt;SYSCTL_RST_POR&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0&lt;BR /&gt;SYSCTL_RST_EXTRST = 0&lt;BR /&gt;SYSCTL_RST_SYSRST = 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pressing a reset button on the eval board (HW MCU reset)&lt;BR /&gt;SYSCTL_RST_POR&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0&lt;BR /&gt;SYSCTL_RST_EXTRST = 1&lt;BR /&gt;SYSCTL_RST_SYSRST = 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after setting pin 0_3 to 1 (SW MCU reset - NVIC_SystemReset())&lt;BR /&gt;SYSCTL_RST_POR&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0&lt;BR /&gt;SYSCTL_RST_EXTRST = 1&lt;BR /&gt;SYSCTL_RST_SYSRST = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These results show inconsistency between the documentation and HW.&lt;/P&gt;&lt;P&gt;Would you try to test the code on your side please ?&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2017 14:54:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11C24-reset-does-not-clear-SYSRSTSTAT-register/m-p/706600#M28508</guid>
      <dc:creator>adamrakam</dc:creator>
      <dc:date>2017-09-01T14:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11C24 reset does not clear SYSRSTSTAT register</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11C24-reset-does-not-clear-SYSRSTSTAT-register/m-p/706601#M28509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="294338" data-username="adamrakam" href="https://community.nxp.com/people/adamrakam"&gt;adam rakam&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;The issue was replicated on my site, and I'll contact with the AE team about this issue later.&lt;/P&gt;&lt;P&gt;And thanks for your sharing.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&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>Mon, 04 Sep 2017 08:57:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11C24-reset-does-not-clear-SYSRSTSTAT-register/m-p/706601#M28509</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2017-09-04T08:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11C24 reset does not clear SYSRSTSTAT register</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11C24-reset-does-not-clear-SYSRSTSTAT-register/m-p/706602#M28510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="294338" data-username="adamrakam" href="https://community.nxp.com/people/adamrakam"&gt;adam rakam&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Let me share the reply from the AE team.&lt;/P&gt;&lt;P&gt;After powering the board up&amp;nbsp; (HW MCU reset):&lt;BR /&gt;SYSCTL_RST_POR&amp;nbsp;&amp;nbsp;&amp;nbsp; = 1&lt;BR /&gt;SYSCTL_RST_EXTRST = 1&lt;BR /&gt;SYSCTL_RST_SYSRST = 0&lt;/P&gt;&lt;P&gt;Explain: Because the board have external RESET pin reset circuit, when power on, the chip experienced two kind reset:&amp;nbsp;POR&amp;nbsp;and&amp;nbsp;&amp;nbsp;external RESET pin reset, so POR and EXTRST set. And the SYSRSTSTAT can show the source of the latest reset event. But if don't clear the other bit, the other bit still will be set. Only write a one to clear it, or POR.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this is clear.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&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, 14 Sep 2017 03:02:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11C24-reset-does-not-clear-SYSRSTSTAT-register/m-p/706602#M28510</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2017-09-14T03:02:31Z</dc:date>
    </item>
  </channel>
</rss>

