<?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: LPC43xx windowed watchdog timer reset flag in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43xx-windowed-watchdog-timer-reset-flag/m-p/553934#M14660</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by DF9DQ on Fri Jul 25 12:52:09 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that a watchdog reset triggers a core reset, which then resets the watchdog peripheral itself, deleting any sign of a watchdog reset.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use indicators in the event router instead, not without another trick...&amp;nbsp; But the attached example shows what you need to do. See the comments in main.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:37:08 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:37:08Z</dc:date>
    <item>
      <title>LPC43xx windowed watchdog timer reset flag</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43xx-windowed-watchdog-timer-reset-flag/m-p/553932#M14658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by wlamers on Fri Jul 18 05:49:50 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a system that needs reset when an initialisation error occurs. Unfortunately setting bit 0 of RESET_CTRL0 of the reset generation unit (RGU) does not work as I would expect. The core seems to reset (indicated by the LED's all burning) but then it is stuck somewhere as if the wrong address is loaded or something.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Therefore I use the WWDT to force a reset. This actually works as expected. The only thing I need is to check what caused the reset (after a boot/reset). There is a flag in the MOD register of the WWDT called WDTOF (bit2). In contrast to what the manual states, this bit stays 0 after a WWDT reset. I tried setting it by hand (to 1) before starting the WWDT causing the reset. But even than is the flag 0 after the reset. Hence I can not check if the WWDT caused the reset. I tried this on two boards but both behave the same.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What am I doing wrong here?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:37:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43xx-windowed-watchdog-timer-reset-flag/m-p/553932#M14658</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: LPC43xx windowed watchdog timer reset flag</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43xx-windowed-watchdog-timer-reset-flag/m-p/553933#M14659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by wlamers on Mon Jul 21 11:32:24 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Nobody has run into this before?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:37:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43xx-windowed-watchdog-timer-reset-flag/m-p/553933#M14659</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: LPC43xx windowed watchdog timer reset flag</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43xx-windowed-watchdog-timer-reset-flag/m-p/553934#M14660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by DF9DQ on Fri Jul 25 12:52:09 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that a watchdog reset triggers a core reset, which then resets the watchdog peripheral itself, deleting any sign of a watchdog reset.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use indicators in the event router instead, not without another trick...&amp;nbsp; But the attached example shows what you need to do. See the comments in main.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:37:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43xx-windowed-watchdog-timer-reset-flag/m-p/553934#M14660</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: LPC43xx windowed watchdog timer reset flag</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43xx-windowed-watchdog-timer-reset-flag/m-p/553935#M14661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by wlamers on Mon Jul 28 06:01:25 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: DF9DQ&lt;/STRONG&gt;&lt;BR /&gt;The problem is that a watchdog reset triggers a core reset, which then resets the watchdog peripheral itself, deleting any sign of a watchdog reset.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That explains a lot. Not a very useful flag in that case, so to say.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your example. I had solved the issue using a suggestion from the manual is section 14.5.1 by setting a, non-initialised, variable that is given a magic number after successful boot and (a different flag) before a WWD reset. This makes it also possible to distinguish between POR, reset and WWD reset. But I like the event recorder way more and will implement that most likely.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:37:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43xx-windowed-watchdog-timer-reset-flag/m-p/553935#M14661</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:37:08Z</dc:date>
    </item>
  </channel>
</rss>

