<?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: Disable S12(X) watchdog / COP using Codewarrior Hiwave debugger in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Disable-S12-X-watchdog-COP-using-Codewarrior-Hiwave-debugger/m-p/157869#M4818</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By inserting the appropriate instruction 'movb #$40,COPCTL' in some example code I get this to work in a sample project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I need the debugger to do it for production testing as we cannot insert that instruction in the production code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Presumably I can put it in one of the debugger 'cmd' files? But which one and what's the syntax?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Aug 2011 15:41:01 GMT</pubDate>
    <dc:creator>imurphy</dc:creator>
    <dc:date>2011-08-11T15:41:01Z</dc:date>
    <item>
      <title>Disable S12(X) watchdog / COP using Codewarrior Hiwave debugger</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Disable-S12-X-watchdog-COP-using-Codewarrior-Hiwave-debugger/m-p/157867#M4816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When halting the processor (S12XEP100) in the Codewarrior Hiwave debugger, the processor is always reset by the watchdog (COP) and the code starts running again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I configure the debugger so the watchdog is halted in debug mode? This is an easy option to set on MPC55xx devices but I don't know how to do it in S12(X).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 00:56:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Disable-S12-X-watchdog-COP-using-Codewarrior-Hiwave-debugger/m-p/157867#M4816</guid>
      <dc:creator>imurphy</dc:creator>
      <dc:date>2011-08-11T00:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Disable S12(X) watchdog / COP using Codewarrior Hiwave debugger</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Disable-S12-X-watchdog-COP-using-Codewarrior-Hiwave-debugger/m-p/157868#M4817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to set RSBCK bit in COPCTL register. (Keep in mind that COPCTL register has write once bits, so either write all COPCTL bit once or set RSBCK after COP setup is complete).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 14:54:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Disable-S12-X-watchdog-COP-using-Codewarrior-Hiwave-debugger/m-p/157868#M4817</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2011-08-11T14:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Disable S12(X) watchdog / COP using Codewarrior Hiwave debugger</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Disable-S12-X-watchdog-COP-using-Codewarrior-Hiwave-debugger/m-p/157869#M4818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By inserting the appropriate instruction 'movb #$40,COPCTL' in some example code I get this to work in a sample project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I need the debugger to do it for production testing as we cannot insert that instruction in the production code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Presumably I can put it in one of the debugger 'cmd' files? But which one and what's the syntax?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 15:41:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Disable-S12-X-watchdog-COP-using-Codewarrior-Hiwave-debugger/m-p/157869#M4818</guid>
      <dc:creator>imurphy</dc:creator>
      <dc:date>2011-08-11T15:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Disable S12(X) watchdog / COP using Codewarrior Hiwave debugger</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Disable-S12-X-watchdog-COP-using-Codewarrior-Hiwave-debugger/m-p/157870#M4819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is you should let application set up COPCTL first, else it probably will reset RSBCK back to 0. I think you need to make reset.cmd to set breakpoint somewhere after COPCTL setup, go until there, write COPCTL with RSBCK set, then probably delete breakpoint. Something like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BS 0x4000 // address to stop at, where COPCTL is already setup&lt;/P&gt;&lt;P&gt;GO&lt;/P&gt;&lt;P&gt;WB 0x3C 0x40&amp;nbsp; // write 0x40/*RSBCK*/ to COPCTL&lt;/P&gt;&lt;P&gt;BC 0x4000 // delete breakpoin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 18:15:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Disable-S12-X-watchdog-COP-using-Codewarrior-Hiwave-debugger/m-p/157870#M4819</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2011-08-11T18:15:35Z</dc:date>
    </item>
  </channel>
</rss>

