<?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 LPC84x Watchdog does not always work in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC84x-Watchdog-does-not-always-work/m-p/854328#M33967</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are having problems with the watchdog on a LPC845.&lt;/P&gt;&lt;P&gt;We are trying to force a watchdog reset on purpose because there is no other way to reset the LPC845.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem:&lt;/P&gt;&lt;P&gt;On some hardware it works, on other equal hardware it simply does not trigger. Out of 50 PCB's we have about 10 failing on watchdog reset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;our code:&lt;/P&gt;&lt;P&gt;__disable_irq(); //Disable Interrupts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SYS_PeripheralEnableClock(SYS_PERIPHERAL_WWDT);&lt;BR /&gt; SYS_HardwareBlockPowerUp(SYS_POWER_HARDWARE_BLOCK_WDTOSC);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// The LPC_WWDT_T-&amp;gt;TC value after reset (0xFF) is fine:&lt;BR /&gt; // that is the minimum value&lt;BR /&gt; LPC_WWDT-&amp;gt;TC = 0xff; // not really needed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LPC_WWDT-&amp;gt;MOD = 0x03; // Enable the watchdog and make it generate a&lt;BR /&gt; // chip reset at timeout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Start the watchdog&lt;BR /&gt; LPC_WWDT-&amp;gt;FEED = 0xAA;&lt;BR /&gt; LPC_WWDT-&amp;gt;FEED = 0x55;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; while (1); // on some hardware this triggers watchdog reset, on other hardware it simply stays here forever.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope someone knows a&amp;nbsp;line of code that is required for getting the watchdog to work all the time...&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Feb 2019 14:50:01 GMT</pubDate>
    <dc:creator>hassemuller</dc:creator>
    <dc:date>2019-02-11T14:50:01Z</dc:date>
    <item>
      <title>LPC84x Watchdog does not always work</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC84x-Watchdog-does-not-always-work/m-p/854328#M33967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are having problems with the watchdog on a LPC845.&lt;/P&gt;&lt;P&gt;We are trying to force a watchdog reset on purpose because there is no other way to reset the LPC845.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem:&lt;/P&gt;&lt;P&gt;On some hardware it works, on other equal hardware it simply does not trigger. Out of 50 PCB's we have about 10 failing on watchdog reset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;our code:&lt;/P&gt;&lt;P&gt;__disable_irq(); //Disable Interrupts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SYS_PeripheralEnableClock(SYS_PERIPHERAL_WWDT);&lt;BR /&gt; SYS_HardwareBlockPowerUp(SYS_POWER_HARDWARE_BLOCK_WDTOSC);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// The LPC_WWDT_T-&amp;gt;TC value after reset (0xFF) is fine:&lt;BR /&gt; // that is the minimum value&lt;BR /&gt; LPC_WWDT-&amp;gt;TC = 0xff; // not really needed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LPC_WWDT-&amp;gt;MOD = 0x03; // Enable the watchdog and make it generate a&lt;BR /&gt; // chip reset at timeout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Start the watchdog&lt;BR /&gt; LPC_WWDT-&amp;gt;FEED = 0xAA;&lt;BR /&gt; LPC_WWDT-&amp;gt;FEED = 0x55;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; while (1); // on some hardware this triggers watchdog reset, on other hardware it simply stays here forever.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope someone knows a&amp;nbsp;line of code that is required for getting the watchdog to work all the time...&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2019 14:50:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC84x-Watchdog-does-not-always-work/m-p/854328#M33967</guid>
      <dc:creator>hassemuller</dc:creator>
      <dc:date>2019-02-11T14:50:01Z</dc:date>
    </item>
  </channel>
</rss>

