<?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>S12 / MagniV MicrocontrollersのトピックRe: MC9S12NE64</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12NE64/m-p/126456#M540</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;HI:&lt;BR /&gt;&lt;BR /&gt;If I'm not mistaken, the COP timer is independent of the rest of the MCU clocks. Therefore, when you're stepping through you code, the COP timer is still counting. Because you are stepping, the WDog_Clear() doesn't get called, and the MCU resets due to the COP timeout.&lt;BR /&gt;&lt;BR /&gt;I would suggest to disable your COP watchdog while debugging your code. Once the code is working properly, then enable the COP and test that there are not COP resets while your code runs normally (not BDM mode).&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Alex&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 12 Aug 2006 01:10:30 GMT</pubDate>
    <dc:creator>alex_spotw</dc:creator>
    <dc:date>2006-08-12T01:10:30Z</dc:date>
    <item>
      <title>MC9S12NE64</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12NE64/m-p/126455#M539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;What is the secret to getting the COP (WD) to work properly?&amp;nbsp; I looked at the Processor Expert generated code and it is doing the same thing that I am.&amp;nbsp; It is clear that the WD times out when I am stepping through the code.&amp;nbsp; What am I doing wrong?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Code in initialization -&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; Crg.copctl.bit.cr = 0x07; // tBus * 2^24 = 671mS timeout&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; #define WDog_Clear() (Crg.armcop.byte = 85, Crg.armcop.byte = 170, 0)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Resets placed in body of code -&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WDog_Clear(); // clear wd&lt;BR /&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Aug 2006 22:50:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12NE64/m-p/126455#M539</guid>
      <dc:creator>SeaBee</dc:creator>
      <dc:date>2006-08-11T22:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12NE64</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12NE64/m-p/126456#M540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;HI:&lt;BR /&gt;&lt;BR /&gt;If I'm not mistaken, the COP timer is independent of the rest of the MCU clocks. Therefore, when you're stepping through you code, the COP timer is still counting. Because you are stepping, the WDog_Clear() doesn't get called, and the MCU resets due to the COP timeout.&lt;BR /&gt;&lt;BR /&gt;I would suggest to disable your COP watchdog while debugging your code. Once the code is working properly, then enable the COP and test that there are not COP resets while your code runs normally (not BDM mode).&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Alex&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Aug 2006 01:10:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12NE64/m-p/126456#M540</guid>
      <dc:creator>alex_spotw</dc:creator>
      <dc:date>2006-08-12T01:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12NE64</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12NE64/m-p/126457#M541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;set the RSBCK bit in the COPCTL register early in your code. This will stop the COP while debugging.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2006 22:18:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12NE64/m-p/126457#M541</guid>
      <dc:creator>DrSeuss</dc:creator>
      <dc:date>2006-08-14T22:18:32Z</dc:date>
    </item>
  </channel>
</rss>

