<?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: K64F120M watchdog reset problem</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64F120M-watchdog-reset-problem/m-p/475552#M28918</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello weng,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can feed Watchdog in a while(1) , or you can use on time interrupt to feed.&lt;/P&gt;&lt;P&gt;What IDE do you use ? If you use KDS or IAR , in the ksdk, there is one Watchdog demo ,you can refer to :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jan 2016 10:24:56 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2016-01-08T10:24:56Z</dc:date>
    <item>
      <title>K64F120M watchdog reset problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64F120M-watchdog-reset-problem/m-p/475551#M28917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Support:&lt;BR /&gt;About the watchdog for the software in K64 MCU, and now we encountered a problem is that:&lt;BR /&gt;When we do the power on and power off test, sometime the software watchdog will reset the system.&lt;BR /&gt;the init of the watchdog time out time is 250ms, core is 120M, bus is 60M.&lt;BR /&gt;&amp;nbsp; WDOG_TOVALH = (uint16_t)0x4CU;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Setup time-out value register high */&lt;BR /&gt;&amp;nbsp; WDOG_TOVALL = (uint16_t)0x4B4BU;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Setup time-out value register low */ /*Time out counter = 5000011, 250ms*/&lt;BR /&gt;And I feed the dog in an ISR like below:&lt;BR /&gt;void WDOG_Feed()&lt;BR /&gt;{&lt;BR /&gt;_int_disable();&lt;BR /&gt;WDOG_REFRESH=(uint16_t)0xA602U;&lt;BR /&gt;WDOG_REFRESH=(uint16_t)0xB480U;&lt;BR /&gt;_int_enable();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;And the ISR's priority is the highest of the system, the priority num is 2.&lt;BR /&gt;the question is I don't know how to feed the dog is the correct way, in the cycle time task like 20ms, or in the highest priority ISR task?&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2016 07:32:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64F120M-watchdog-reset-problem/m-p/475551#M28917</guid>
      <dc:creator>wulinweng</dc:creator>
      <dc:date>2016-01-08T07:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: K64F120M watchdog reset problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64F120M-watchdog-reset-problem/m-p/475552#M28918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello weng,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can feed Watchdog in a while(1) , or you can use on time interrupt to feed.&lt;/P&gt;&lt;P&gt;What IDE do you use ? If you use KDS or IAR , in the ksdk, there is one Watchdog demo ,you can refer to :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2016 10:24:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64F120M-watchdog-reset-problem/m-p/475552#M28918</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-01-08T10:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: K64F120M watchdog reset problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64F120M-watchdog-reset-problem/m-p/475553#M28919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alice,&lt;/P&gt;&lt;P&gt;My IDE is IAR. My question is that can we feed the dog in the ISR?&lt;/P&gt;&lt;P&gt;because in the feed dog we should disable the int, and what I confuse is that in the ISR to disable the intterrupts to feed the dog?&lt;/P&gt;&lt;P&gt;Is it correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 05:24:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64F120M-watchdog-reset-problem/m-p/475553#M28919</guid>
      <dc:creator>wulinweng</dc:creator>
      <dc:date>2016-01-12T05:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: K64F120M watchdog reset problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64F120M-watchdog-reset-problem/m-p/475554#M28920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ISR you said is watchdog iSR? If yes, i think it late . the interrupt is generate when it does not&lt;/P&gt;&lt;P&gt;feed the watchdog on time , and if after it enter interrupt then feed the watchdog , it is late .&lt;/P&gt;&lt;P&gt;The demo i mentioned last time is here (after install the KSDK1.3):&lt;/P&gt;&lt;P&gt;Freescale\KSDK_1.3.0\examples\frdmk64f\driver_examples\wdog\iar .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 10:22:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64F120M-watchdog-reset-problem/m-p/475554#M28920</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-01-12T10:22:40Z</dc:date>
    </item>
  </channel>
</rss>

