<?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: Watchdog ISR not getting called in S32 SDK</title>
    <link>https://community.nxp.com/t5/S32-SDK/Watchdog-ISR-not-getting-called/m-p/742308#M315</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please see&amp;nbsp;&lt;A href="https://community.nxp.com/thread/467972"&gt;WDOG direct reset does not enter the interrupt(S32K144)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reset is delayed only by 128 bus clock cycles after the WDOG interrupt vector is fetched.&lt;/P&gt;&lt;P&gt;Regardless of the content of WDOG ISR, the reset is forced in 128 bus cycles.&lt;/P&gt;&lt;P&gt;I suppose the execution of the Flash command takes more than that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Feb 2018 11:45:19 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2018-02-13T11:45:19Z</dc:date>
    <item>
      <title>Watchdog ISR not getting called</title>
      <link>https://community.nxp.com/t5/S32-SDK/Watchdog-ISR-not-getting-called/m-p/742307#M314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to setup watchdog monitor for my application. The watchdog ISR does not seem to be called when the reset occurs.&lt;/P&gt;&lt;P&gt;SDK used:&amp;nbsp;S32SDK_S32K14x_EAR_0.8.4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am just calling these SDK APIs to configure and initialize the watchdog during the app initialisation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;WDOG_DRV_SetInt(INST_WATCHDOG1, true, &lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;watchdogResetHandler&lt;/STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;);&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;WDOG_DRV_Init(INST_WATCHDOG1, &amp;amp;watchdog1_Config0);&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And my ISR routine just writes a Bytes into the flash and I try to read it back when the device resets:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;void watchdogResetHandler()&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt; static const uint8_t RESET_SIGNATURE = 0xAB;&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;//Write an entry indicating watchdog reset&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt; writeNVMData((uint8_t*)0x1400000D, 1, &amp;amp;RESET_SIGNATURE);&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;}&amp;nbsp; &amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looks like the interrupts are enabled properly. But, the bytes 0xAB does not seem to be written. Have I missed to enable something here?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_7.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/8516iCC240C3CCF658467/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2018 10:25:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/Watchdog-ISR-not-getting-called/m-p/742307#M314</guid>
      <dc:creator>venkatramanc</dc:creator>
      <dc:date>2018-02-13T10:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Watchdog ISR not getting called</title>
      <link>https://community.nxp.com/t5/S32-SDK/Watchdog-ISR-not-getting-called/m-p/742308#M315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please see&amp;nbsp;&lt;A href="https://community.nxp.com/thread/467972"&gt;WDOG direct reset does not enter the interrupt(S32K144)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reset is delayed only by 128 bus clock cycles after the WDOG interrupt vector is fetched.&lt;/P&gt;&lt;P&gt;Regardless of the content of WDOG ISR, the reset is forced in 128 bus cycles.&lt;/P&gt;&lt;P&gt;I suppose the execution of the Flash command takes more than that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2018 11:45:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/Watchdog-ISR-not-getting-called/m-p/742308#M315</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2018-02-13T11:45:19Z</dc:date>
    </item>
  </channel>
</rss>

