<?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 LPC2368 Watchdog Timer in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2368-Watchdog-Timer/m-p/551091#M14126</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by hemant on Sun Dec 22 21:07:38 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using LPC2368. It has pretty complex code running with 1 Timer interrupt (100uS continuous) , 2 UART interrupts, 1 SPI Interrupt, 1 USB interrupt and main loop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Watchdog timer is of 5 sec and is feed in main loop and in different places.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;System works well till 2 hrs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After 2-3 hrs (undefined interval) there is sudden watchdog reset and system goes in error (handled in my code.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In errata sheet of LPC2368 following is written&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Introduction:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The Watchdog timer can reset the microcontroller within a reasonable amount of time if it&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;enters an erroneous state.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After writing 0xAA to WDFEED, any APB register access other than writing 0x55 to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;WDFEED may cause an immediate reset.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Work-around:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Avoid APB accesses in the middle of the feedsequence. This implies that interrupts and&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the GPDMA should be disabled while feeding the Watchdog.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the cause of WDT reset??? that too after 2-3 hrs??&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How to find at which point in code WDT reset occures?? I don't have any debugger.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hemant Undale&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:52:21 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:52:21Z</dc:date>
    <item>
      <title>LPC2368 Watchdog Timer</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2368-Watchdog-Timer/m-p/551091#M14126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by hemant on Sun Dec 22 21:07:38 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using LPC2368. It has pretty complex code running with 1 Timer interrupt (100uS continuous) , 2 UART interrupts, 1 SPI Interrupt, 1 USB interrupt and main loop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Watchdog timer is of 5 sec and is feed in main loop and in different places.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;System works well till 2 hrs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After 2-3 hrs (undefined interval) there is sudden watchdog reset and system goes in error (handled in my code.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In errata sheet of LPC2368 following is written&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Introduction:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The Watchdog timer can reset the microcontroller within a reasonable amount of time if it&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;enters an erroneous state.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After writing 0xAA to WDFEED, any APB register access other than writing 0x55 to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;WDFEED may cause an immediate reset.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Work-around:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Avoid APB accesses in the middle of the feedsequence. This implies that interrupts and&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the GPDMA should be disabled while feeding the Watchdog.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the cause of WDT reset??? that too after 2-3 hrs??&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How to find at which point in code WDT reset occures?? I don't have any debugger.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hemant Undale&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:52:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2368-Watchdog-Timer/m-p/551091#M14126</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: LPC2368 Watchdog Timer</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2368-Watchdog-Timer/m-p/551092#M14127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by hemant on Sun Dec 22 21:19:25 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I have posted this question on ARM forum as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I assume&amp;nbsp; "my code keep re-entering ISR without kicking that dog for a while"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I assume that this is happening then how should i come out of this situation, any workaround? Do I need to feed the dog in ISR?? Is it a good practice?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have some strange observation that when my system is handling error state (after watch dog reset), it jumps to a location in bootloader (that we have written) and hangs there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hemant&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:52:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2368-Watchdog-Timer/m-p/551092#M14127</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:52:22Z</dc:date>
    </item>
  </channel>
</rss>

