<?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>Kinetis MicrocontrollersのトピックRe: Watchdog cannot be disabled after watchdog timeout reset</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Watchdog-cannot-be-disabled-after-watchdog-timeout-reset/m-p/646621#M39241</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Do you pay attention to the fact that the SIM_COPC register can be written only once after Reset?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/3718i0DCD4B8B8E37E42F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hope it can help you&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;XiangJun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Dec 2016 03:35:06 GMT</pubDate>
    <dc:creator>xiangjun_rong</dc:creator>
    <dc:date>2016-12-29T03:35:06Z</dc:date>
    <item>
      <title>Watchdog cannot be disabled after watchdog timeout reset</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Watchdog-cannot-be-disabled-after-watchdog-timeout-reset/m-p/646620#M39240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I tried to follow the cop example project to use the watchdog, but I noticed the COP_Disable(SIM); works fine in the example project. So now, I would like to flash my LED after watchdog timeout reset, then clear the watchdog timeout flag, then restart the watchdog, it didn't work on my project unfortunately. I found that the COP_Disable(SIM); won't disable the COP, plus the SIM_COPC_COPT did not change,&amp;nbsp;this bit won't change even i write into the register directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All I want is to turn my LEDs indication to represent the different stage of watchdog process as follow:&lt;/P&gt;&lt;P&gt;Normal running: Red ON, Green OFF&lt;/P&gt;&lt;P&gt;After watchdog reset: Both Red and Green ON&lt;/P&gt;&lt;P&gt;watchdog flags are cleared and COP restarted: Red OFF, Green ON&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see my code below and comments. Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (RCM_GetPreviousResetSources(RCM) &amp;amp; kRCM_SourceWdog)&lt;BR /&gt; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;COP_Disable(SIM);&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;LED_RED_ON();&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;LED_GREEN_ON();&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;RCM_ClearStickyResetSources(RCM, kRCM_SourceWdog);&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;COP_Init(SIM, &amp;amp;configCop);&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;LED_RED_OFF();&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;LED_GREEN_ON();&lt;BR /&gt;}&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;// If WDOG reset is not occurred, enables COP&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;COP_Refresh(SIM);&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;LED_RED_ON();&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;LED_GREEN_OFF();&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gilbert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2016 01:02:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Watchdog-cannot-be-disabled-after-watchdog-timeout-reset/m-p/646620#M39240</guid>
      <dc:creator>gsmgbl</dc:creator>
      <dc:date>2016-12-29T01:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Watchdog cannot be disabled after watchdog timeout reset</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Watchdog-cannot-be-disabled-after-watchdog-timeout-reset/m-p/646621#M39241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Do you pay attention to the fact that the SIM_COPC register can be written only once after Reset?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/3718i0DCD4B8B8E37E42F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hope it can help you&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;XiangJun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2016 03:35:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Watchdog-cannot-be-disabled-after-watchdog-timeout-reset/m-p/646621#M39241</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2016-12-29T03:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Watchdog cannot be disabled after watchdog timeout reset</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Watchdog-cannot-be-disabled-after-watchdog-timeout-reset/m-p/646622#M39242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, i found that after i sent this question.&lt;/P&gt;&lt;P&gt;if this is the case, then how could I clear the WDOG flag on both RCM_SRS0 and RCM_SSRS0 registers?&lt;/P&gt;&lt;P&gt;As you may see my code, I use the RCM_ClearStickyResetSources(RCM, kRCM_SourceWdog); to clear the flags, but the WDOG show up the next loop. Plus the RCM_SRS0 is read only, is it clear only at POR?&lt;/P&gt;&lt;P&gt;Please kindly advise. Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2016 16:34:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Watchdog-cannot-be-disabled-after-watchdog-timeout-reset/m-p/646622#M39242</guid>
      <dc:creator>gsmgbl</dc:creator>
      <dc:date>2016-12-29T16:34:40Z</dc:date>
    </item>
  </channel>
</rss>

