<?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: How to use Watchdog Interrupt in KE02</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-Watchdog-Interrupt-in-KE02/m-p/759447#M46282</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/939533"&gt;https://community.nxp.com/message/939533&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jan 2018 20:13:22 GMT</pubDate>
    <dc:creator>mjbcswitzerland</dc:creator>
    <dc:date>2018-01-03T20:13:22Z</dc:date>
    <item>
      <title>How to use Watchdog Interrupt in KE02</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-Watchdog-Interrupt-in-KE02/m-p/759446#M46281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;I am working on a project, based on Kinetics KE02 micro-controller and I am facing a problem, where system is resetting due to WatchDog timeout, so I decided to use WatchDog Interrupt so that I can have 128 Bus clocks to analyse something, but unfortunately my WatchDog Interrupt code is not working.&lt;BR /&gt;I created a sample project separately to test watchdog interrupt, but it is not working, can anyone please help me, what I am doing wrong.&lt;/P&gt;&lt;P&gt;#include &amp;lt;stdint.h&amp;gt;&lt;/P&gt;&lt;P&gt;#include "isr.h"&lt;BR /&gt;#include "common.h"&lt;BR /&gt;#include "ics.h"&lt;BR /&gt;#include "sysinit.h"&lt;BR /&gt;#include "wdog.h"&lt;/P&gt;&lt;P&gt;int main()&lt;BR /&gt;{&lt;BR /&gt; volatile static uint8_t test;&lt;BR /&gt; WDOG_Feed();&lt;BR /&gt; test = 1;&lt;BR /&gt; WDOG_ConfigType sWDOGConfig = {0}; /*! &amp;lt; watchdog configuration structure */&lt;/P&gt;&lt;P&gt;/* Perform processor initialization */&lt;BR /&gt; NVIC_EnableIRQ( Watchdog_IRQn);&lt;BR /&gt; __enable_irq();&lt;BR /&gt; sysinit();&lt;BR /&gt; sWDOGConfig.sBits.bIntEnable = TRUE;&lt;BR /&gt; sWDOGConfig.sBits.bWaitEnable = FALSE;&lt;BR /&gt; sWDOGConfig.sBits.bStopEnable = FALSE;&lt;BR /&gt; sWDOGConfig.sBits.bDbgEnable = FALSE;&lt;BR /&gt; sWDOGConfig.sBits.bUpdateEnable = FALSE;&lt;BR /&gt; sWDOGConfig.sBits.bDisable = FALSE; /* enable WDOG */&lt;BR /&gt; sWDOGConfig.sBits.bClkSrc = WDOG_CLK_INTERNAL_1KHZ;&lt;BR /&gt; sWDOGConfig.u16TimeOut = 1000; /*&amp;lt; 1s */&lt;BR /&gt; sWDOGConfig.u16WinTime = 0;&lt;/P&gt;&lt;P&gt;WDOG_Init(&amp;amp;sWDOGConfig);&lt;/P&gt;&lt;P&gt;while(1)&lt;BR /&gt; {&lt;BR /&gt; if( test )&lt;BR /&gt; {&lt;BR /&gt; WDOG_Feed();&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;void WatchDog_ISR( void )&lt;BR /&gt;{&lt;BR /&gt; static uint8_t x;&lt;BR /&gt; x=0;&lt;BR /&gt; while(1)&lt;BR /&gt; {&lt;BR /&gt; x++;&lt;BR /&gt; }&lt;BR /&gt;}&lt;BR /&gt; void NMI_Isr(void)&lt;BR /&gt;{&lt;BR /&gt; /*!&lt;BR /&gt; * endless loop to generate watchdog reset&lt;BR /&gt; */&lt;BR /&gt; while(1)&lt;BR /&gt; {&lt;BR /&gt; printf("Running in NMI_Isr()!\n");&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use the code formatting, but unfortunately that doesn't work.&lt;/P&gt;&lt;P&gt;When i run the above code, it works properly without resetting, to stop watchdog refresh, test value is updated to "0" and due to this watchdog refresh or watchdog feed function will not get call, leading to system reset after 1 second.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my system is getting reset when I update the value of test to "0", but I want that before resetting Watchdog Interrupt shall be generated.&lt;/P&gt;&lt;P&gt;Please help me to identify what I am doing wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2018 09:53:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-Watchdog-Interrupt-in-KE02/m-p/759446#M46281</guid>
      <dc:creator>xpress_embedo</dc:creator>
      <dc:date>2018-01-03T09:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Watchdog Interrupt in KE02</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-Watchdog-Interrupt-in-KE02/m-p/759447#M46282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/939533"&gt;https://community.nxp.com/message/939533&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2018 20:13:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-Watchdog-Interrupt-in-KE02/m-p/759447#M46282</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2018-01-03T20:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Watchdog Interrupt in KE02</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-Watchdog-Interrupt-in-KE02/m-p/759448#M46283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure how do you check that the MCU didn't enter WatchDog_ISR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please clear a GPIO to 0V in WatchDog_ISR, and observe the voltage of that pin by using oscilloscope.&lt;BR /&gt;If the voltage will be 0V every n second, then the MCU has enter WatchDog_ISR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&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>Mon, 08 Jan 2018 09:30:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-Watchdog-Interrupt-in-KE02/m-p/759448#M46283</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2018-01-08T09:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Watchdog Interrupt in KE02</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-Watchdog-Interrupt-in-KE02/m-p/759449#M46284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;Actually I put a breakpoints in the function "&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;WatchDog_ISR" and let my system reset by WatchDog, unfortunately, it directly gets reset without in this ISR.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I will try your suggestion, but what's wrong with the method I am trying, can't we check this thing in debug mode, like I did by placing the breakpoints in WatchDog ISR.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2018 17:38:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-Watchdog-Interrupt-in-KE02/m-p/759449#M46284</guid>
      <dc:creator>xpress_embedo</dc:creator>
      <dc:date>2018-01-11T17:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Watchdog Interrupt in KE02</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-Watchdog-Interrupt-in-KE02/m-p/759450#M46285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You, I got my answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2018 17:43:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-Watchdog-Interrupt-in-KE02/m-p/759450#M46285</guid>
      <dc:creator>xpress_embedo</dc:creator>
      <dc:date>2018-01-11T17:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Watchdog Interrupt in KE02</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-Watchdog-Interrupt-in-KE02/m-p/759451#M46286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;We can't test Watchdog, like I am doing, so I will use the method suggested by you.&lt;/P&gt;&lt;P&gt;By the I am doing this to track a problem and I am able to solve that problem, but still I will check this thing.&lt;/P&gt;&lt;P&gt;Thanks for your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2018 17:45:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-Watchdog-Interrupt-in-KE02/m-p/759451#M46286</guid>
      <dc:creator>xpress_embedo</dc:creator>
      <dc:date>2018-01-11T17:45:54Z</dc:date>
    </item>
  </channel>
</rss>

