<?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: WatchDog reset Issues with S32DS  2018.R1 build id 180815</title>
    <link>https://community.nxp.com/t5/S32K/WatchDog-reset-Issues-with-S32DS-2018-R1-build-id-180815/m-p/1188216#M8979</link>
    <description>&lt;P&gt;Hi Raju,&lt;/P&gt;
&lt;P&gt;could you show me configuration of watchdog registers? And do you use 32bit write for refreshing? Or?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_0-1606223779160.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/130871i935C30F59F3B450E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_0-1606223779160.png" alt="lukaszadrapa_0-1606223779160.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I'm not sure about the reason, I will ask apps/design team. But need more details...&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Nov 2020 13:17:47 GMT</pubDate>
    <dc:creator>lukaszadrapa</dc:creator>
    <dc:date>2020-11-24T13:17:47Z</dc:date>
    <item>
      <title>WatchDog reset Issues with S32DS  2018.R1 build id 180815</title>
      <link>https://community.nxp.com/t5/S32K/WatchDog-reset-Issues-with-S32DS-2018-R1-build-id-180815/m-p/1178522#M8697</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd implemented a watchdog code on the S32K142 device where I checked &amp;amp; it's working absolutely fine. I developed with 300ms watchdog timeout &amp;amp; refreshing at 10ms rate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Strangely, during the modifications in the later software, just adding accessing a variable in the main code is causing the reset and that too immediately 100ms after initializing, not at 300ms. I'm currently using S32DS version 2018.R1 &amp;amp; Build id:&amp;nbsp;180815 as shown below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.JPG" style="width: 701px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/129162i9F0B31281037C231/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.JPG" alt="Capture2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Also, this strange reset is not happening with the other system where the version is 2018.R1 &amp;amp; build id&amp;nbsp;is 180326 as shown below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 524px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/129161iD0604C5158C15D3C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to know the probable reasons for the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Raju.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 06:08:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/WatchDog-reset-Issues-with-S32DS-2018-R1-build-id-180815/m-p/1178522#M8697</guid>
      <dc:creator>bjrajendra</dc:creator>
      <dc:date>2020-11-05T06:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: WatchDog reset Issues with S32DS  2018.R1 build id 180815</title>
      <link>https://community.nxp.com/t5/S32K/WatchDog-reset-Issues-with-S32DS-2018-R1-build-id-180815/m-p/1180566#M8750</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;two ideas from my side:&lt;/P&gt;
&lt;P&gt;- did you confirmed in register RCM_SRS that the reset really comes from watchdog?&lt;/P&gt;
&lt;P&gt;- if some problems appears after adding one instruction or variable or something like that, I would try to disable optimizations for test purposes (screenshot attached).&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 07:20:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/WatchDog-reset-Issues-with-S32DS-2018-R1-build-id-180815/m-p/1180566#M8750</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2020-11-10T07:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: WatchDog reset Issues with S32DS  2018.R1 build id 180815</title>
      <link>https://community.nxp.com/t5/S32K/WatchDog-reset-Issues-with-S32DS-2018-R1-build-id-180815/m-p/1180702#M8757</link>
      <description>&lt;P&gt;Hi Lukas,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Yes, I checked the&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;RCM_SRS and it confirms that the reset is happening because of the Watchdog.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-Also, My Optimization is none as well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;One thing I observed was I'm not enabling &amp;amp; disabling the interrupts during the refresh mechanism. If I do that the reset is not occurring.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Does the interrupts making the watchdog reset like this, kindly clarify the below points&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;Why accessing the variable is causing the reset&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Would like to know what does the interrupt mean to the watchdog refresh mechanism&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;SPAN&gt;I also saw backup reset mechanism for the Watchdog feature, but the software was not enabled with an interrupt also it is happening immediately after 100ms where my watchdog timer is 300ms.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="backupreset.JPG" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/129526iA17B22E5E8F3865C/image-size/large?v=v2&amp;amp;px=999" role="button" title="backupreset.JPG" alt="backupreset.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly clarify in this regard,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Raju.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 10:09:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/WatchDog-reset-Issues-with-S32DS-2018-R1-build-id-180815/m-p/1180702#M8757</guid>
      <dc:creator>bjrajendra</dc:creator>
      <dc:date>2020-11-10T10:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: WatchDog reset Issues with S32DS  2018.R1 build id 180815</title>
      <link>https://community.nxp.com/t5/S32K/WatchDog-reset-Issues-with-S32DS-2018-R1-build-id-180815/m-p/1182248#M8796</link>
      <description>&lt;P&gt;Hi Raju,&lt;/P&gt;
&lt;P&gt;accessing of variable or interrupts have nothing to do with watchdog. That seems to be just a side effect.&lt;/P&gt;
&lt;P&gt;One idea - I would try to enable watchdog interrupt (INT bit in CS register) and disable watchdog in debug mode (DBG bit in CS). Once the interrupt is triggered, check the watchdog registers if you see anything unusual (CNT, TOVAL values...).&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 10:23:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/WatchDog-reset-Issues-with-S32DS-2018-R1-build-id-180815/m-p/1182248#M8796</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2020-11-12T10:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: WatchDog reset Issues with S32DS  2018.R1 build id 180815</title>
      <link>https://community.nxp.com/t5/S32K/WatchDog-reset-Issues-with-S32DS-2018-R1-build-id-180815/m-p/1184947#M8868</link>
      <description>&lt;P&gt;Hi Lukas,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the support &amp;amp; valuable suggestion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I enabled the WDOG_EWM_IRQn both in the initialization and NVIC configuration. There is a reset because where the RCM-&amp;gt; SRS shows it is because of WDOG, but it did not cause any&amp;nbsp;WDOG_EWM_IRQn though I kept a breakpoint at&amp;nbsp;WDOG_EWM_IRQn.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bjrajendra_0-1605679102857.png" style="width: 444px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/130342i79F4AD67E74B939F/image-dimensions/444x98?v=v2" width="444" height="98" role="button" title="bjrajendra_0-1605679102857.png" alt="bjrajendra_0-1605679102857.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, as I told the reset occurs after 100ms which may be the reason why the watch there is no&amp;nbsp;WDOG_EWM_IRQn.&lt;/P&gt;&lt;P&gt;Then in such a case, what are the other causes for WDOG reset other than time/&amp;nbsp;TOVAL count.&amp;nbsp; Also, during this time there is a refresh tick is happening every 10ms.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking forward to your valuable support.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Raju&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 06:58:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/WatchDog-reset-Issues-with-S32DS-2018-R1-build-id-180815/m-p/1184947#M8868</guid>
      <dc:creator>bjrajendra</dc:creator>
      <dc:date>2020-11-18T06:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: WatchDog reset Issues with S32DS  2018.R1 build id 180815</title>
      <link>https://community.nxp.com/t5/S32K/WatchDog-reset-Issues-with-S32DS-2018-R1-build-id-180815/m-p/1186074#M8911</link>
      <description>&lt;P&gt;Hi Raju,&lt;/P&gt;
&lt;P&gt;after some deeper investigation, it seems it's really necessary to disable interrupts during refresh. You wrote:&lt;/P&gt;
&lt;P&gt;"One thing I observed was I'm not enabling &amp;amp; disabling the interrupts during the refresh mechanism. If I do that the reset is not occurring."&lt;/P&gt;
&lt;P&gt;But there's a note in the RM:&lt;/P&gt;
&lt;P&gt;"Before starting the refresh sequence, disable the global&lt;BR /&gt;interrupts. Otherwise, an interrupt could effectively invalidate&lt;BR /&gt;the refresh sequence, if the interrupt occurs before the refresh&lt;BR /&gt;writes finish. After the sequence finishes, restore the global&lt;BR /&gt;interrupt control state."&lt;/P&gt;
&lt;P&gt;And there's also code example:&lt;/P&gt;
&lt;P&gt;To refresh the watchdog and reset the watchdog counter to zero, a refresh sequence is&lt;BR /&gt;required. The code snippet below shows an example for 32-bit write.&lt;BR /&gt;DisableInterrupts; // disable global interrupt&lt;BR /&gt;WDOG_CNT = 0xB480A602; // refresh watchdog&lt;BR /&gt;EnableInterrupts; // enable global interrupt&lt;/P&gt;
&lt;P&gt;So, if this works, I would stick to this solution.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;
&lt;DIV id="tinyMceEditorlukaszadrapa_3" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 14:27:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/WatchDog-reset-Issues-with-S32DS-2018-R1-build-id-180815/m-p/1186074#M8911</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2020-11-19T14:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: WatchDog reset Issues with S32DS  2018.R1 build id 180815</title>
      <link>https://community.nxp.com/t5/S32K/WatchDog-reset-Issues-with-S32DS-2018-R1-build-id-180815/m-p/1187131#M8940</link>
      <description>&lt;P&gt;Hi Lukas,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the valuable information.&lt;/P&gt;&lt;P&gt;But, the reset is happening immediately after 100ms where the watchdog configuration is 300ms. Also, I can confirm there is a refresh at the 10ms rate. I would like to know whether the interrupts during the refresh mechanism reset the device else just ignores or invalidates the refresh mechanism.&lt;/P&gt;&lt;P&gt;Kindly confirm the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Raju&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2020 04:39:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/WatchDog-reset-Issues-with-S32DS-2018-R1-build-id-180815/m-p/1187131#M8940</guid>
      <dc:creator>bjrajendra</dc:creator>
      <dc:date>2020-11-23T04:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: WatchDog reset Issues with S32DS  2018.R1 build id 180815</title>
      <link>https://community.nxp.com/t5/S32K/WatchDog-reset-Issues-with-S32DS-2018-R1-build-id-180815/m-p/1188216#M8979</link>
      <description>&lt;P&gt;Hi Raju,&lt;/P&gt;
&lt;P&gt;could you show me configuration of watchdog registers? And do you use 32bit write for refreshing? Or?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_0-1606223779160.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/130871i935C30F59F3B450E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_0-1606223779160.png" alt="lukaszadrapa_0-1606223779160.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I'm not sure about the reason, I will ask apps/design team. But need more details...&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 13:17:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/WatchDog-reset-Issues-with-S32DS-2018-R1-build-id-180815/m-p/1188216#M8979</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2020-11-24T13:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: WatchDog reset Issues with S32DS  2018.R1 build id 180815</title>
      <link>https://community.nxp.com/t5/S32K/WatchDog-reset-Issues-with-S32DS-2018-R1-build-id-180815/m-p/1188571#M8991</link>
      <description>&lt;P&gt;Hi Lukas,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My WatchDog Configuration is as shown below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bjrajendra_0-1606275984402.png" style="width: 478px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/130910i5E0B2E07E9F6ABB7/image-dimensions/478x191?v=v2" width="478" height="191" role="button" title="bjrajendra_0-1606275984402.png" alt="bjrajendra_0-1606275984402.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My refresh Configuration is as shown below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bjrajendra_1-1606276041230.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/130911i64D045C7E5AE2DA1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bjrajendra_1-1606276041230.png" alt="bjrajendra_1-1606276041230.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know where I'm going wrong. Looking forward for your valuable response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;RAJU.&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>Wed, 25 Nov 2020 04:03:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/WatchDog-reset-Issues-with-S32DS-2018-R1-build-id-180815/m-p/1188571#M8991</guid>
      <dc:creator>bjrajendra</dc:creator>
      <dc:date>2020-11-25T04:03:21Z</dc:date>
    </item>
  </channel>
</rss>

