<?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>Processor Expert SoftwareのトピックRe: LPC552x SYSTEMRESET vs SWRRWSET</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/LPC552x-SYSTEMRESET-vs-SWRRWSET/m-p/1800807#M5767</link>
    <description>&lt;P&gt;dear &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/226617"&gt;@Alex_Wang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;I just I copied and pasted your software in my 'hello world' sdk example.&lt;/P&gt;&lt;P&gt;I'm using LPC55S28-EVK evaluation board&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="_Ferrari__0-1706872448703.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/261637i28FA66A3DBE74DA8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_Ferrari__0-1706872448703.png" alt="_Ferrari__0-1706872448703.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Feb 2024 11:17:11 GMT</pubDate>
    <dc:creator>_Ferrari_</dc:creator>
    <dc:date>2024-02-02T11:17:11Z</dc:date>
    <item>
      <title>LPC552x SYSTEMRESET vs SWRRWSET</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/LPC552x-SYSTEMRESET-vs-SWRRWSET/m-p/1798986#M5761</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I noticed that in the register AOREG1 (please refer to UM11126&amp;nbsp; document) there are two bits:&lt;/P&gt;&lt;P&gt;BIT 7: SYSTEMRESET(the last chip reset was caused by a System Reset requested by the ARM CPU)&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;BIT 9: SWRRESET (The last chip reset was caused by a Software event)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_Ferrari__0-1706728474182.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/261153i1CACE05C8B18DF28/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_Ferrari__0-1706728474182.png" alt="_Ferrari__0-1706728474182.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm able to reset the CPU by calling the __NVIC_SystemReset() function but I can't find any routine or any trick to generate a 'software reset event' in order to set the the bit 9 in AOREG1 register.&lt;/P&gt;&lt;P&gt;Did you have a similar problem ?&lt;/P&gt;&lt;P&gt;How did you fix it ?&lt;/P&gt;&lt;P&gt;Thank you very much for your help and cooperation&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 19:16:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/LPC552x-SYSTEMRESET-vs-SWRRWSET/m-p/1798986#M5761</guid>
      <dc:creator>_Ferrari_</dc:creator>
      <dc:date>2024-01-31T19:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: LPC552x SYSTEMRESET vs SWRRWSET</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/LPC552x-SYSTEMRESET-vs-SWRRWSET/m-p/1800746#M5766</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202847"&gt;@_Ferrari_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;If you want SWRRESET to position 1, you can do so with the following code:&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;    PMC-&amp;gt;RESETCTRL|=1&amp;lt;&amp;lt;3;
    SYSCON-&amp;gt;SWR_RESET= 0x5a000001;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;In my opinion, the __NVIC_SystemReset() function does achieve a reset, but it is actually an operation done to the kernel, not a real software reset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I demonstrated with LPC55S69, checking the status of SWRRESET and SYSTEMRESET. Refer to the following figure:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alex_Wang_0-1706866466174.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/261620iF09349E76DFA4E4B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alex_Wang_0-1706866466174.jpeg" alt="Alex_Wang_0-1706866466174.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The test code is as follows:&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;#include "fsl_device_registers.h"
#include "fsl_debug_console.h"
#include "pin_mux.h"
#include "clock_config.h"
#include "board.h"
#include "fsl_power.h"

int main(void)
{
    char ch;

    /* Init board hardware. */
    /* set BOD VBAT level to 1.65V */
    POWER_SetBodVbatLevel(kPOWER_BodVbatLevel1650mv, kPOWER_BodHystLevel50mv, false);
    /* attach main clock divide to FLEXCOMM0 (debug console) */
    CLOCK_AttachClk(BOARD_DEBUG_UART_CLK_ATTACH);

    BOARD_InitBootPins();
    BOARD_InitBootClocks();
    BOARD_InitDebugConsole();
#if !defined(DONT_ENABLE_FLASH_PREFETCH)
    /* enable flash prefetch for better performance */
    SYSCON-&amp;gt;FMCCR |= SYSCON_FMCCR_PREFEN_MASK;
#endif

    PRINTF("hello world.\r\n");
    if(((PMC-&amp;gt;AOREG1&amp;gt;&amp;gt;7)&amp;amp;1)==1)
    {
   	 PRINTF("sysreset=1\r\n");
    }
	 else if(((PMC-&amp;gt;AOREG1&amp;gt;&amp;gt;7)&amp;amp;1)==0)
	{PRINTF("sysreset=0\r\n");}


    if(((PMC-&amp;gt;AOREG1&amp;gt;&amp;gt;9)&amp;amp;1)==1)
    {
   	 PRINTF("softreset=1\r\n");
    }
	 else if(((PMC-&amp;gt;AOREG1&amp;gt;&amp;gt;9)&amp;amp;1)==0)
	{PRINTF("softreset=0\r\n");}

    PMC-&amp;gt;RESETCTRL|=1&amp;lt;&amp;lt;3;
    SYSCON-&amp;gt;SWR_RESET= 0x5a000001;

	//__NVIC_SystemReset();
    while (1)
    {
        ch = GETCHAR();
        PUTCHAR(ch);
    }
}&lt;/LI-CODE&gt;
&lt;P&gt;Best regards, Alex&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 09:37:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/LPC552x-SYSTEMRESET-vs-SWRRWSET/m-p/1800746#M5766</guid>
      <dc:creator>Alex_Wang</dc:creator>
      <dc:date>2024-02-02T09:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: LPC552x SYSTEMRESET vs SWRRWSET</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/LPC552x-SYSTEMRESET-vs-SWRRWSET/m-p/1800807#M5767</link>
      <description>&lt;P&gt;dear &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/226617"&gt;@Alex_Wang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;I just I copied and pasted your software in my 'hello world' sdk example.&lt;/P&gt;&lt;P&gt;I'm using LPC55S28-EVK evaluation board&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="_Ferrari__0-1706872448703.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/261637i28FA66A3DBE74DA8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_Ferrari__0-1706872448703.png" alt="_Ferrari__0-1706872448703.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 11:17:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/LPC552x-SYSTEMRESET-vs-SWRRWSET/m-p/1800807#M5767</guid>
      <dc:creator>_Ferrari_</dc:creator>
      <dc:date>2024-02-02T11:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: LPC552x SYSTEMRESET vs SWRRWSET</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/LPC552x-SYSTEMRESET-vs-SWRRWSET/m-p/1801230#M5772</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202847"&gt;@_Ferrari_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Please do not use Debug. When you run debug and click Stop, the chip will not be detected because the chip keeps resetting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; You can use the GUI flash tool to download the code and view the reset status on the serial port.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-02-04_9-28-49.jpg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/261757i6BEB8176F3020BCE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2024-02-04_9-28-49.jpg" alt="2024-02-04_9-28-49.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best regards, Alex&lt;/P&gt;</description>
      <pubDate>Sun, 04 Feb 2024 01:30:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/LPC552x-SYSTEMRESET-vs-SWRRWSET/m-p/1801230#M5772</guid>
      <dc:creator>Alex_Wang</dc:creator>
      <dc:date>2024-02-04T01:30:31Z</dc:date>
    </item>
  </channel>
</rss>

