<?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 CW4.6: 9S12XDP512: debug break point problems with XGATE in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW4-6-9S12XDP512-debug-break-point-problems-with-XGATE/m-p/193295#M7024</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We are using a 9S12XDP512, and have C code doing the initialization, transferring execution to old assembly code that is in the process of being converted. We are using the XGATE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When we step through the code, the XGATE control register is left alone from it's initial value (0x0000).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When we set a break point, the debugger sets the XGDBG bit, setting the XGMCTL register to a minimum of 0x0020.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On resume of code execution, this debug bit is not cleared, and our old assembly code doesn't touch XGMCTL again after initialization. So the XGATE stays in debug mode, freezing it's execution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to have the debugger restore XGMCTL to it's previous state before the break point?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Paul.&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Oct 2008 02:55:09 GMT</pubDate>
    <dc:creator>paulcsf</dc:creator>
    <dc:date>2008-10-14T02:55:09Z</dc:date>
    <item>
      <title>CW4.6: 9S12XDP512: debug break point problems with XGATE</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW4-6-9S12XDP512-debug-break-point-problems-with-XGATE/m-p/193295#M7024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We are using a 9S12XDP512, and have C code doing the initialization, transferring execution to old assembly code that is in the process of being converted. We are using the XGATE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When we step through the code, the XGATE control register is left alone from it's initial value (0x0000).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When we set a break point, the debugger sets the XGDBG bit, setting the XGMCTL register to a minimum of 0x0020.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On resume of code execution, this debug bit is not cleared, and our old assembly code doesn't touch XGMCTL again after initialization. So the XGATE stays in debug mode, freezing it's execution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to have the debugger restore XGMCTL to it's previous state before the break point?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Paul.&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 02:55:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW4-6-9S12XDP512-debug-break-point-problems-with-XGATE/m-p/193295#M7024</guid>
      <dc:creator>paulcsf</dc:creator>
      <dc:date>2008-10-14T02:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: CW4.6: 9S12XDP512: debug break point problems with XGATE</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW4-6-9S12XDP512-debug-break-point-problems-with-XGATE/m-p/193296#M7025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Well, we found it.&lt;BR /&gt;&lt;BR /&gt;We were initializing the XGATE with XGMCTL=0x8383, which has the wrong state for BDM freeze operation.&lt;BR /&gt;&lt;BR /&gt;The fix was to initialize the XGATE with XGMCTL=0xC3C3, causing the XGATE to freeze in DBM debug mode.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 04:05:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW4-6-9S12XDP512-debug-break-point-problems-with-XGATE/m-p/193296#M7025</guid>
      <dc:creator>paulcsf</dc:creator>
      <dc:date>2008-10-14T04:05:51Z</dc:date>
    </item>
  </channel>
</rss>

