<?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: COP reset</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/COP-reset/m-p/127086#M637</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I have the same problem: COP is configured and working, but if it fires, the "normal" reset is executed.&lt;BR /&gt;&lt;BR /&gt;My *.PRM file contains:&lt;BR /&gt;VECTOR 0 _Startup /* reset vector*/&lt;BR /&gt;VECTOR 2 _COPStartup /* COP reset vector: called when watchdog has triggered */&lt;BR /&gt;&lt;BR /&gt;Via debugger I see:&lt;BR /&gt;00FFF8 FF FF C0 19 FF FF C0 00&lt;BR /&gt;&lt;BR /&gt;0xC019 is the address of _COPStartup(), 0xC000 points to _Startup()&lt;BR /&gt;&lt;BR /&gt;So far so good, but _COPStartup() is never executed. In case of a watchdog timeout, the CPU restarts with _Startup() instead of _COPStartup().&lt;BR /&gt;&lt;BR /&gt;What goes wrong??&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!!&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jan 2007 19:28:00 GMT</pubDate>
    <dc:creator>AndroTec</dc:creator>
    <dc:date>2007-01-10T19:28:00Z</dc:date>
    <item>
      <title>COP reset</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/COP-reset/m-p/127084#M635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi all,&lt;/DIV&gt;&lt;DIV&gt;is there any Application Notes on the COP(Computer Operating Properly) for MC9S12NE64?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;i'm aware that by writing to COPCTL register, watchdog is enabled and writing &amp;nbsp;ARMCOP = 0x55;&lt;BR /&gt;&amp;nbsp;ARMCOP = 0xAA;&lt;BR /&gt;will restart the watch dog.&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;i have a set of queries for COP:-&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;1. Is there any bit indication, which tells me wheter the Reset happened due to Watch dog(COP) or due to some other reasons.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;2. I'm installing a COP ISR (vector 2). but, on watch dog getting fired, it is not coming to the ISR. But, the system is getting reset.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;please help me out of this.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2006 23:22:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/COP-reset/m-p/127084#M635</guid>
      <dc:creator>tyson</dc:creator>
      <dc:date>2006-02-23T23:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: COP reset</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/COP-reset/m-p/127085#M636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;Hi Tyson,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;Well your 2. answers your 1.&lt;BR /&gt;If the COP vector is fetched it's because you've got a COP Reset. (p°90 datasheet v4). It's a dedicated vector.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;If you don't take the ISR you declared may be it is overridden somewhere else. (like double declared)&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;Check in the vector table in the debugger that you have the address of the ISR you want to be executed.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;COP is a RESET, not a normal ISR.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;Cheers,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;Alvin.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2006 23:44:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/COP-reset/m-p/127085#M636</guid>
      <dc:creator>Nabla69</dc:creator>
      <dc:date>2006-02-23T23:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: COP reset</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/COP-reset/m-p/127086#M637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I have the same problem: COP is configured and working, but if it fires, the "normal" reset is executed.&lt;BR /&gt;&lt;BR /&gt;My *.PRM file contains:&lt;BR /&gt;VECTOR 0 _Startup /* reset vector*/&lt;BR /&gt;VECTOR 2 _COPStartup /* COP reset vector: called when watchdog has triggered */&lt;BR /&gt;&lt;BR /&gt;Via debugger I see:&lt;BR /&gt;00FFF8 FF FF C0 19 FF FF C0 00&lt;BR /&gt;&lt;BR /&gt;0xC019 is the address of _COPStartup(), 0xC000 points to _Startup()&lt;BR /&gt;&lt;BR /&gt;So far so good, but _COPStartup() is never executed. In case of a watchdog timeout, the CPU restarts with _Startup() instead of _COPStartup().&lt;BR /&gt;&lt;BR /&gt;What goes wrong??&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!!&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 19:28:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/COP-reset/m-p/127086#M637</guid>
      <dc:creator>AndroTec</dc:creator>
      <dc:date>2007-01-10T19:28:00Z</dc:date>
    </item>
  </channel>
</rss>

