<?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>S32KのトピックRe: S32k311 Software watchdog issue</title>
    <link>https://community.nxp.com/t5/S32K/S32k311-Software-watchdog-issue/m-p/2146465#M51594</link>
    <description>&lt;P&gt;Hi@&lt;SPAN&gt;AKV&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;No additional steps are required.&lt;BR /&gt;This project has been tested on the S32K311EVB hardware. If you still have questions, I can record a video for you.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Aug 2025 01:41:41 GMT</pubDate>
    <dc:creator>Senlent</dc:creator>
    <dc:date>2025-08-05T01:41:41Z</dc:date>
    <item>
      <title>S32k311 Software watchdog issue</title>
      <link>https://community.nxp.com/t5/S32K/S32k311-Software-watchdog-issue/m-p/2145688#M51561</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I am trying to implement Software watchdog timer in S32K311 MCU&amp;nbsp;, with SWT 0 instance i am facing issue with it&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Requirement: Need to implement watchdog with timeout value of 1 second source clock will be SIRC (32Khz), so count become 32000, It has to be window watchdog with 50% window, it means after count is below 16000 then only has to be refreshed counter is down counter&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;PsuedoCode :&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Init :&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SWT_0.CR.R = 0xFF000188;&amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SWT_0.TO.R = 32000;&amp;nbsp; // !second timeout for watchdog&amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SWT_0.WN.R = 16000; // count below refresh has to be done&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SWT_0.CR.B.WEN = 1;&amp;nbsp; // Enable WDT&amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; s_time_since_last_refresh_ms = 0;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Refresh: Called in scheduler every 1ms (time is correct)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;if (s_time_since_last_refresh_ms &amp;gt; 700 ) //kept 700 instead of 500ms to ensure no issue can be caused by time jitter &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;{&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;SWT_0.SR.R = 0xA602;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;SWT_0.SR.R = 0xB480;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;s_time_since_last_refresh_ms = 0;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Timing of scheduler is correct, tested with Toggling PIN, issue is after 700ms the refresh is called the system reset,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;but when I switch same configuration from Window to normal mode it works fine as expected no reset run forever checked by toggling pin.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Even I checked reset cause it is SWT only in reset register.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Even I checked what is count value inside refresh API when 700ms has passed, count was correct below 16000 , &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;but to get count value I need to disable and watchdog else I can't read the count, so I am not sure what I am doint wrong &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Can someone help me to find the cause of issue and I can't use example code provided by SDK. But i checked the example code they are also using in same way did i miss to configure some other peripherals for correct working on SWT.&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 03 Aug 2025 19:21:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k311-Software-watchdog-issue/m-p/2145688#M51561</guid>
      <dc:creator>AKV</dc:creator>
      <dc:date>2025-08-03T19:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: S32k311 Software watchdog issue</title>
      <link>https://community.nxp.com/t5/S32K/S32k311-Software-watchdog-issue/m-p/2145690#M51562</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AKV_0-1754250520948.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/350696i3053D8E1F69D15CF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AKV_0-1754250520948.png" alt="AKV_0-1754250520948.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is after reset MC_RGM registers value&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Aug 2025 19:49:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k311-Software-watchdog-issue/m-p/2145690#M51562</guid>
      <dc:creator>AKV</dc:creator>
      <dc:date>2025-08-03T19:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: S32k311 Software watchdog issue</title>
      <link>https://community.nxp.com/t5/S32K/S32k311-Software-watchdog-issue/m-p/2145891#M51569</link>
      <description>&lt;P&gt;&lt;A href="mailto:Hi@AKV" target="_blank"&gt;Hi@AKV&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The following is my test process, the bare metal code is as follows, and RTD is 6.0.0.&lt;/P&gt;
&lt;P&gt;And it works as expected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;    IP_SWT_0-&amp;gt;CR &amp;amp;= ~SWT_CR_WEN_MASK;
    IP_SWT_0-&amp;gt;CR |= SWT_CR_WND_MASK;
    IP_SWT_0-&amp;gt;WN = 16000;
    IP_SWT_0-&amp;gt;TO = 32000;
    IP_SWT_0-&amp;gt;SR = 0xA602;
    IP_SWT_0-&amp;gt;SR = 0xB480;
    IP_SWT_0-&amp;gt;CR |= SWT_CR_WEN_MASK;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;void PitNotification(void)//1ms
{
    if(s_time_since_last_refresh_ms&amp;gt;700)
    {
		IP_SWT_0-&amp;gt;SR = 0xA602;
		IP_SWT_0-&amp;gt;SR = 0xB480;
		/* Toggle the gpio pin to blink the LED when the Pit notification is called */
		Siul2_Dio_Ip_TogglePins(LED_PORT, (1UL &amp;lt;&amp;lt; LED_PIN));
		s_time_since_last_refresh_ms = 0;
    }
    else
    {
    	s_time_since_last_refresh_ms++;
    }
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 05:52:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k311-Software-watchdog-issue/m-p/2145891#M51569</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2025-08-04T05:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: S32k311 Software watchdog issue</title>
      <link>https://community.nxp.com/t5/S32K/S32k311-Software-watchdog-issue/m-p/2146125#M51577</link>
      <description>&lt;P&gt;I tested your code in my workspace, not working same behavior as previous, is there any pre-configuration needed for it.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 10:09:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k311-Software-watchdog-issue/m-p/2146125#M51577</guid>
      <dc:creator>AKV</dc:creator>
      <dc:date>2025-08-04T10:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: S32k311 Software watchdog issue</title>
      <link>https://community.nxp.com/t5/S32K/S32k311-Software-watchdog-issue/m-p/2146465#M51594</link>
      <description>&lt;P&gt;Hi@&lt;SPAN&gt;AKV&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;No additional steps are required.&lt;BR /&gt;This project has been tested on the S32K311EVB hardware. If you still have questions, I can record a video for you.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 01:41:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k311-Software-watchdog-issue/m-p/2146465#M51594</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2025-08-05T01:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: S32k311 Software watchdog issue</title>
      <link>https://community.nxp.com/t5/S32K/S32k311-Software-watchdog-issue/m-p/2146569#M51599</link>
      <description>&lt;P&gt;thanks for update, if possible, can you please share you whole workspace I will test on my setup also as I also have same hardware.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 05:26:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k311-Software-watchdog-issue/m-p/2146569#M51599</guid>
      <dc:creator>AKV</dc:creator>
      <dc:date>2025-08-05T05:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: S32k311 Software watchdog issue</title>
      <link>https://community.nxp.com/t5/S32K/S32k311-Software-watchdog-issue/m-p/2146595#M51601</link>
      <description>&lt;P&gt;&lt;A href="mailto:Hi@AKV" target="_blank"&gt;Hi@AKV&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The hardware is base on S32K31XEVB,the IDE is S32 DS V3.6.2 + RTD 6.0.0.&lt;/P&gt;
&lt;P&gt;The blue LED will toggle at cycle of 700ms.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 06:09:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k311-Software-watchdog-issue/m-p/2146595#M51601</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2025-08-05T06:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: S32k311 Software watchdog issue</title>
      <link>https://community.nxp.com/t5/S32K/S32k311-Software-watchdog-issue/m-p/2146632#M51603</link>
      <description>&lt;P&gt;Ok&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188029"&gt;@Senlent&lt;/a&gt;&amp;nbsp;&amp;nbsp;, noted I will try and update you on same, thanks for update again&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 06:43:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k311-Software-watchdog-issue/m-p/2146632#M51603</guid>
      <dc:creator>AKV</dc:creator>
      <dc:date>2025-08-05T06:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: S32k311 Software watchdog issue</title>
      <link>https://community.nxp.com/t5/S32K/S32k311-Software-watchdog-issue/m-p/2149140#M51704</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188029"&gt;@Senlent&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;your given workspace is working as expected, i took binary from it compilation some issue i am facing, but in my application workspace that is created in S32DS ide same steps are not working, is there any possibility that some Pre configuration is need for SWT0 to run properly.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 10:19:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k311-Software-watchdog-issue/m-p/2149140#M51704</guid>
      <dc:creator>AKV</dc:creator>
      <dc:date>2025-08-08T10:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: S32k311 Software watchdog issue</title>
      <link>https://community.nxp.com/t5/S32K/S32k311-Software-watchdog-issue/m-p/2149572#M51717</link>
      <description>&lt;P&gt;&lt;A href="mailto:Hi@AKV" target="_blank"&gt;Hi@AKV&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I don't see such a limitation.&lt;BR /&gt;We've wasted a lot of time on this issue, and I've provided you with a working example. If you still have questions, please provide me with your complete project and I'll help you investigate the possible cause.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2025 01:32:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k311-Software-watchdog-issue/m-p/2149572#M51717</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2025-08-11T01:32:02Z</dc:date>
    </item>
  </channel>
</rss>

