<?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 to prevent MCU reset loop and go to Deep-Failsafe in Power Management</title>
    <link>https://community.nxp.com/t5/Power-Management/How-to-prevent-MCU-reset-loop-and-go-to-Deep-Failsafe/m-p/1917601#M3638</link>
    <description>&lt;P&gt;This topic is incorrectly marked as SOLVED by NXP which will mislead to other readers.&lt;/P&gt;&lt;P&gt;Still there is no solution provided to the question raised.&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jul 2024 22:21:23 GMT</pubDate>
    <dc:creator>tam11</dc:creator>
    <dc:date>2024-07-25T22:21:23Z</dc:date>
    <item>
      <title>How to prevent MCU reset loop and go to Deep-Failsafe</title>
      <link>https://community.nxp.com/t5/Power-Management/How-to-prevent-MCU-reset-loop-and-go-to-Deep-Failsafe/m-p/1761386#M3123</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;I am using FS26 and FS84 for 2 different AUTOSAR projects. Both have same problem.&lt;/P&gt;&lt;P&gt;In theory when FLT_ERR_CNT reaches maximum value, then SBC must enter into Deep fail safe mode. But this seems unreachable when some fault occurs during runtime (e.g. watchdog fault).&lt;/P&gt;&lt;P&gt;Its because SW is initialized with&amp;nbsp;FLT_ERR_CNT cleared and FS0B released.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Lets assume below scenario:&lt;BR /&gt;1. A program flow issue occurs during run time 2 min after start (e.g. an unexpected infinite loop) which causes watchdog error.&lt;BR /&gt;2. So in SBC watchdog timeout happens which resets MCU and SBC goes for INIT_FS mode.&lt;BR /&gt;3. SW initializes SBC (FLT_ERR_CNT cleared and FS0B released)&lt;BR /&gt;4. Step 1 repeats.&lt;/P&gt;&lt;P&gt;What is correct strategy to avoid such uncontrolled MCU reset loop and go to Deep failsafe when such scenario occurs?&lt;/P&gt;&lt;P&gt;I am looking for solution for both FS26 and FS84.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 22:14:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Power-Management/How-to-prevent-MCU-reset-loop-and-go-to-Deep-Failsafe/m-p/1761386#M3123</guid>
      <dc:creator>tam11</dc:creator>
      <dc:date>2023-11-22T22:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent MCU reset loop and go to Deep-Failsafe</title>
      <link>https://community.nxp.com/t5/Power-Management/How-to-prevent-MCU-reset-loop-and-go-to-Deep-Failsafe/m-p/1762353#M3131</link>
      <description>&lt;P&gt;About your question:&lt;/P&gt;
&lt;P&gt;During the run mode of SBC, if it has watchdog fault and the&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;FLT_ERR_CNT reaches maximum value then SBC enter into LPOFF or assert RSTB, you don't need this function, right?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 04:46:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Power-Management/How-to-prevent-MCU-reset-loop-and-go-to-Deep-Failsafe/m-p/1762353#M3131</guid>
      <dc:creator>guoweisun</dc:creator>
      <dc:date>2023-11-23T04:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent MCU reset loop and go to Deep-Failsafe</title>
      <link>https://community.nxp.com/t5/Power-Management/How-to-prevent-MCU-reset-loop-and-go-to-Deep-Failsafe/m-p/1762615#M3135</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thanks for reply.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;During the run mode of SBC, if it has watchdog fault and the&amp;nbsp;&amp;nbsp;FLT_ERR_CNT reaches maximum value then SBC enter into LPOFF or assert RSTB, you don't need this function, right?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;When&amp;nbsp;FLT_ERR_CNT reaches maximum value SBC enters into Deep Fail safe mode (not&amp;nbsp;LPOFF).&lt;/P&gt;&lt;P&gt;When watchdog fault occurs, I want to do the reset. This part is OK.&lt;/P&gt;&lt;P&gt;But after the reset SW re-initializes SBC and clears the&amp;nbsp;FLT_ERR_CNT (as recommended in datasheet).&lt;/P&gt;&lt;P&gt;So&amp;nbsp;FLT_ERR_CNT will never reach in maximum value. This part is problem. Because we will end up in reset loop if same&amp;nbsp;watchdog fault happens again and again.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tam11_0-1700734617301.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/251262iE95F3073617315AF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tam11_0-1700734617301.png" alt="tam11_0-1700734617301.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 10:17:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Power-Management/How-to-prevent-MCU-reset-loop-and-go-to-Deep-Failsafe/m-p/1762615#M3135</guid>
      <dc:creator>tam11</dc:creator>
      <dc:date>2023-11-23T10:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent MCU reset loop and go to Deep-Failsafe</title>
      <link>https://community.nxp.com/t5/Power-Management/How-to-prevent-MCU-reset-loop-and-go-to-Deep-Failsafe/m-p/1762684#M3137</link>
      <description>&lt;P&gt;That should be protection for MCU and system, you need enter into debug mode the update the software during this condition.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 12:27:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Power-Management/How-to-prevent-MCU-reset-loop-and-go-to-Deep-Failsafe/m-p/1762684#M3137</guid>
      <dc:creator>guoweisun</dc:creator>
      <dc:date>2023-11-23T12:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent MCU reset loop and go to Deep-Failsafe</title>
      <link>https://community.nxp.com/t5/Power-Management/How-to-prevent-MCU-reset-loop-and-go-to-Deep-Failsafe/m-p/1762703#M3139</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/138749"&gt;@guoweisun&lt;/a&gt;, Didn't understood what that means. Do you mean enter into debug mode and re-flash software ?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 12:34:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Power-Management/How-to-prevent-MCU-reset-loop-and-go-to-Deep-Failsafe/m-p/1762703#M3139</guid>
      <dc:creator>tam11</dc:creator>
      <dc:date>2023-11-23T12:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent MCU reset loop and go to Deep-Failsafe</title>
      <link>https://community.nxp.com/t5/Power-Management/How-to-prevent-MCU-reset-loop-and-go-to-Deep-Failsafe/m-p/1762707#M3140</link>
      <description>&lt;P&gt;If your&amp;nbsp;assumption case happened, the system stuck in the reset endless which remind you to update software.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 12:40:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Power-Management/How-to-prevent-MCU-reset-loop-and-go-to-Deep-Failsafe/m-p/1762707#M3140</guid>
      <dc:creator>guoweisun</dc:creator>
      <dc:date>2023-11-23T12:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent MCU reset loop and go to Deep-Failsafe</title>
      <link>https://community.nxp.com/t5/Power-Management/How-to-prevent-MCU-reset-loop-and-go-to-Deep-Failsafe/m-p/1762712#M3141</link>
      <description>&lt;P&gt;Well this scenario is not for test on my desk where I re-flash the software quickly. It can be actual scenario in a car driving on the road.&lt;/P&gt;&lt;P&gt;We are using this SBC for safety reasons (safety critical system in car) .&amp;nbsp;So it should not let s&lt;SPAN&gt;ystem stuck in the endless reset. It must go to safe state (which is Deep-failsafe I guess).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 13:09:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Power-Management/How-to-prevent-MCU-reset-loop-and-go-to-Deep-Failsafe/m-p/1762712#M3141</guid>
      <dc:creator>tam11</dc:creator>
      <dc:date>2023-11-23T13:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent MCU reset loop and go to Deep-Failsafe</title>
      <link>https://community.nxp.com/t5/Power-Management/How-to-prevent-MCU-reset-loop-and-go-to-Deep-Failsafe/m-p/1762746#M3145</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="guoweisun_0-1700746251032.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/251284iD628A0A09F04AEC9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="guoweisun_0-1700746251032.png" alt="guoweisun_0-1700746251032.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This above can be configured as 00 or 01 which do not affect the RSTB.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="guoweisun_1-1700746418469.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/251285i4C51680AA2B0922F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="guoweisun_1-1700746418469.png" alt="guoweisun_1-1700746418469.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If WD error counter always =max, the fault error counter will increase into max then enter into deep FS mode.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2023 01:29:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Power-Management/How-to-prevent-MCU-reset-loop-and-go-to-Deep-Failsafe/m-p/1762746#M3145</guid>
      <dc:creator>guoweisun</dc:creator>
      <dc:date>2023-11-24T01:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent MCU reset loop and go to Deep-Failsafe</title>
      <link>https://community.nxp.com/t5/Power-Management/How-to-prevent-MCU-reset-loop-and-go-to-Deep-Failsafe/m-p/1762765#M3146</link>
      <description>&lt;P&gt;&lt;EM&gt;This above can be configured as 00 or 01 which do not affect the RSTB.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Generating a RESET on watchdog error &lt;STRONG&gt;few times&lt;/STRONG&gt; is required and expected. It gives MCU or software some chance to recover. So I can't configure those setting.&lt;/P&gt;&lt;P&gt;Problem here is the FLT_ERR_CNT. By SBC design, it is required to clear this counter at SW initialization to enter SBC into Normal mode.&lt;/P&gt;&lt;P&gt;So if watchdog error is not gone --&amp;gt; FLT_ERR_CNT will never reach maximum value --&amp;gt; SBC will never go to Deep-failsafe --&amp;gt; system stuck in endless reset loop.&lt;/P&gt;&lt;P&gt;I hope I have explained this clearly in original question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 13:56:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Power-Management/How-to-prevent-MCU-reset-loop-and-go-to-Deep-Failsafe/m-p/1762765#M3146</guid>
      <dc:creator>tam11</dc:creator>
      <dc:date>2023-11-23T13:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent MCU reset loop and go to Deep-Failsafe</title>
      <link>https://community.nxp.com/t5/Power-Management/How-to-prevent-MCU-reset-loop-and-go-to-Deep-Failsafe/m-p/1762768#M3147</link>
      <description>&lt;P&gt;During the INIT phase also need clear the fault error counter, but if the WD always errors at this time the fault error counter also increase to MAX value then lead it into Deep-FS mode.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 14:05:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Power-Management/How-to-prevent-MCU-reset-loop-and-go-to-Deep-Failsafe/m-p/1762768#M3147</guid>
      <dc:creator>guoweisun</dc:creator>
      <dc:date>2023-11-23T14:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent MCU reset loop and go to Deep-Failsafe</title>
      <link>https://community.nxp.com/t5/Power-Management/How-to-prevent-MCU-reset-loop-and-go-to-Deep-Failsafe/m-p/1762788#M3148</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Ok. W&lt;SPAN&gt;e are just going round-and-round in the discussion.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I think I tried my best to explain the problem. Sorry if it wasn't clear enough.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 14:24:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Power-Management/How-to-prevent-MCU-reset-loop-and-go-to-Deep-Failsafe/m-p/1762788#M3148</guid>
      <dc:creator>tam11</dc:creator>
      <dc:date>2023-11-23T14:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent MCU reset loop and go to Deep-Failsafe</title>
      <link>https://community.nxp.com/t5/Power-Management/How-to-prevent-MCU-reset-loop-and-go-to-Deep-Failsafe/m-p/1762792#M3149</link>
      <description>&lt;P&gt;Excluding the INIT phase WD error, assumption WD no error in the INIT phase and enter into normal mode successfully, at the normal mode the WD error happens again then RSTB assert LOW then enter into INIT phase again and again,that' your condition right?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 14:27:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Power-Management/How-to-prevent-MCU-reset-loop-and-go-to-Deep-Failsafe/m-p/1762792#M3149</guid>
      <dc:creator>guoweisun</dc:creator>
      <dc:date>2023-11-23T14:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent MCU reset loop and go to Deep-Failsafe</title>
      <link>https://community.nxp.com/t5/Power-Management/How-to-prevent-MCU-reset-loop-and-go-to-Deep-Failsafe/m-p/1917601#M3638</link>
      <description>&lt;P&gt;This topic is incorrectly marked as SOLVED by NXP which will mislead to other readers.&lt;/P&gt;&lt;P&gt;Still there is no solution provided to the question raised.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 22:21:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Power-Management/How-to-prevent-MCU-reset-loop-and-go-to-Deep-Failsafe/m-p/1917601#M3638</guid>
      <dc:creator>tam11</dc:creator>
      <dc:date>2024-07-25T22:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent MCU reset loop and go to Deep-Failsafe</title>
      <link>https://community.nxp.com/t5/Power-Management/How-to-prevent-MCU-reset-loop-and-go-to-Deep-Failsafe/m-p/2190843#M4753</link>
      <description>&lt;P&gt;Hello tam11,&lt;/P&gt;
&lt;P&gt;There are flags on the&amp;nbsp;FS_DIAG_SAFETY1 register that allow you to identify when there is an watchdog issue.&lt;BR /&gt;After the reset, check these bit fields:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Miguel_Mannes_Hilleshiem_2-1761223827213.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/362348i7E19D1BD352D9944/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Miguel_Mannes_Hilleshiem_2-1761223827213.png" alt="Miguel_Mannes_Hilleshiem_2-1761223827213.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To avoid being stuck on that loop, you have to change the choices when running your software.&lt;/P&gt;
&lt;P&gt;Here some hints on how to detect your MCU might be on that loop.&lt;/P&gt;
&lt;P&gt;1 - Write on FS26 memory a key that represents your start-up attempt number&lt;/P&gt;
&lt;P&gt;&amp;nbsp;-&amp;gt; at first start-up with Battery fail, read the memory (NULL?) and write a know different value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;-&amp;gt; at next reset, read the memory, if the value is your know value, it means the device was reset. Change the value to the first software debug mode and change your flow (disable a resource?) to try avoid the blocking loop.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Miguel_Mannes_Hilleshiem_0-1761144790856.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/362142i2325741E575A2CBD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Miguel_Mannes_Hilleshiem_0-1761144790856.png" alt="Miguel_Mannes_Hilleshiem_0-1761144790856.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you go to DFS:&lt;/P&gt;
&lt;P&gt;1 - Check wake-up source on FS26&amp;nbsp;M_WIO_FLG &amp;gt;&amp;nbsp;WUEVENT[3:0].&lt;/P&gt;
&lt;P&gt;&amp;nbsp;-&amp;gt; If Battery fail, do your normal configuration and software execution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;-&amp;gt; If DFS recovery, you might be in that case.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Miguel_Mannes_Hilleshiem_0-1761144166639.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/362139iFB61393F7113F3FB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Miguel_Mannes_Hilleshiem_0-1761144166639.png" alt="Miguel_Mannes_Hilleshiem_0-1761144166639.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2 - Read M_SYS_CFG -&amp;gt;&amp;nbsp;RETRY_CNT[7:0] to check&amp;nbsp;the total number of retries attempts (value).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;-&amp;gt; If your device is at the first retry attempt (first restart) then do something, if is the second, do something else.&lt;/P&gt;
&lt;P&gt;Do not clear the&amp;nbsp;retry counter RETRY_CNT[7:0] using&amp;nbsp;RETRY_CLR.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Miguel_Mannes_Hilleshiem_1-1761144373081.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/362141iEDA27F7884702E67/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Miguel_Mannes_Hilleshiem_1-1761144373081.png" alt="Miguel_Mannes_Hilleshiem_1-1761144373081.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps you.&lt;/P&gt;
&lt;P&gt;Miguel.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Oct 2025 12:51:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Power-Management/How-to-prevent-MCU-reset-loop-and-go-to-Deep-Failsafe/m-p/2190843#M4753</guid>
      <dc:creator>Miguel_Mannes_Hilleshiem</dc:creator>
      <dc:date>2025-10-23T12:51:50Z</dc:date>
    </item>
  </channel>
</rss>

