<?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: Watchdog Reset Count register in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Watchdog-Reset-Count-register/m-p/483110#M29569</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was able to find a solution by myself. I write it here because maybe it could usefull to someone else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The answer is YES, it is possible. The following stpes show how to do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[pseudo-algorithm]&lt;/P&gt;&lt;P&gt;0. Start to Unlock the registers (put WDOG_STCTRLH[4] =1, this is the ALLOWUPDATE field).&lt;/P&gt;&lt;P&gt;1. Init the unlock procedure (write the sequence 0xC520 - 0xD928 within the correct time window).&lt;/P&gt;&lt;P&gt;2. Wait 1 BUS CLK Cycle&lt;/P&gt;&lt;P&gt;3. Write 0xFFFF to WDOG_RSTCNT (fill it with '1', this will restart the counter)&lt;/P&gt;&lt;P&gt;4. Wait 20 BUS CLK Cycles.&lt;/P&gt;&lt;P&gt;5. Repeat step sfrom 0 to 2 and then go to 6.&lt;/P&gt;&lt;P&gt;6. Lock the registers (put WDOG_STCTRLH[4] =0, this is the ALLOWUPDATE field).&lt;/P&gt;&lt;P&gt;7. Wait 20 BUS CLK Cycles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe this is not the most clean way, but it works for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Francesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 May 2016 13:44:10 GMT</pubDate>
    <dc:creator>angae</dc:creator>
    <dc:date>2016-05-18T13:44:10Z</dc:date>
    <item>
      <title>Watchdog Reset Count register</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Watchdog-Reset-Count-register/m-p/483109#M29568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on a MK70FN1M0VMJ15.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;I correctly use the watchdog registers in order to monitor, reset and keep track of watchdog reset Issue.&lt;/P&gt;&lt;P style="text-align: left;"&gt;I'm using the WDOG_RSTCNT register (4005_2014h) in order to check how many times my target resets due to watchdog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;I saw that this counter reset when a POR (Power On Reset) occurs (I turn-off and then turn-on my board), but I need a way to reset this register also in some particular circumstance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read from Datasheet (&lt;EM&gt;page 641&lt;/EM&gt;):&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;EM&gt;Counts the number of times the watchdog resets the system. This register is reset only on a POR. Writing 1 to the bit to be cleared enables you to clear the contents of this register.&lt;/EM&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;I didn't understand the last sentence. What's the meaning of "writing 1 to the bit to be cleared" ?&lt;/P&gt;&lt;P style="text-align: justify;"&gt;My question is:&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;STRONG&gt;Can I reset this register? If yes, how?&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;Best regards,&lt;/P&gt;&lt;P style="text-align: justify;"&gt;Francesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 13:06:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Watchdog-Reset-Count-register/m-p/483109#M29568</guid>
      <dc:creator>angae</dc:creator>
      <dc:date>2016-05-18T13:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Watchdog Reset Count register</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Watchdog-Reset-Count-register/m-p/483110#M29569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was able to find a solution by myself. I write it here because maybe it could usefull to someone else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The answer is YES, it is possible. The following stpes show how to do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[pseudo-algorithm]&lt;/P&gt;&lt;P&gt;0. Start to Unlock the registers (put WDOG_STCTRLH[4] =1, this is the ALLOWUPDATE field).&lt;/P&gt;&lt;P&gt;1. Init the unlock procedure (write the sequence 0xC520 - 0xD928 within the correct time window).&lt;/P&gt;&lt;P&gt;2. Wait 1 BUS CLK Cycle&lt;/P&gt;&lt;P&gt;3. Write 0xFFFF to WDOG_RSTCNT (fill it with '1', this will restart the counter)&lt;/P&gt;&lt;P&gt;4. Wait 20 BUS CLK Cycles.&lt;/P&gt;&lt;P&gt;5. Repeat step sfrom 0 to 2 and then go to 6.&lt;/P&gt;&lt;P&gt;6. Lock the registers (put WDOG_STCTRLH[4] =0, this is the ALLOWUPDATE field).&lt;/P&gt;&lt;P&gt;7. Wait 20 BUS CLK Cycles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe this is not the most clean way, but it works for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Francesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 13:44:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Watchdog-Reset-Count-register/m-p/483110#M29569</guid>
      <dc:creator>angae</dc:creator>
      <dc:date>2016-05-18T13:44:10Z</dc:date>
    </item>
  </channel>
</rss>

