<?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: SWT Expires Only 8 Times in S32K</title>
    <link>https://community.nxp.com/t5/S32K/SWT-Expires-Only-8-Times/m-p/1564646#M19235</link>
    <description>&lt;P&gt;Thank you for your reply&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201913"&gt;@VaneB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran the sample code&amp;nbsp;&lt;STRONG&gt;Swt_Ip_Example_S32K344 &lt;/STRONG&gt;and it worked as you described. The example is configured with Operation Mode as Interrupt. As described in the reference manual, this mode generates an interrupt on an initial time-out, and a reset on a second consecutive time-out. To allow the reset to occur, I removed the&amp;nbsp;&lt;SPAN&gt;SWT de-initialization after performing 5 times SWT service and the reset occurred&amp;nbsp;only 8 time as originally described. Is it possible that this is how NXP designed the SWT to operate?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Dec 2022 20:38:31 GMT</pubDate>
    <dc:creator>vgonzalez</dc:creator>
    <dc:date>2022-12-05T20:38:31Z</dc:date>
    <item>
      <title>SWT Expires Only 8 Times</title>
      <link>https://community.nxp.com/t5/S32K/SWT-Expires-Only-8-Times/m-p/1552054#M18807</link>
      <description>&lt;P&gt;Hello. I have a SWT configured as shown in the image below. When I service the SWT, it works as expected. Wen I purposely don't refresh the SWT to prove that it can reset the software execution, it does reset, but only 8 times in a row. After 8 times, it doesn't reset any more and the microcontroller seems not to be running any code. When I have used a SWT with other microcontrollers, the SWT keeps resetting indefinitely if it is not refreshed.&lt;/P&gt;&lt;P&gt;I am not running in debug mode.&lt;/P&gt;&lt;P&gt;Board: S32K3x4EVB-Q257&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vgonzalez_0-1668091948487.png" style="width: 763px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/199889i566C7E026FB4342A/image-dimensions/763x708?v=v2" width="763" height="708" role="button" title="vgonzalez_0-1668091948487.png" alt="vgonzalez_0-1668091948487.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 14:55:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SWT-Expires-Only-8-Times/m-p/1552054#M18807</guid>
      <dc:creator>vgonzalez</dc:creator>
      <dc:date>2022-11-10T14:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: SWT Expires Only 8 Times</title>
      <link>https://community.nxp.com/t5/S32K/SWT-Expires-Only-8-Times/m-p/1553519#M18872</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/208657"&gt;@vgonzalez&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to the information provided, I suggest you to try testing just the SWT without the intervention of any other module, the section &lt;STRONG&gt;65.3.8 Test SWT operation&lt;/STRONG&gt; of the S32K3xx Reference Manual, Rev. 5 shows how to ensure that the internal countdown timer is working properly.&lt;/P&gt;
&lt;P&gt;Also, take a look at&amp;nbsp;&lt;STRONG&gt;Swt_Ip_Example_S32K344, &lt;/STRONG&gt;the examples use SWT timeout interrupt to feed itself. Each 1 second, the SWT timeout expired and the SWT interrupt will reset the counter by writing the service sequence. SWT will be de-initialized after performing 5 times SWT service.&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Let me know if it is helpful for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;B.R.&lt;/P&gt;
&lt;P&gt;VaneB&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 23:12:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SWT-Expires-Only-8-Times/m-p/1553519#M18872</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2022-11-14T23:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: SWT Expires Only 8 Times</title>
      <link>https://community.nxp.com/t5/S32K/SWT-Expires-Only-8-Times/m-p/1564646#M19235</link>
      <description>&lt;P&gt;Thank you for your reply&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201913"&gt;@VaneB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran the sample code&amp;nbsp;&lt;STRONG&gt;Swt_Ip_Example_S32K344 &lt;/STRONG&gt;and it worked as you described. The example is configured with Operation Mode as Interrupt. As described in the reference manual, this mode generates an interrupt on an initial time-out, and a reset on a second consecutive time-out. To allow the reset to occur, I removed the&amp;nbsp;&lt;SPAN&gt;SWT de-initialization after performing 5 times SWT service and the reset occurred&amp;nbsp;only 8 time as originally described. Is it possible that this is how NXP designed the SWT to operate?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 20:38:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SWT-Expires-Only-8-Times/m-p/1564646#M19235</guid>
      <dc:creator>vgonzalez</dc:creator>
      <dc:date>2022-12-05T20:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: SWT Expires Only 8 Times</title>
      <link>https://community.nxp.com/t5/S32K/SWT-Expires-Only-8-Times/m-p/1569042#M19415</link>
      <description>&lt;P&gt;For anyone having this issue, it is related to the value of FRET (section 32.8.7 of the Reference Manual). By changing the value of&amp;nbsp;FRET on boot as shown below, the SWT doesn't have a limited number of times to reset the system.&lt;/P&gt;&lt;P&gt;#define MC_RGM 0x4028C000&lt;/P&gt;&lt;P&gt;#define MC_RGM_FRET MC_RGM+0x18&amp;nbsp;&lt;/P&gt;&lt;P&gt;char *pFRET = (char *)MC_RGM_FRET;&lt;/P&gt;&lt;P&gt;*pFRET = 0;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 14:36:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SWT-Expires-Only-8-Times/m-p/1569042#M19415</guid>
      <dc:creator>vgonzalez</dc:creator>
      <dc:date>2022-12-13T14:36:20Z</dc:date>
    </item>
  </channel>
</rss>

