<?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 on KM34Z why does not work?</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/watchdog-on-KM34Z-why-does-not-work/m-p/675647#M41552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Manfred Eggersdorf,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thank you for your details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I already test the KSDK2.2-TWR-KM34Z75M freertos code about the watchdog,&amp;nbsp; the watchdog works on my side.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Now, let's use the same code, and follow my way to test it:&lt;/P&gt;&lt;P&gt;1. Download the newest ksdk sample code for KM34 chip.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;A class="link-titled" href="https://mcuxpresso.nxp.com/en/welcome" title="https://mcuxpresso.nxp.com/en/welcome"&gt;Welcome to MCUXpresso | MCUXpresso Config Tools&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SDK Builder, choose the board as TWR-KM34Z75M, then generate the code and download it.&lt;/P&gt;&lt;P&gt;2. Open the freertos code, the code path which I used is : SDK_2.2_TWR-KM34Z75M\boards\twrkm34z75m\rtos_examples\freertos_hello\kds&lt;/P&gt;&lt;P&gt;3. modify the code&lt;/P&gt;&lt;P&gt;1) don't disable the watchdog after reset&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; system_MKM34Z7.h, line 84, define disable_wdog as 0.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/26881iE491503CA2F10ED6/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; 2) Run the code, you will find it always in the reset handler&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Check the register:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/26933i3D468465BE6053BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/26964iE84B22210EFA8E4C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/27019i7581FE4C57B1D833/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_6.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/27072i26B8320FBAF8632E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_6.png" alt="pastedImage_6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_7.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/27114i48B18357472B4415/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; You can find the RCM_SRS0[WDOG] =1, it means the reset is caused by the watchdog, so the watchdog works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can follow my steps and test the ksdk2.2 freertos code in the twr-km34z75m board at first, after it works, you can test it on your own board.&lt;/P&gt;&lt;P&gt;&amp;nbsp;The watchdog in MKM34Z256VLQ7 and MKM34Z256VLL7 is the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please test it again, any updated information, please kindly let me know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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>Tue, 25 Jul 2017 03:07:00 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2017-07-25T03:07:00Z</dc:date>
    <item>
      <title>watchdog on KM34Z why does not work?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/watchdog-on-KM34Z-why-does-not-work/m-p/675642#M41547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;I want to use the watchdog on MKM34Z256 and tried code like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*************&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRINTF("RESET");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WDOG_GetDefaultConfig(&amp;amp;config);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; config.clockSource = kWDOG_LpoClockSource;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; config.prescaler = kWDOG_ClockPrescalerDivide1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; config.enableUpdate = true;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; config.enableInterrupt = false;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; config.enableWindowMode = false;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;config.timeoutValue = 0x7ffU;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;WDOG_Init(wdog_base,&amp;amp;config);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;WDOG_Refresh(wdog_base);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;while(1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;WDG_Timer = GetTimerOutputValue(wdog_base);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;PRINTF(" %d", WDG_Timer);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;WaitLoop(3500000);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/P&gt;&lt;P&gt;*************&lt;/P&gt;&lt;P&gt;Normally I would suggest, that the I would receive via UART something like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESET 0 1 2 3 4&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;2047&lt;/P&gt;&lt;P&gt;RESET 0 1 2...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I only get&lt;/P&gt;&lt;P&gt;RESET 0 0 0 0 0... and no Watchdog Reset.&lt;/P&gt;&lt;P&gt;Does that mean that the Watchdog has no Clock?&lt;/P&gt;&lt;P&gt;Must I Enable the LPO in a different way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You!&lt;/P&gt;&lt;P&gt;With best regards&lt;/P&gt;&lt;P&gt;Manfred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2017 13:29:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/watchdog-on-KM34Z-why-does-not-work/m-p/675642#M41547</guid>
      <dc:creator>manfredeggersdo</dc:creator>
      <dc:date>2017-07-19T13:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: watchdog on KM34Z why does not work?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/watchdog-on-KM34Z-why-does-not-work/m-p/675643#M41548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Manfred Eggersdorf,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Please check register: WDOG_STCTRLH[WDOGEN], whether the WDOG is enabled or not?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If it is disabled, please check your code, after reset, whether you do the disable watchdog code? If yes, comment it, then try it again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any updated question, just let me know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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, 20 Jul 2017 08:30:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/watchdog-on-KM34Z-why-does-not-work/m-p/675643#M41548</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-07-20T08:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: watchdog on KM34Z why does not work?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/watchdog-on-KM34Z-why-does-not-work/m-p/675644#M41549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kerry,&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;The value of the WDOG_STCTRLH register is: 0100000000110011 - so I would think, the WDOGEN is enabled.&lt;/P&gt;&lt;P&gt;In my code I do first initialize many things, clock (internal), ports... Is it correct, that I can initialize the watchdog after that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or - other thought - is it possible, that something has disabled the LPO?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Manfred&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: I' using free RTOS - perhaps there is a problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2017 08:55:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/watchdog-on-KM34Z-why-does-not-work/m-p/675644#M41549</guid>
      <dc:creator>manfredeggersdo</dc:creator>
      <dc:date>2017-07-21T08:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: watchdog on KM34Z why does not work?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/watchdog-on-KM34Z-why-does-not-work/m-p/675645#M41550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Manfred Eggersdorf,&lt;/P&gt;&lt;P&gt;WDOG_STCTRLH register is: 0100000000110011&lt;/P&gt;&lt;P&gt;&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/26767iE56384445F281E86/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;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/26802i6F91C31442F6A0EE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Your clock is using the alt clock,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/26839iF6BAA3A1CDB821F9/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You need to check the according clock source, whether you have the clock?&lt;/P&gt;&lt;P&gt;I think you can configure it to use LPO directly, because LPO is alway enabled.&lt;/P&gt;&lt;P&gt;free RTO is no relationship with the watchdog, please check your watchdog clock source.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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>Mon, 24 Jul 2017 08:35:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/watchdog-on-KM34Z-why-does-not-work/m-p/675645#M41550</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-07-24T08:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: watchdog on KM34Z why does not work?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/watchdog-on-KM34Z-why-does-not-work/m-p/675646#M41551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kerry, &lt;/P&gt;&lt;P&gt;sorry, I tried so many things, that I postet the WDOG_STCTRLH with alternate clock trial.&lt;/P&gt;&lt;P&gt;Using the LPO makes no difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps we shall think fom beginning:&lt;/P&gt;&lt;P&gt;The CPU is a MKM34Z256VLL7 on an own PCB - using internal Clock source, no external XTAL is mounted.&lt;/P&gt;&lt;P&gt;IDE is Kinetis Design Studio - SDK2.0 - free RTOS.&lt;/P&gt;&lt;P&gt;Debug Probe is a changed TWR-KM34Z75M, where I disconnected the TWR CPU and use the onboard SWR port.&lt;/P&gt;&lt;P&gt;This works fine since some month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my code I first initialize the Clock and ports, then I tried this code in different variations:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;WDOG_GetDefaultConfig(&amp;amp;config);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;config.enableWdog = true;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; config.clockSource = kWDOG_LpoClockSource;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; config.workMode.enableDebug = true;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; config.workMode.enableStop = true;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; config.prescaler = kWDOG_ClockPrescalerDivide8;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; config.enableUpdate = true;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; config.enableInterrupt = false;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; config.enableWindowMode = false;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;config.timeoutValue = 0x7ffU;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;WDOG_Init(wdog_base,&amp;amp;config);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; WaitWctClose(wdog_base);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;WaitLoop(3500000);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;while(1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;LED_YELLOW_TOGGLE();&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;WDG_Timer = GetTimerOutputValue(wdog_base);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;WDGstatel = wdog_base-&amp;gt;STCTRLL;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;WDGstateh = wdog_base-&amp;gt;STCTRLH;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;PRINTF("Timer: %d \r\n", WDG_Timer);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;PRINTF("StateL: %016b \r\n", WDGstatel);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;PRINTF("StateH: %016b \r\n", WDGstateh);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;WaitLoop(3500000);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which repeated deliveres:&lt;/P&gt;&lt;P&gt;Timer: 0 &amp;lt;CR&amp;gt;&amp;lt;LF&amp;gt;&lt;BR /&gt;StateL: 0000000000000001 &amp;lt;CR&amp;gt;&amp;lt;LF&amp;gt;&lt;BR /&gt;StateH: 0100000001110001 &amp;lt;CR&amp;gt;&amp;lt;LF&amp;gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...and now I do not have any idea... ;-)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Manfred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2017 10:29:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/watchdog-on-KM34Z-why-does-not-work/m-p/675646#M41551</guid>
      <dc:creator>manfredeggersdo</dc:creator>
      <dc:date>2017-07-24T10:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: watchdog on KM34Z why does not work?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/watchdog-on-KM34Z-why-does-not-work/m-p/675647#M41552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Manfred Eggersdorf,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thank you for your details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I already test the KSDK2.2-TWR-KM34Z75M freertos code about the watchdog,&amp;nbsp; the watchdog works on my side.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Now, let's use the same code, and follow my way to test it:&lt;/P&gt;&lt;P&gt;1. Download the newest ksdk sample code for KM34 chip.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;A class="link-titled" href="https://mcuxpresso.nxp.com/en/welcome" title="https://mcuxpresso.nxp.com/en/welcome"&gt;Welcome to MCUXpresso | MCUXpresso Config Tools&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SDK Builder, choose the board as TWR-KM34Z75M, then generate the code and download it.&lt;/P&gt;&lt;P&gt;2. Open the freertos code, the code path which I used is : SDK_2.2_TWR-KM34Z75M\boards\twrkm34z75m\rtos_examples\freertos_hello\kds&lt;/P&gt;&lt;P&gt;3. modify the code&lt;/P&gt;&lt;P&gt;1) don't disable the watchdog after reset&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; system_MKM34Z7.h, line 84, define disable_wdog as 0.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/26881iE491503CA2F10ED6/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; 2) Run the code, you will find it always in the reset handler&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Check the register:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/26933i3D468465BE6053BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/26964iE84B22210EFA8E4C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/27019i7581FE4C57B1D833/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_6.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/27072i26B8320FBAF8632E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_6.png" alt="pastedImage_6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_7.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/27114i48B18357472B4415/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; You can find the RCM_SRS0[WDOG] =1, it means the reset is caused by the watchdog, so the watchdog works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can follow my steps and test the ksdk2.2 freertos code in the twr-km34z75m board at first, after it works, you can test it on your own board.&lt;/P&gt;&lt;P&gt;&amp;nbsp;The watchdog in MKM34Z256VLQ7 and MKM34Z256VLL7 is the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please test it again, any updated information, please kindly let me know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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>Tue, 25 Jul 2017 03:07:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/watchdog-on-KM34Z-why-does-not-work/m-p/675647#M41552</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-07-25T03:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: watchdog on KM34Z why does not work?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/watchdog-on-KM34Z-why-does-not-work/m-p/675648#M41553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kerry, &lt;/P&gt;&lt;P&gt;MANY THANKS!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried in a different way - but this was the problem:&lt;/P&gt;&lt;P&gt;* In system_MKM34Z7.h the DISABLE_WDOG was really defined to 1. But for the reason, that my code don't booted after changing to zero, I decide to initialize the Watchdog in sytem_MKM34z7.c in function SystemInit.&lt;/P&gt;&lt;P&gt;I do initialize the watchdog in this position like I want to use, but with cleared WDOGEN - for the reason, that I do not use the watchdog in every case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* I setted SIM_SOPT1 bit 18 and 19 to 1, before I initialize the Watchdog for using.&lt;/P&gt;&lt;P&gt;Background: On my own PCB is no external XTAL mounted&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it works fine.&lt;/P&gt;&lt;P&gt;It looks like:&lt;/P&gt;&lt;P&gt;1. the watchdog must be initialized very early in code first time (regardles of using or not)&lt;/P&gt;&lt;P&gt;2. SIM_SOPT1 18&amp;amp;19 must configured for delivering a clock before the Watchdog is be initialized to use and regardless if the LPO or ALT clock is used in WDOG_STCTRLH .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the hints!&lt;/P&gt;&lt;P&gt;With best regards&lt;/P&gt;&lt;P&gt;Manfred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 12:12:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/watchdog-on-KM34Z-why-does-not-work/m-p/675648#M41553</guid>
      <dc:creator>manfredeggersdo</dc:creator>
      <dc:date>2017-07-25T12:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: watchdog on KM34Z why does not work?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/watchdog-on-KM34Z-why-does-not-work/m-p/675649#M41554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Manfred Eggersdorf,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thank you for your completely feedback.&lt;/P&gt;&lt;P&gt;&amp;nbsp;1. Actually, the watchdog must be feeded or disabled before it is timeout. So, you may feel it should be very early.&lt;/P&gt;&lt;P&gt;&amp;nbsp; 2. You must make sure the watchdog clock is working if you want the WDOG works normally.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If your problem is solved, please help me to mark the correct answer to close this question.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&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, 31 Jul 2017 01:53:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/watchdog-on-KM34Z-why-does-not-work/m-p/675649#M41554</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-07-31T01:53:46Z</dc:date>
    </item>
  </channel>
</rss>

