<?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: LPC4357: watchdog can't reset in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-watchdog-can-t-reset/m-p/883706#M35379</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="334256" data-username="hbxiao168@163.com" href="https://community.nxp.com/people/hbxiao168@163.com"&gt;haibin xiao&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;Sorry I was&amp;nbsp; wondering what's he meaning of&amp;nbsp; "&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;but as this run about 2 hours, the watchdog can't reset?".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;Do you mean Watchdog work well only in 2 hours, after that, it can' work well ? Could you please tell me detail&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;about this case, also show the more code about how to use Wtachdog .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;And there is a demo code about Watchdog under LPCOpen, you can download it and have a look:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;A class="link-titled" href="https://www.nxp.com/support/developer-resources/software-development-tools/lpc-developer-resources-/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc43xx:LPCOPEN-SOFTWARE-FOR-LPC43XX" title="https://www.nxp.com/support/developer-resources/software-development-tools/lpc-developer-resources-/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc43xx:LPCOPEN-SOFTWARE-FOR-LPC43XX"&gt;LPCOpen Software for LPC43XX|NXP&lt;/A&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/63922iA97AB1E86B3F9EE0/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;Hope it helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jan 2019 07:33:28 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2019-01-22T07:33:28Z</dc:date>
    <item>
      <title>LPC4357: watchdog can't reset</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-watchdog-can-t-reset/m-p/883705#M35378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I am trying to implement the WWDT function in the LPC4357,&amp;nbsp; &lt;SPAN style="background-color: #f6f6f6;"&gt;Watchdog Register is configured successful,&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;watchdog reset&amp;nbsp;can performed when not feed. The can always reset , but as this run about 2 hours, the watchdog can't reset?&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;void WatchDogStart( uint32 Xms )&amp;nbsp;&lt;BR /&gt;{&lt;BR /&gt; WDTC = (&lt;SPAN&gt;12000000*&lt;/SPAN&gt;Xms)/(1000*4);&amp;nbsp;// Xms=5000, 5s reset&lt;BR /&gt; WDWARNINT = 32;&lt;BR /&gt; WDMOD = WDEN|WDRESET|WDINT;&lt;BR /&gt; WDFEED = 0xAA; /* Feeding sequence */&lt;BR /&gt; WDFEED = 0x55;&lt;BR /&gt; NVIC_EnableIRQ(WWDT_IRQn);&lt;BR /&gt; return;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Regards,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Haibin Xiao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2019 08:07:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-watchdog-can-t-reset/m-p/883705#M35378</guid>
      <dc:creator>hbxiao168</dc:creator>
      <dc:date>2019-01-18T08:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4357: watchdog can't reset</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-watchdog-can-t-reset/m-p/883706#M35379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="334256" data-username="hbxiao168@163.com" href="https://community.nxp.com/people/hbxiao168@163.com"&gt;haibin xiao&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;Sorry I was&amp;nbsp; wondering what's he meaning of&amp;nbsp; "&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;but as this run about 2 hours, the watchdog can't reset?".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;Do you mean Watchdog work well only in 2 hours, after that, it can' work well ? Could you please tell me detail&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;about this case, also show the more code about how to use Wtachdog .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;And there is a demo code about Watchdog under LPCOpen, you can download it and have a look:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;A class="link-titled" href="https://www.nxp.com/support/developer-resources/software-development-tools/lpc-developer-resources-/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc43xx:LPCOPEN-SOFTWARE-FOR-LPC43XX" title="https://www.nxp.com/support/developer-resources/software-development-tools/lpc-developer-resources-/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc43xx:LPCOPEN-SOFTWARE-FOR-LPC43XX"&gt;LPCOpen Software for LPC43XX|NXP&lt;/A&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/63922iA97AB1E86B3F9EE0/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;Hope it helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2019 07:33:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-watchdog-can-t-reset/m-p/883706#M35379</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2019-01-22T07:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4357: watchdog can't reset</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-watchdog-can-t-reset/m-p/883707#M35380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;mean Watchdog work well only in 2 hours, after that, it can' work well.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;void WatchDogStart( uint32 Xms )&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;WDTC = (&lt;/SPAN&gt;&lt;SPAN style="border: 0px;"&gt;12000000*&lt;/SPAN&gt;&lt;SPAN&gt;Xms)/(1000*4);&amp;nbsp;// Xms=5000, 5s reset&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;WDWARNINT = 32;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;WDMOD = WDEN|WDRESET|WDINT;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;WDFEED = 0xAA; /* Feeding sequence */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;WDFEED = 0x55;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NVIC_EnableIRQ(WWDT_IRQn);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;return;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;void WatchDogClear( void )&lt;BR /&gt;{&lt;BR /&gt; __disable_irq();&lt;BR /&gt; WDFEED = 0xAA; /* Feeding sequence */&lt;BR /&gt; WDFEED = 0x55;&lt;BR /&gt; __enable_irq();&lt;BR /&gt; return;&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt; uint32 i = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CGU_Init();&lt;BR /&gt; WatchDogStart(5000);&lt;/P&gt;&lt;P&gt;Timer0Initialize();&lt;BR /&gt; SetDefaultUart1();&lt;BR /&gt; Init_LED();&lt;BR /&gt; HC595SendData(0xff);&lt;BR /&gt; DelayMS(500);&lt;BR /&gt; while(1)&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;for(i=0;i&amp;lt;8;i++)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;HC595SendData(~(0x1&amp;lt;&amp;lt;i));&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DelayMS(500); &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;HC595SendData(0xFF);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;//WatchDogClear();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;return 0;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it can reset in 2 hours,&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;after that, it can‘t work well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Regards,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Haibin Xiao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2019 09:56:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-watchdog-can-t-reset/m-p/883707#M35380</guid>
      <dc:creator>hbxiao168</dc:creator>
      <dc:date>2019-01-22T09:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4357: watchdog can't reset</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-watchdog-can-t-reset/m-p/883708#M35381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it is always the same period of 2 hours, then the system runs into a kind of boundary. This could be a maximum counter value (for example you defined a variable as "int", but still continue to increment the value&amp;nbsp; when reaching the maximum.&lt;/P&gt;&lt;P&gt;It could also be a memory leak, for example an overflow of the heap, which takes effect after a specific time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should implement some debug code in the loop, just make some checks whether the watchdog is (still) enabled. Also give it a try without the watchdog interrupt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bernhard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2019 12:33:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-watchdog-can-t-reset/m-p/883708#M35381</guid>
      <dc:creator>bernhardfink</dc:creator>
      <dc:date>2019-01-22T12:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4357: watchdog can't reset</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-watchdog-can-t-reset/m-p/883709#M35382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you！&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2019 01:37:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-watchdog-can-t-reset/m-p/883709#M35382</guid>
      <dc:creator>hbxiao168</dc:creator>
      <dc:date>2019-01-23T01:37:10Z</dc:date>
    </item>
  </channel>
</rss>

