<?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: S32K310 FUNCTION RESET in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K310-FUNCTION-RESET/m-p/2132090#M50805</link>
    <description>&lt;P&gt;Hi @&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201913" target="_self"&gt;&lt;SPAN class=""&gt;VaneB&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Without any changes to my software environment, I was unable to reproduce the previous malfunction. However: A1: I checked SWT -&amp;gt; CR -&amp;gt; FRZ, and it's clear that this register flag has been set to 1.&lt;BR /&gt;A2: I guess you want to determine whether the MCU has reset by flipping the GPIO. The way I observed it was by monitoring a continuously accumulating OS_TICK variable. Previously, when we determined that the MCU had reset, it was because we saw this variable start counting again from 0 (1ms count, uint32 type)&lt;BR /&gt;A3: This situation will not occur when running without setting breakpoints.&lt;/P&gt;&lt;P&gt;I am currently unable to reproduce the fault and therefore cannot continue to provide valid information. However, I have a question. Could the reset of this MCU be related to the debugger? For instance, if the JLINK I'm using has an issue, it might cause other MCU exceptions to be triggered when performing breakpoint debugging (as far as I know, software breakpoints are attached by the debugger).&lt;/P&gt;</description>
    <pubDate>Fri, 11 Jul 2025 01:57:50 GMT</pubDate>
    <dc:creator>Embedded_novice</dc:creator>
    <dc:date>2025-07-11T01:57:50Z</dc:date>
    <item>
      <title>S32K310 FUNCTION RESET</title>
      <link>https://community.nxp.com/t5/S32K/S32K310-FUNCTION-RESET/m-p/2130751#M50717</link>
      <description>&lt;P&gt;The single-step simulation is shown in the figure. I added a breakpoint in IAR to perform the single-step simulation. The rightmost OS_TICK is the cumulative value of my 1ms timer. When I was conducting single-step debugging, OS_TICK suddenly reset to zero and started accumulating again, and the reset count in the MCRGM register also started accumulating. This indicates that something triggered my reset, but I couldn't find the reason for my reset in the FES register.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Q1.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/346720i4ACE320C4397D4CC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Q1.png" alt="Q1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I suspect it might be due to the fact that I configured the software watchdog. However, I have already configured the software watchdog to not run in the DEBUG mode, and I only initialized the watchdog. Why did it still trigger a reset?&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Q2.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/346721i92007DBEBB63BA5C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Q2.png" alt="Q2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Could you please provide some troubleshooting directions? Thank you very much!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 08:26:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K310-FUNCTION-RESET/m-p/2130751#M50717</guid>
      <dc:creator>Embedded_novice</dc:creator>
      <dc:date>2025-07-09T08:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: S32K310 FUNCTION RESET</title>
      <link>https://community.nxp.com/t5/S32K/S32K310-FUNCTION-RESET/m-p/2131960#M50800</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/213197"&gt;@Embedded_novice&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please check if the Software Watchdog Timer (SWT) is properly disabled in debug mode? Specifically, take a look at the CR[FRZ] bit. It should be set to freeze the watchdog while debugging.&lt;/P&gt;
&lt;P&gt;Also, as a quick test, try toggling a GPIO pin right at the start of your code. That can help confirm whether the MCU is resetting, especially since you are not seeing any reset flags in MC_RGM.DES or MC_RGM.FES.&lt;/P&gt;
&lt;P&gt;And just one more thing, try running the code without any breakpoints to see if the reset still happens.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, VaneB&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jul 2025 20:29:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K310-FUNCTION-RESET/m-p/2131960#M50800</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2025-07-10T20:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: S32K310 FUNCTION RESET</title>
      <link>https://community.nxp.com/t5/S32K/S32K310-FUNCTION-RESET/m-p/2132090#M50805</link>
      <description>&lt;P&gt;Hi @&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201913" target="_self"&gt;&lt;SPAN class=""&gt;VaneB&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Without any changes to my software environment, I was unable to reproduce the previous malfunction. However: A1: I checked SWT -&amp;gt; CR -&amp;gt; FRZ, and it's clear that this register flag has been set to 1.&lt;BR /&gt;A2: I guess you want to determine whether the MCU has reset by flipping the GPIO. The way I observed it was by monitoring a continuously accumulating OS_TICK variable. Previously, when we determined that the MCU had reset, it was because we saw this variable start counting again from 0 (1ms count, uint32 type)&lt;BR /&gt;A3: This situation will not occur when running without setting breakpoints.&lt;/P&gt;&lt;P&gt;I am currently unable to reproduce the fault and therefore cannot continue to provide valid information. However, I have a question. Could the reset of this MCU be related to the debugger? For instance, if the JLINK I'm using has an issue, it might cause other MCU exceptions to be triggered when performing breakpoint debugging (as far as I know, software breakpoints are attached by the debugger).&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jul 2025 01:57:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K310-FUNCTION-RESET/m-p/2132090#M50805</guid>
      <dc:creator>Embedded_novice</dc:creator>
      <dc:date>2025-07-11T01:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: S32K310 FUNCTION RESET</title>
      <link>https://community.nxp.com/t5/S32K/S32K310-FUNCTION-RESET/m-p/2132685#M50847</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/213197"&gt;@Embedded_novice&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It is possible that the issue is caused by the debugger itself. To rule out debugger-specific behavior, consider testing with a different debugging tool.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Another potential root cause could be related to memory caching. If variables are stored in cached memory regions, their values might not be preserved correctly during debugging. To address this, consider placing such variables in non-cached memory regions to ensure their values remain consistent and are not lost unexpectedly.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jul 2025 20:20:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K310-FUNCTION-RESET/m-p/2132685#M50847</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2025-07-11T20:20:58Z</dc:date>
    </item>
  </channel>
</rss>

