<?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: Watchdog feed best practices</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Watchdog-feed-best-practices/m-p/801990#M32229</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After few days of extensive tests I can confirm (on my system) that taskENTER_CRITICAL / taskEXIT_CRITICAL are not enough.&lt;BR /&gt;I must wrapping the watchdog trigger code with __disable_irq() /__enable_irq() macros.&lt;BR /&gt;Doing so It seems to woks reliable.&lt;/P&gt;&lt;P&gt;My system has several interrupts, mostly comes from timers and UART.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you so much for the suggestions.&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;Diego.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Oct 2018 06:18:54 GMT</pubDate>
    <dc:creator>diegobarile</dc:creator>
    <dc:date>2018-10-22T06:18:54Z</dc:date>
    <item>
      <title>Watchdog feed best practices</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Watchdog-feed-best-practices/m-p/801988#M32227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #555555; background: #ffffff; border: 0px; font-size: 14px; padding: 0px 10px 1em;"&gt;Hello everybody.&lt;/P&gt;&lt;P style="color: #555555; background: #ffffff; border: 0px; font-size: 14px; padding: 0px 10px 1em;"&gt;The typical sequence for to feed the watchdog onto one LPC1768 is the follow:&lt;/P&gt;&lt;DIV class="" style="color: #555555; background: #f8f8f8; border: 0px; font-size: 14px; margin: 0px 0px 1em;"&gt;&lt;PRE style="background: transparent; border: 0px; font-size: 14px; padding: 0.5em 15px;"&gt;LPC_WDT-&amp;gt;WDFEED = 0xAA; LPC_WDT-&amp;gt;WDFEED = 0x55;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P style="color: #555555; background: #ffffff; border: 0px; font-size: 14px; padding: 0px 10px 1em;"&gt;My question: is It recommended to wrap the upper two lines inside a&lt;/P&gt;&lt;P style="color: #555555; background: #ffffff; border: 0px; font-size: 14px; padding: 0px 10px 1em;"&gt;taskENTER_CRITICAL()&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;taskEXIT_CRITICAL()&lt;/P&gt;&lt;P style="color: #555555; background: #ffffff; border: 0px; font-size: 14px; padding: 0px 10px 1em;"&gt;section, when you enable the watchdog into a &lt;STRONG&gt;FreeRTOS&lt;/STRONG&gt; environment?&lt;/P&gt;&lt;P style="color: #555555; background: #ffffff; border: 0px; font-size: 14px; padding: 0px 10px 1em;"&gt;I got &lt;STRONG&gt;very rare watchdog events&lt;/STRONG&gt; and I start to believe that they could be caused because one task switch happens between the two rows above.&lt;/P&gt;&lt;P style="color: #555555; background: #ffffff; border: 0px; font-size: 14px; padding: 0px 10px 1em;"&gt;Thanks in advance.&lt;/P&gt;&lt;P style="color: #555555; background: #ffffff; border: 0px; font-size: 14px; padding: 0px 10px 1em;"&gt;Diego.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 09:40:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Watchdog-feed-best-practices/m-p/801988#M32227</guid>
      <dc:creator>diegobarile</dc:creator>
      <dc:date>2018-10-17T09:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Watchdog feed best practices</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Watchdog-feed-best-practices/m-p/801989#M32228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="286453" data-username="diegobarile" href="https://community.nxp.com/people/diegobarile" rel="nofollow noopener noreferrer" target="_blank"&gt;Diego Barile&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;LPC_WDT&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;WDFEED &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0xAA&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; LPC_WDT&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;WDFEED &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x55&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I agree with you, it'd better wrap the upper two lines inside ataskENTER_CRITICAL() &lt;BR /&gt;taskEXIT_CRITICAL()&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>Thu, 18 Oct 2018 07:28:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Watchdog-feed-best-practices/m-p/801989#M32228</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2018-10-18T07:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Watchdog feed best practices</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Watchdog-feed-best-practices/m-p/801990#M32229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After few days of extensive tests I can confirm (on my system) that taskENTER_CRITICAL / taskEXIT_CRITICAL are not enough.&lt;BR /&gt;I must wrapping the watchdog trigger code with __disable_irq() /__enable_irq() macros.&lt;BR /&gt;Doing so It seems to woks reliable.&lt;/P&gt;&lt;P&gt;My system has several interrupts, mostly comes from timers and UART.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you so much for the suggestions.&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;Diego.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2018 06:18:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Watchdog-feed-best-practices/m-p/801990#M32229</guid>
      <dc:creator>diegobarile</dc:creator>
      <dc:date>2018-10-22T06:18:54Z</dc:date>
    </item>
  </channel>
</rss>

