<?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: How can we determine whether the lpc55s28 is powered on or reset by software when it starts. in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-we-determine-whether-the-lpc55s28-is-powered-on-or-reset/m-p/1911197#M56483</link>
    <description>Dear pablo,&lt;BR /&gt;I am very glad to receive your reply. At present, the wireless IC of my project needs to restart the device after being connected, so I need to judge the startup mode of lpc55s28. The following is the code I use to judge the restart.&lt;BR /&gt;power_device_reset_cause_t p_reset_cause;&lt;BR /&gt;power_device_boot_mode_t p_boot_mode;&lt;BR /&gt;uint32_t p_wakeupio_cause;&lt;BR /&gt;POWER_GetWakeUpCause(&amp;amp;p_reset_cause, &amp;amp;p_boot_mode, &amp;amp;p_wakeupio_cause);&lt;BR /&gt;if (p_reset_cause == kRESET_CAUSE_POR) {&lt;BR /&gt;power_on_flag = true;&lt;BR /&gt;}&lt;BR /&gt;Best wishes!&lt;BR /&gt;</description>
    <pubDate>Thu, 18 Jul 2024 09:18:24 GMT</pubDate>
    <dc:creator>JJ3</dc:creator>
    <dc:date>2024-07-18T09:18:24Z</dc:date>
    <item>
      <title>How can we determine whether the lpc55s28 is powered on or reset by software when it starts.</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-we-determine-whether-the-lpc55s28-is-powered-on-or-reset/m-p/1909692#M56465</link>
      <description>&lt;P&gt;How can we determine whether the lpc55s28 is powered on or reset by software when it starts.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 10:30:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-we-determine-whether-the-lpc55s28-is-powered-on-or-reset/m-p/1909692#M56465</guid>
      <dc:creator>JJ3</dc:creator>
      <dc:date>2024-07-16T10:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: How can we determine whether the lpc55s28 is powered on or reset by software when it starts.</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-we-determine-whether-the-lpc55s28-is-powered-on-or-reset/m-p/1910842#M56478</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/235635"&gt;@JJ3&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Can you provide me with more details about your application in order to give you better feedback?&lt;/P&gt;
&lt;P&gt;Why do you think the software is restarting?&lt;/P&gt;
&lt;P&gt;Is this software reset expected or is it due to a hard fault?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 22:20:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-we-determine-whether-the-lpc55s28-is-powered-on-or-reset/m-p/1910842#M56478</guid>
      <dc:creator>Pablo_Ramos</dc:creator>
      <dc:date>2024-07-17T22:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: How can we determine whether the lpc55s28 is powered on or reset by software when it starts.</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-we-determine-whether-the-lpc55s28-is-powered-on-or-reset/m-p/1911197#M56483</link>
      <description>Dear pablo,&lt;BR /&gt;I am very glad to receive your reply. At present, the wireless IC of my project needs to restart the device after being connected, so I need to judge the startup mode of lpc55s28. The following is the code I use to judge the restart.&lt;BR /&gt;power_device_reset_cause_t p_reset_cause;&lt;BR /&gt;power_device_boot_mode_t p_boot_mode;&lt;BR /&gt;uint32_t p_wakeupio_cause;&lt;BR /&gt;POWER_GetWakeUpCause(&amp;amp;p_reset_cause, &amp;amp;p_boot_mode, &amp;amp;p_wakeupio_cause);&lt;BR /&gt;if (p_reset_cause == kRESET_CAUSE_POR) {&lt;BR /&gt;power_on_flag = true;&lt;BR /&gt;}&lt;BR /&gt;Best wishes!&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Jul 2024 09:18:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-we-determine-whether-the-lpc55s28-is-powered-on-or-reset/m-p/1911197#M56483</guid>
      <dc:creator>JJ3</dc:creator>
      <dc:date>2024-07-18T09:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: How can we determine whether the lpc55s28 is powered on or reset by software when it starts.</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-we-determine-whether-the-lpc55s28-is-powered-on-or-reset/m-p/1914421#M56512</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/235635"&gt;@JJ3&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I tested your code, and it should work fine. If what you need is a visual way to you know if the reset happen you can use a LED to know this, other way could be send a message via UART to be able to see it in Terminal.&lt;BR /&gt;If what you want is to change the code if is not a power one reset, you can use an if else with different whiles.&lt;/P&gt;
&lt;P&gt;Hope it helps you!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 20:04:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-we-determine-whether-the-lpc55s28-is-powered-on-or-reset/m-p/1914421#M56512</guid>
      <dc:creator>Pablo_Ramos</dc:creator>
      <dc:date>2024-07-22T20:04:42Z</dc:date>
    </item>
  </channel>
</rss>

