<?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: MK10 Watchdog Reset Problem in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-Watchdog-Reset-Problem/m-p/166946#M1015</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you checked that the reset occurs in the while-loop and not during the initialization?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, have you checked that WINL and WINH do not contain nonzero values? If they do, kicking too early is punishable by reset.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Sep 2011 22:41:57 GMT</pubDate>
    <dc:creator>konrada_anton</dc:creator>
    <dc:date>2011-09-14T22:41:57Z</dc:date>
    <item>
      <title>MK10 Watchdog Reset Problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-Watchdog-Reset-Problem/m-p/166945#M1014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;void main (void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Timeout Value has to be more than 4 */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* WDOG_UNLOCK: WDOGUNLOCK=0xC520 */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WDOG-&amp;gt;UNLOCK = (uint16_t)0xC520u;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Key 1 */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* WDOG_UNLOCK : WDOGUNLOCK=0xD928 */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WDOG-&amp;gt;UNLOCK&amp;nbsp; = (uint16_t)0xD928u;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Key 2 */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* WDOG_32bit Value to Set Reset Delay: */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WDOG-&amp;gt;TOVALH = 0;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WDOG-&amp;gt;TOVALL = 1000;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;WDOG-&amp;gt;PRESC = 0x0000;&amp;nbsp;/* Prescaler needs to be set 0 */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* WDOG_STCTRLH: ??=0,DISTESTWDOG=0,BYTESEL=0,TESTSEL=0,TESTWDOG=0,??=0,STNDBYEN=1,WAITEN=1,STOPEN=1,DBGEN=0,ALLOWUPDATE=1,WINEN=0,IRQRSTEN=0,CLKsrc=0,WDOGEN=1 */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;WDOG-&amp;gt;STCTRLH = (uint16_t)0x01D1u;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;// other code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;while(1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;WDOG-&amp;gt;REFRESH = 0xA602;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;WDOG-&amp;gt;REFRESH = 0xB480;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;while doing continuous refresh of watchdog register controller getting reset. wdog has not reached timeout period.&lt;/P&gt;&lt;P&gt;need to know the reasion of reset of controller.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;Continuous kick of wdog is permitterd or not ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;share if u have any code for watchdog and kickdog related to cortex M4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 18:18:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-Watchdog-Reset-Problem/m-p/166945#M1014</guid>
      <dc:creator>dineshVaghela</dc:creator>
      <dc:date>2011-09-14T18:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: MK10 Watchdog Reset Problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-Watchdog-Reset-Problem/m-p/166946#M1015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you checked that the reset occurs in the while-loop and not during the initialization?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, have you checked that WINL and WINH do not contain nonzero values? If they do, kicking too early is punishable by reset.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 22:41:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-Watchdog-Reset-Problem/m-p/166946#M1015</guid>
      <dc:creator>konrada_anton</dc:creator>
      <dc:date>2011-09-14T22:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: MK10 Watchdog Reset Problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-Watchdog-Reset-Problem/m-p/166947#M1016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have checked the reset is because of Watchdog and reset occurs during while loop.&lt;/P&gt;&lt;P&gt;and i have disabled window&lt;/P&gt;&lt;P&gt;and also with window with "WINH and WINL" are 0&amp;nbsp; because of continuous kicking the dog controller is getting reset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;kicking the dog is proper but i dont know the reason of controller reset because of watchdog.&lt;/P&gt;&lt;P&gt;if u have any code then please share with me..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 10:20:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-Watchdog-Reset-Problem/m-p/166947#M1016</guid>
      <dc:creator>dineshVaghela</dc:creator>
      <dc:date>2011-09-15T10:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: MK10 Watchdog Reset Problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-Watchdog-Reset-Problem/m-p/166948#M1017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see no significant difference to our code (which I can't post).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible that you get an unexpected interrupt whose handler takes too long?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 13:51:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-Watchdog-Reset-Problem/m-p/166948#M1017</guid>
      <dc:creator>konrada_anton</dc:creator>
      <dc:date>2011-09-15T13:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: MK10 Watchdog Reset Problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-Watchdog-Reset-Problem/m-p/166949#M1018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read the reference manual where it talks about "Refreshing the Watchdog". &amp;nbsp;The two writes in the while loop must occur within the same 20 bus cycles. &amp;nbsp;If you take any interrupt between them, the watchdog logic will fire. &amp;nbsp;To be safe, you should disable interrupts just before the first write to "UNLOCK"&amp;nbsp;and then reenable them after the write to "STCTRLH" and disable interrupts around the two writes in the while(1) loop. &amp;nbsp;Then your code will work as expected. &amp;nbsp;Be careful to figure out the clock you are using so you can get proper delays. &amp;nbsp;In my case, the processor is running at 96 Mhz and the WDOG clock is running at 9.6Mhz.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 08:08:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-Watchdog-Reset-Problem/m-p/166949#M1018</guid>
      <dc:creator>PhilH</dc:creator>
      <dc:date>2011-09-16T08:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: MK10 Watchdog Reset Problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-Watchdog-Reset-Problem/m-p/166950#M1019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the clock is internal 1 kHz. and i have also checked that writing to all register is proper.&lt;/P&gt;&lt;P&gt;and how did you selected 9.6Mhz is it external Clock.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have also checked that by refreshing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;WDOG-&amp;gt;REFRESH = 0xA602;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;WDOG-&amp;gt;REFRESH = 0xB480;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;the value of watchdog register is getting reset also.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;other observation is that&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if i refresh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;WDOG-&amp;gt;REFRESH = 0xA602;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;WDOG-&amp;gt;REFRESH = 0xB480;&lt;/P&gt;&lt;P&gt;this registers at 5 ms then reset because of wdog is 1:30 min and if i&lt;/P&gt;&lt;P&gt;increases refresh at 10ms time of reset because of wdog is doubled like that&lt;/P&gt;&lt;P&gt;depend upon refresh watchdog reset is varing .&lt;/P&gt;&lt;P&gt;but my window is disabled and with window also&amp;nbsp;this problem persists.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;thanks for ur support&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 12:31:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-Watchdog-Reset-Problem/m-p/166950#M1019</guid>
      <dc:creator>dineshVaghela</dc:creator>
      <dc:date>2011-09-16T12:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: MK10 Watchdog Reset Problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-Watchdog-Reset-Problem/m-p/166951#M1020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to the Sub-Family Reference Manual&lt;/P&gt;&lt;P&gt;1."Unlock sequence for allowing updates to write-once WDOG control/configuration bits."&lt;/P&gt;&lt;P&gt;2.More important ,&lt;/P&gt;&lt;P&gt;"There must be&amp;nbsp;update of the control and configuration registers within the WCT window after unlocking. At least one of the following registers must be written to within the WCT window to avoid reset:&lt;BR /&gt;• WDOG_ST_CTRL_H, WDOG_ST_CTRL_L&lt;BR /&gt;• WDOG_TO_VAL_H, WDOG_TO_VAL_L&lt;BR /&gt;• WDOG_WIN_H, WDOG_WIN_L&lt;BR /&gt;• WDOG_PRESCALER"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, you need to unlock ,then update the specific control/configuration register , and at last update WDOG_REFRESH register to feed watchdog to avoid reset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My experiment condition: WDOG_STCTRLH = 0x01D3, WDOG_TOVALH = 0x0092, WDOG_TOVALL = 0x7C00,WDOG_PRESC = 0x0400&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2011 20:26:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-Watchdog-Reset-Problem/m-p/166951#M1020</guid>
      <dc:creator>CuiCui12312</dc:creator>
      <dc:date>2011-12-20T20:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: MK10 Watchdog Reset Problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-Watchdog-Reset-Problem/m-p/166952#M1021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I recently came across this problem and you are also stuck at the same place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the reference manual, the refresh code must be executed within 20 bus clock cycles after first trigger. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the code you have posted&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; while(1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; WDOG-&amp;gt;REFRESH = 0xA602;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; WDOG-&amp;gt;REFRESH = 0xB480;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I feel the refresh may execute within 20 bus cycles but another refresh trigger may be kicked before the 20 bus cycles of the previous refresh was over. What i conclude from this is you need to wait for sometime before you execute the refresh again. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best thing to do is and THE SOLUTION TO THIS PROBLEM FOR ME was to add a very small delay before executing the refresh to the watch dog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;BR /&gt;Kashyap Gada&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2013 07:42:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-Watchdog-Reset-Problem/m-p/166952#M1021</guid>
      <dc:creator>kashyapgada</dc:creator>
      <dc:date>2013-06-12T07:42:02Z</dc:date>
    </item>
  </channel>
</rss>

