<?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 LPC4078 Watchdog timer always resets in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4078-Watchdog-timer-always-resets/m-p/573528#M18839</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its always the simple things that get you.&lt;/P&gt;&lt;P&gt;During initialization I init the watchdog as follows....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chip_WWDT_Init(LPC_WWDT);&lt;/P&gt;&lt;P&gt;Chip_WWDT_SetTimeOut(LPC_WWDT, WDT_OSC / 1);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // 1 second till reset&lt;/P&gt;&lt;P&gt;Chip_WWDT_SetOption(LPC_WWDT, WWDT_WDMOD_WDRESET);&lt;/P&gt;&lt;P&gt;Chip_WWDT_Start(LPC_WWDT);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then as the program is running I do a ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chip_WWDT_Feed(LPC_WWDT);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // every 10 mSec&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that it always resets after 1 second.&amp;nbsp; In the debugger, I see the WWDT_Feed() , loads the 0xAA, then 0x55 in plenty of time but the TV register doesn't get set back to the TC setting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The LPC4078 seems only to have the dedicated watchdog oscillator and it is taking about 1 second to reset.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Aug 2016 19:35:24 GMT</pubDate>
    <dc:creator>billbrown</dc:creator>
    <dc:date>2016-08-04T19:35:24Z</dc:date>
    <item>
      <title>LPC4078 Watchdog timer always resets</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4078-Watchdog-timer-always-resets/m-p/573528#M18839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its always the simple things that get you.&lt;/P&gt;&lt;P&gt;During initialization I init the watchdog as follows....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chip_WWDT_Init(LPC_WWDT);&lt;/P&gt;&lt;P&gt;Chip_WWDT_SetTimeOut(LPC_WWDT, WDT_OSC / 1);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // 1 second till reset&lt;/P&gt;&lt;P&gt;Chip_WWDT_SetOption(LPC_WWDT, WWDT_WDMOD_WDRESET);&lt;/P&gt;&lt;P&gt;Chip_WWDT_Start(LPC_WWDT);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then as the program is running I do a ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chip_WWDT_Feed(LPC_WWDT);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // every 10 mSec&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that it always resets after 1 second.&amp;nbsp; In the debugger, I see the WWDT_Feed() , loads the 0xAA, then 0x55 in plenty of time but the TV register doesn't get set back to the TC setting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The LPC4078 seems only to have the dedicated watchdog oscillator and it is taking about 1 second to reset.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2016 19:35:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4078-Watchdog-timer-always-resets/m-p/573528#M18839</guid>
      <dc:creator>billbrown</dc:creator>
      <dc:date>2016-08-04T19:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4078 Watchdog timer always resets</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4078-Watchdog-timer-always-resets/m-p/573529#M18840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fixed it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I needed to add the following to the init routine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Chip_WWDT_Init(LPC_WWDT);&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Chip_WWDT_SetTimeOut(LPC_WWDT, WDT_OSC / 1);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // 1 second till reset&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;STRONG&gt;Chip_WWDT_SetWindow(LPC_WWDT, 0);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //necessary &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Chip_WWDT_SetOption(LPC_WWDT, WWDT_WDMOD_WDRESET);&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Chip_WWDT_Start(LPC_WWDT);&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;You must insure that the window feature is not preventing the feeding of the dog to occur.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2016 18:45:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4078-Watchdog-timer-always-resets/m-p/573529#M18840</guid>
      <dc:creator>billbrown</dc:creator>
      <dc:date>2016-08-08T18:45:54Z</dc:date>
    </item>
  </channel>
</rss>

