<?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 S32k144 in S32K</title>
    <link>https://community.nxp.com/t5/S32K/WatchDog-S32k144/m-p/660506#M606</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using S32K144EVB - Q100 (N47T) board, I have to wait until ULK == 1. But when I tried the same code on FRDMPK144 - Q100 (N77P), it was stuck in the while loop as you wrote. Nevertheless, your original code works on that board. So, I assume you use FRDMPK144 - Q100 and you can run it as well. Please try the attached code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Feb 2017 20:22:27 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2017-02-27T20:22:27Z</dc:date>
    <item>
      <title>WatchDog S32k144</title>
      <link>https://community.nxp.com/t5/S32K/WatchDog-S32k144/m-p/660503#M603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I try to enable WDT follow bellow: &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;__disable_interrupt(); // disable global interrupt&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; WDOG-&amp;gt;CNT = 0xD928C520; //unlock watchdog&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; while(((WDOG-&amp;gt;CS &amp;amp; WDOG_CS_ULK_MASK) &amp;gt;&amp;gt; WDOG_CS_ULK_SHIFT) != 0U); //wait until registers are unlocked&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; WDOG-&amp;gt;TOVAL = 256; //set timeout value&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; WDOG-&amp;gt;CS = WDOG_CS_EN(1) | WDOG_CS_CLK(1) | WDOG_CS_INT(0) |&amp;nbsp; WDOG_CS_WIN(0) | WDOG_CS_UPDATE(0);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; while(((WDOG-&amp;gt;CS &amp;amp; WDOG_CS_RCS_MASK) &amp;gt;&amp;gt; WDOG_CS_RCS_SHIFT) != 0U); //wait until new configuration takes effect&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; __enable_interrupt(); // enable global interrupt&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it never causes a MCU reset.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;Any idea what's going on?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN class="" lang="en"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2017 19:23:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/WatchDog-S32k144/m-p/660503#M603</guid>
      <dc:creator>lohrsistemas</dc:creator>
      <dc:date>2017-02-22T19:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: WatchDog S32k144</title>
      <link>https://community.nxp.com/t5/S32K/WatchDog-S32k144/m-p/660504#M604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The issue seems to be here&lt;/P&gt;&lt;P&gt;You have&lt;BR /&gt;while(((WDOG-&amp;gt;CS &amp;amp; WDOG_CS_ULK_MASK) &amp;gt;&amp;gt; WDOG_CS_ULK_SHIFT) != 0U); // wait until registers are unlocked&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ULK&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b - WDOG is locked.&lt;/P&gt;&lt;P&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; 1b - WDOG is unlocked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while(((WDOG-&amp;gt;CS &amp;amp; WDOG_CS_ULK_MASK) &amp;gt;&amp;gt; WDOG_CS_ULK_SHIFT) == 0U);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Feb 2017 22:18:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/WatchDog-S32k144/m-p/660504#M604</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2017-02-26T22:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: WatchDog S32k144</title>
      <link>https://community.nxp.com/t5/S32K/WatchDog-S32k144/m-p/660505#M605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel, thanks for your feedback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I put:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while(((WDOG-&amp;gt;CS &amp;amp; WDOG_CS_ULK_MASK) &amp;gt;&amp;gt; WDOG_CS_ULK_SHIFT) == 0U);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The firmware never goes out of this while.&lt;/P&gt;&lt;P&gt;Any ideia whats happening?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2017 11:44:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/WatchDog-S32k144/m-p/660505#M605</guid>
      <dc:creator>lohrsistemas</dc:creator>
      <dc:date>2017-02-27T11:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: WatchDog S32k144</title>
      <link>https://community.nxp.com/t5/S32K/WatchDog-S32k144/m-p/660506#M606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using S32K144EVB - Q100 (N47T) board, I have to wait until ULK == 1. But when I tried the same code on FRDMPK144 - Q100 (N77P), it was stuck in the while loop as you wrote. Nevertheless, your original code works on that board. So, I assume you use FRDMPK144 - Q100 and you can run it as well. Please try the attached code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2017 20:22:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/WatchDog-S32k144/m-p/660506#M606</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2017-02-27T20:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: WatchDog S32k144</title>
      <link>https://community.nxp.com/t5/S32K/WatchDog-S32k144/m-p/660507#M607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel, sorry for the delay,&lt;/P&gt;&lt;P&gt;My board is FRDMPK144 - Q100. &lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;I tried to use the code you sent me, but I still can not cause the watchdog overflow/reset MCU.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 17:22:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/WatchDog-S32k144/m-p/660507#M607</guid>
      <dc:creator>lohrsistemas</dc:creator>
      <dc:date>2017-03-09T17:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: WatchDog S32k144</title>
      <link>https://community.nxp.com/t5/S32K/WatchDog-S32k144/m-p/660508#M608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;The FRDMPK144 - Q100 board has N77P mask-set chip (prototype).&lt;/P&gt;&lt;P&gt;In the RM for this mask-set the ULK bit is reserved and always has the value 0.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ulk.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/16697i2E2757297E00693A/image-size/large?v=v2&amp;amp;px=999" role="button" title="ulk.png" alt="ulk.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is the reason why it was stuck in the while loop. You can see ULK bit is not used in the RM Example configuration:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="code.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/16739iD258192197B886FA/image-size/large?v=v2&amp;amp;px=999" role="button" title="code.png" alt="code.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Strangely enough, I can run the very code on my FRDMPK144 - Q100 and you don’t.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This issue (among many others) is solved with the new revision of the chip (N47T). Where the ULK bit is implemented. And it works. I would wait for the new revision.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2017 10:09:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/WatchDog-S32k144/m-p/660508#M608</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2017-03-10T10:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: WatchDog S32k144</title>
      <link>https://community.nxp.com/t5/S32K/WatchDog-S32k144/m-p/660509#M609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Daniel, I discovered my problem.&lt;BR /&gt;At the beginning of my program I was disabling the watchdog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; __disable_interrupt(); // disable global interrupt&lt;BR /&gt;&amp;nbsp; WDOG-&amp;gt;CNT=0xD928C520; &amp;nbsp;&amp;nbsp; &amp;nbsp;/* Unlock watchdog */&lt;BR /&gt;&amp;nbsp; WDOG-&amp;gt;TOVAL=0x0000FFFF;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Maximum timeout value */&lt;BR /&gt;&amp;nbsp; WDOG-&amp;gt;CS = 0x00002100;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Disable watchdog */&lt;BR /&gt;&amp;nbsp; __enable_interrupt(); // enable global interrupt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But then after the settings of pwms, analog inputs, timers, I enabled.&lt;BR /&gt;I think that by being disabled when I enabled it it did not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Excluding the disable function, it started to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2017 19:32:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/WatchDog-S32k144/m-p/660509#M609</guid>
      <dc:creator>lohrsistemas</dc:creator>
      <dc:date>2017-03-10T19:32:02Z</dc:date>
    </item>
  </channel>
</rss>

