<?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>LPC Microcontrollers中的主题 Re: LPC4357: Cannot detect watchdog reset</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-Cannot-detect-watchdog-reset/m-p/775909#M31227</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Johan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Our according department also reproduced this problem, they are still checking it now.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Any updated information, I will let you know.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thanks a lot for your understanding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kerry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Dec 2017 02:03:28 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2017-12-21T02:03:28Z</dc:date>
    <item>
      <title>LPC4357: Cannot detect watchdog reset</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-Cannot-detect-watchdog-reset/m-p/775906#M31224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to implement the WWDT function in the LPC4357. According to the user manual (section 38.5) I should be able to read the Watchog Mode register and determine if a watchdog reset was performed:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;When the Watchdog Timer is configured so that a watchdog event will cause a reset and the counter reaches zero, the CPU will be reset, loading the stack pointer and program counter from the vector table as in the case of external reset. The Watchdog time-out flag (WDTOF) can be examined to determine if the Watchdog has caused the reset condition. The WDTOF flag must be cleared by software.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;After a reset however the WDTOF is always 0, even if I break inside the Reset handler. How can I determine if the reset was caused by a watchdog timeout?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Johan Borkhuis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 15:25:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-Cannot-detect-watchdog-reset/m-p/775906#M31224</guid>
      <dc:creator>johanborkhuis</dc:creator>
      <dc:date>2017-12-08T15:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4357: Cannot detect watchdog reset</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-Cannot-detect-watchdog-reset/m-p/775907#M31225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Johan Borkhuis,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thank you for your question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; After the test on my side, I also reproduced your problem, I already help you to check it with our according department.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Any updated information, will let you know, please wait patiently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kerry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2017 08:53:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-Cannot-detect-watchdog-reset/m-p/775907#M31225</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-12-11T08:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4357: Cannot detect watchdog reset</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-Cannot-detect-watchdog-reset/m-p/775908#M31226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you already get an answer from the other department?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regard,&lt;/P&gt;&lt;P&gt;Johan Borkhuis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2017 10:46:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-Cannot-detect-watchdog-reset/m-p/775908#M31226</guid>
      <dc:creator>johanborkhuis</dc:creator>
      <dc:date>2017-12-20T10:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4357: Cannot detect watchdog reset</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-Cannot-detect-watchdog-reset/m-p/775909#M31227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Johan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Our according department also reproduced this problem, they are still checking it now.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Any updated information, I will let you know.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thanks a lot for your understanding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kerry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2017 02:03:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-Cannot-detect-watchdog-reset/m-p/775909#M31227</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-12-21T02:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4357: Cannot detect watchdog reset</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-Cannot-detect-watchdog-reset/m-p/775910#M31228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Johan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks a lot for your patience.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I already get the feedback from our according department. This problem already be confirmed, WDTOF can't be used as the watchdog timeout reset flag.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Now, a workaround may help you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Just refer to &lt;SPAN style="font-size: 11pt;"&gt;use RGU mechanism with software flag to do it&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/12817i929A4D32B082E67F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; You can define a variable in the RAM, after you enable watchdog, you can give a fixed value to that variable, then check the variable value before RAM initialization after code start, if it is the data which you defined after enable the watchdog, it means the reset is caused by the watchdog reset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Wish it helps you. Until now, I didn't find any other useful register to detect the watchdog timeout reset in LPC4357, so you can try the above RAM method workaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&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>Wed, 17 Jan 2018 06:07:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-Cannot-detect-watchdog-reset/m-p/775910#M31228</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-01-17T06:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4357: Cannot detect watchdog reset</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-Cannot-detect-watchdog-reset/m-p/775911#M31229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the answer. We had already made a solution that was comparable to this one, not using the RAM but using the RTC scratch area, as this area will not be cleaned by any startup code and can also be used to store other restart reasons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Johan Borkhuis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jan 2018 15:04:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-Cannot-detect-watchdog-reset/m-p/775911#M31229</guid>
      <dc:creator>johanborkhuis</dc:creator>
      <dc:date>2018-01-19T15:04:34Z</dc:date>
    </item>
  </channel>
</rss>

