<?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 Watchdog example in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Watchdog-example/m-p/585595#M21285</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by miccio on Fri Aug 07 04:35:52 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;while going through the Watchdog example code (specifically, the one for lpc11c24) I noticed something a little misleading: the following snippet claims:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
/* Comment this define to let the watchdog timeout. In this case, the board
&amp;nbsp;&amp;nbsp; will continuously drop via to the WDT warning. */
#define DISABLE_WDT_TIMEOUT
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, there SysTick interrupt cointains this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
#if !defined(DISABLE_WDT_TIMEOUT)
Chip_WWDT_Feed(LPC_WWDT);
#endif
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So it will actually feed the watchdog if the symbol isn't defined, therefore preventing it from timeout-ing. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So my conclusion is that it actually works the other way round, which is: comment the symbol -&amp;gt; no timeout , keep the symbol -&amp;gt; force timeout and call WDT_IRQHandler.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this a known issue or am I missing something? Thanks in advance &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 20:24:38 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T20:24:38Z</dc:date>
    <item>
      <title>Watchdog example</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Watchdog-example/m-p/585595#M21285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by miccio on Fri Aug 07 04:35:52 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;while going through the Watchdog example code (specifically, the one for lpc11c24) I noticed something a little misleading: the following snippet claims:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
/* Comment this define to let the watchdog timeout. In this case, the board
&amp;nbsp;&amp;nbsp; will continuously drop via to the WDT warning. */
#define DISABLE_WDT_TIMEOUT
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, there SysTick interrupt cointains this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
#if !defined(DISABLE_WDT_TIMEOUT)
Chip_WWDT_Feed(LPC_WWDT);
#endif
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So it will actually feed the watchdog if the symbol isn't defined, therefore preventing it from timeout-ing. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So my conclusion is that it actually works the other way round, which is: comment the symbol -&amp;gt; no timeout , keep the symbol -&amp;gt; force timeout and call WDT_IRQHandler.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this a known issue or am I missing something? Thanks in advance &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:24:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Watchdog-example/m-p/585595#M21285</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:24:38Z</dc:date>
    </item>
  </channel>
</rss>

