<?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: How to use watchdog COP in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-watchdog-COP/m-p/850407#M51144</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Victor,&lt;/P&gt;&lt;P&gt;Yes, I will do. I started with SDK FRDM-KL27Z.&lt;/P&gt;&lt;P&gt;I am going to utilize the ROM bootloader.  I need to setup the bootloader preset for LPUART0. So I just need to interface with LPUART0 (pin11, pin 12 of MKL27Z64VFM4 ). Is that right?&lt;/P&gt;&lt;P&gt;The load file must be binary (.bin) only?&lt;/P&gt;&lt;P&gt;I have done something like loader before. The file is .hex, I can load it one line by online because there is line check for hex file and end file indication.&lt;/P&gt;&lt;P&gt;How to use the .bin file for bootloader handling since I could not read the file?&lt;/P&gt;&lt;P&gt;What is the size of one pack? I have a firmware file of 50K bytes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&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;/P&gt;&lt;P&gt;Albert Zhou&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sr. Electronics Engineer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sensorex&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+1 714-230-2768&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;11751 Markon Drive, Garden Grove, CA 92841&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="www.sensorex.com&amp;lt;http://www.sensorex.com/&amp;gt;" target="test_blank"&gt;www.sensorex.com&amp;lt;http://www.sensorex.com/&amp;gt;&lt;/A&gt;;  e: albert.zhou@sensorex.com&amp;lt;mailto:albert.zhou@sensorex.com&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;https://www.facebook.com/Sensorex&amp;gt;   &amp;lt;https://twitter.com/SensorexInc&amp;gt;    &amp;lt;https://www.linkedin.com/company-beta/1768298/&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Nov 2018 21:11:24 GMT</pubDate>
    <dc:creator>albert_zhou</dc:creator>
    <dc:date>2018-11-27T21:11:24Z</dc:date>
    <item>
      <title>How to use watchdog COP</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-watchdog-COP/m-p/850403#M51140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to use COP watchdog but it does not work. somebody can tell me why? I used UART command to get it in a while loop, the system get into a hanging state -no pulse output.&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void ResetWatchDog(void)&lt;BR /&gt;{&lt;BR /&gt; SIM-&amp;gt;SRVCOP =0x00000055U;&lt;BR /&gt; SIM-&amp;gt;SRVCOP =0x000000AAU;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int main(void)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;SIM-&amp;gt;COPC =0x0000003CU;&amp;nbsp; //enable COP watchdog set to 1.024 second, 1KHz as clock source&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;while(1)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;pulse(toggle);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;ResetWatchDog();&lt;/P&gt;&lt;P&gt;&amp;nbsp;.....&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I not know where to get the COP setup correctly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Albert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2018 16:54:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-watchdog-COP/m-p/850403#M51140</guid>
      <dc:creator>albert_zhou</dc:creator>
      <dc:date>2018-11-19T16:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to use watchdog COP</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-watchdog-COP/m-p/850404#M51141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Albert, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please tell me which MCU are you using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Victor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2018 15:09:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-watchdog-COP/m-p/850404#M51141</guid>
      <dc:creator>victorjimenez</dc:creator>
      <dc:date>2018-11-23T15:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to use watchdog COP</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-watchdog-COP/m-p/850405#M51142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Victor,&lt;/P&gt;&lt;P&gt;I am using MKL27Z64VFM4 mcu.  I find problem for the watchdog enable problem. I put a line above DISABLE_WDOG in file system_MKL27Z64xxx4.h as below. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define DISABLE_WDOG 0   //added by Albert Zhou 11-19-2018 for use watchdog timer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#ifndef DISABLE_WDOG&lt;/P&gt;&lt;P&gt;  #define DISABLE_WDOG  1&lt;/P&gt;&lt;P&gt;#endif&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;/P&gt;&lt;P&gt;Albert Zhou&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sr. Electronics Engineer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sensorex&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+1 714-230-2768&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;11751 Markon Drive, Garden Grove, CA 92841&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="www.sensorex.com&amp;lt;http://www.sensorex.com/&amp;gt;" target="test_blank"&gt;www.sensorex.com&amp;lt;http://www.sensorex.com/&amp;gt;&lt;/A&gt;;  e: albert.zhou@sensorex.com&amp;lt;mailto:albert.zhou@sensorex.com&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;https://www.facebook.com/Sensorex&amp;gt;   &amp;lt;https://twitter.com/SensorexInc&amp;gt;    &amp;lt;https://www.linkedin.com/company-beta/1768298/&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2018 16:08:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-watchdog-COP/m-p/850405#M51142</guid>
      <dc:creator>albert_zhou</dc:creator>
      <dc:date>2018-11-26T16:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to use watchdog COP</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-watchdog-COP/m-p/850406#M51143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Albert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recommend you to download the SDK for the FRDM-KL27Z. In this example you will find a example project for the COP watchdog. You can use this example as a guide to see what you are missing in your project. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://mcuxpresso.nxp.com/en/welcome"&gt;Link to download the SDK. &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;Victor.&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2018 18:41:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-watchdog-COP/m-p/850406#M51143</guid>
      <dc:creator>victorjimenez</dc:creator>
      <dc:date>2018-11-27T18:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to use watchdog COP</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-watchdog-COP/m-p/850407#M51144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Victor,&lt;/P&gt;&lt;P&gt;Yes, I will do. I started with SDK FRDM-KL27Z.&lt;/P&gt;&lt;P&gt;I am going to utilize the ROM bootloader.  I need to setup the bootloader preset for LPUART0. So I just need to interface with LPUART0 (pin11, pin 12 of MKL27Z64VFM4 ). Is that right?&lt;/P&gt;&lt;P&gt;The load file must be binary (.bin) only?&lt;/P&gt;&lt;P&gt;I have done something like loader before. The file is .hex, I can load it one line by online because there is line check for hex file and end file indication.&lt;/P&gt;&lt;P&gt;How to use the .bin file for bootloader handling since I could not read the file?&lt;/P&gt;&lt;P&gt;What is the size of one pack? I have a firmware file of 50K bytes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&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;/P&gt;&lt;P&gt;Albert Zhou&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sr. Electronics Engineer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sensorex&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+1 714-230-2768&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;11751 Markon Drive, Garden Grove, CA 92841&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="www.sensorex.com&amp;lt;http://www.sensorex.com/&amp;gt;" target="test_blank"&gt;www.sensorex.com&amp;lt;http://www.sensorex.com/&amp;gt;&lt;/A&gt;;  e: albert.zhou@sensorex.com&amp;lt;mailto:albert.zhou@sensorex.com&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;https://www.facebook.com/Sensorex&amp;gt;   &amp;lt;https://twitter.com/SensorexInc&amp;gt;    &amp;lt;https://www.linkedin.com/company-beta/1768298/&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2018 21:11:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-watchdog-COP/m-p/850407#M51144</guid>
      <dc:creator>albert_zhou</dc:creator>
      <dc:date>2018-11-27T21:11:24Z</dc:date>
    </item>
  </channel>
</rss>

