<?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: XGATEv3 breakpoint raising an access violation interrupt request to HCS12XE core in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298674#M10285</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Fahnder,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your vector map and ISR seem to be set up correctly. When you took the screenshot after entering debug mode, while still in error state (&lt;A class="jive-link-external-small" data-content-finding="Community" href="https://www.dropbox.com/s/b8p0sd3il2lxeo2/Screenshot%202014-05-16%2014.00.52.png" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #6a737b;"&gt;Dropbox - Screenshot 2014-05-16 14.00.52.png&lt;/A&gt;), are you sure the IDE was showing the correct register content? Is it possible, that XGPC as well as XGR1-XGR7 just had not been refreshed after you set XGDBG?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 May 2014 19:53:36 GMT</pubDate>
    <dc:creator>HSW</dc:creator>
    <dc:date>2014-05-19T19:53:36Z</dc:date>
    <item>
      <title>XGATEv3 breakpoint raising an access violation interrupt request to HCS12XE core</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298659#M10270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Hallo,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;I've been playing with the HCS12SXE XGATEv3 for a while now. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Currently, I'm facing this odd issue, where the XGATE code seems to run fine: I've set up a GPIO pin toggle to check and see if the XGATE ISR is entered and executed correctly, and on the scope I see the GPIO pin toggling fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;However, if I place a breakpoint at any part of the XGATE ISR, the XGATE raises an access violation interrupt request (non-maskable) to the HCS12XE core and halts code execution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;The original codebase uses Processor Expert. XGATE capabilities are now being added in. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Any ideas, on what could be possibly happening? Everything else checks out - XGATE vector table is correctly set, memory sections and code/data is aligned correctly on even boundaries. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 15:40:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298659#M10270</guid>
      <dc:creator>gnaws</dc:creator>
      <dc:date>2014-05-15T15:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: XGATEv3 breakpoint raising an access violation interrupt request to HCS12XE core</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298660#M10271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It sounds like you've configured the S12XDBG module to trigger an SWI interrupt whenever a XGATE breakpoint occurs. So you could check the following:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Is your vector table mapped in the correct location?&lt;/LI&gt;&lt;LI&gt;Does you SWI interrupt vector point to the correct ISR.&lt;/LI&gt;&lt;LI&gt;Did you configure the descriptors in the S12XMPU to grant access permission to the vector table and the SWI ISR.&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 13:12:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298660#M10271</guid>
      <dc:creator>HSW</dc:creator>
      <dc:date>2014-05-16T13:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: XGATEv3 breakpoint raising an access violation interrupt request to HCS12XE core</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298661#M10272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Heya HSW,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've checked the vector table and the SWI ISR vector, they look good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The MPU descriptors are configured by Processor Expert, and essentially the MPU should be disabled, from what I can tell. I'll have a closer look at those.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also worked through the application note here: &lt;A href="http://www.freescale.com/files/microcontrollers/doc/app_note/AN3555.pdf" title="http://www.freescale.com/files/microcontrollers/doc/app_note/AN3555.pdf"&gt;http://www.freescale.com/files/microcontrollers/doc/app_note/AN3555.pdf&lt;/A&gt;, but I've not been able to detect the root cause of the error yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bit more background detail: I have a standalone project, that essentially just exercises the XGATE. This works fine with breakpoints, stepping through the XGATE core etc. But integrating pieces of the code from the standalone project into the existing codebase has proved surprisingly trickly so far....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anything else I could be missing out?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 13:50:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298661#M10272</guid>
      <dc:creator>gnaws</dc:creator>
      <dc:date>2014-05-16T13:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: XGATEv3 breakpoint raising an access violation interrupt request to HCS12XE core</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298662#M10273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Fahnder,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The access error interrupt is triggered by the MPU, you shouldn't see it if the MPU was disabled. The MPU captures the address of the faulty access in the MPUASTAT register. Does this give you a hint for the cause of the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The details of application note AN3555 only apply to the XGATEV2. The listed causes of a XGATE software error are the same for the XGATEV3, but the "observable conditions" are different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I understood you correctly, you don't see a XGATE software error at the moment, right? The XGATE stops at a breakpoint and enters debug mode, while the CPU handles an non-maskable access error interrupt for an unknown reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more thing you could check for is the stack. Is the stack pointer set to the correct RAM location?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 15:00:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298662#M10273</guid>
      <dc:creator>HSW</dc:creator>
      <dc:date>2014-05-16T15:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: XGATEv3 breakpoint raising an access violation interrupt request to HCS12XE core</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298663#M10274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm actually not sure if the XGATE stops and enters debug mode. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I can see that: &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;XGATE:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XGMCTL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x00C3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XGSPSEL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x0&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HCS12XE:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MPUFLG&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x0 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MPUSTAT0/1/2 = 0x0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I can see is that control is passed to the HCS12XE core in a breakpoint in the routine "&lt;STRONG&gt;Cpu_ivVxsei&lt;/STRONG&gt;". &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In the CPU vector table, the corresponding entry is:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* ISR name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; No.&amp;nbsp; Address Pri XGATE&amp;nbsp;&amp;nbsp; Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Description */&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;Cpu_ivVxsei,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* 0x0B&amp;nbsp; 0xFF16&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; no&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ivVxsei&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; unused by PE */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I should clarify the terminology I've used:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The manual 'MC9S12XE-Family Reference Manual Rev. 1.25', section 6.4.6 has a Table 6-2. "Exception Vector Map and Priority" (page 274).&lt;/P&gt;&lt;P&gt;From referring the table, I notice this particular interrupt/exception being triggered - and I think this is in fact colloquially referred to as the "XGATE software error vector":&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Vector base + 0x0016): XGATE Access violation interrupt request&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 17:18:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298663#M10274</guid>
      <dc:creator>gnaws</dc:creator>
      <dc:date>2014-05-16T17:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: XGATEv3 breakpoint raising an access violation interrupt request to HCS12XE core</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298664#M10275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fahnder,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, XGATE Software error has occurred and the CPU is executing the non-maskable interrupt, as it is supposed to. What you"ll need to do next is to enter debug mode by writing 0x2020 to the XGMCTL register. Then you are able to read the RISC core's registers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you post a dump of the XGATE's register space and of the memory section which the PC points to, I'll help find the cause of the software error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 17:45:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298664#M10275</guid>
      <dc:creator>HSW</dc:creator>
      <dc:date>2014-05-16T17:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: XGATEv3 breakpoint raising an access violation interrupt request to HCS12XE core</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298665#M10276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HSW,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the information:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- XGATE register space:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/s/b8p0sd3il2lxeo2/Screenshot%202014-05-16%2014.00.52.png" title="https://www.dropbox.com/s/b8p0sd3il2lxeo2/Screenshot%202014-05-16%2014.00.52.png"&gt;Dropbox - Screenshot 2014-05-16 14.00.52.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The XGATE PC points to 0x0000 (it seems to stay there when the XGATE is inactive, but maybe this is not correct behaviour). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a better way for me to post the memory dumps? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 19:10:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298665#M10276</guid>
      <dc:creator>gnaws</dc:creator>
      <dc:date>2014-05-16T19:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: XGATEv3 breakpoint raising an access violation interrupt request to HCS12XE core</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298666#M10277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Fahnder,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A XGATE SWT0 interrupt request has been captured by the XGATE (XGCHID=0x39), but no interrupt vector has been fetched (XGPC=0x0000, XGR1=0x0000). So you should have a look at the vector table. Since XGVBR is set to 0x07DC, the interrupt vector should be at 0x07DC+4*0x39=0x8C0 (or 0x7808C0 global). What do you see at this address?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 19:38:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298666#M10277</guid>
      <dc:creator>HSW</dc:creator>
      <dc:date>2014-05-16T19:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: XGATEv3 breakpoint raising an access violation interrupt request to HCS12XE core</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298667#M10278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Morning HSW,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you're onto something here, but I don't quite understand what's going on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I see 0xCAFE at address 0xF88C0: &lt;A href="https://www.dropbox.com/s/bvrg3u0mtfc6fgd/Screenshot%202014-05-19%2009.17.36.png" title="https://www.dropbox.com/s/bvrg3u0mtfc6fgd/Screenshot%202014-05-19%2009.17.36.png"&gt;Dropbox - Screenshot 2014-05-19 09.17.36.png&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Now, when I look at my map file, and it says:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Addr&amp;nbsp;&amp;nbsp; hSize&amp;nbsp;&amp;nbsp; dSize&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ref&amp;nbsp;&amp;nbsp;&amp;nbsp; Section&amp;nbsp;&amp;nbsp; RLIB&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XGATE_VectorTable&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; E08800&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1C4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 452&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XGATE_VECTORS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I look at address 0xE08800 in the memory browser, and I see the XGATE vector table there:&lt;A href="https://www.dropbox.com/s/obb7ubrb6s9hns2/Screenshot%202014-05-19%2009.25.56.png" title="https://www.dropbox.com/s/obb7ubrb6s9hns2/Screenshot%202014-05-19%2009.25.56.png"&gt;Dropbox - Screenshot 2014-05-19 09.25.56.png&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The lines of code related to setting up XGVBR are:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;#define XGATE_VECTOR_OFFSET 9&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; /* the first elements are unused and need not to be allocated (to save space) */&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XGVBR= (unsigned int)(void*__far)(XGATE_VectorTable - XGATE_VECTOR_OFFSET);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 14:28:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298667#M10278</guid>
      <dc:creator>gnaws</dc:creator>
      <dc:date>2014-05-19T14:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: XGATEv3 breakpoint raising an access violation interrupt request to HCS12XE core</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298668#M10279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Fahnder,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You'll need to be careful not to mix up the 3 memory maps of the S12XE family. These are:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The global memory map (typically indicated by the suffix 'G). This is a 23-bit linear address space.&lt;/LI&gt;&lt;LI&gt;The CPU's local memory map (typically indicated by the suffix 'L). This is a combination of the CPU's 16-bit address space prepended with the value of the associated page register (PPAGE, RPAGE, or EPAGE)&lt;/LI&gt;&lt;LI&gt;The XGATE's local memory map (typically indicated by the suffix 'X). This is the 16-bit address space seen by the XGATE.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your program maps the XGATE's vector table to the start of the flash space at address 78_0800'G,&amp;nbsp; E0_8800'L, and 0800'X. The XGVBR register is set to 07DC'X (= 0800'x - 9*4) because the first 9 vectors are never used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The XGATE SWT0 vector is located at address 78_08C0'G, E0_88C0'L, and 08C0'X. Your screenshot shows that it contains the address FBF6'X. This translates to 0F_FBF6'G or 00_3BF6'L. This points into the RAM space. Do you have any valid code in there?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 15:55:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298668#M10279</guid>
      <dc:creator>HSW</dc:creator>
      <dc:date>2014-05-19T15:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: XGATEv3 breakpoint raising an access violation interrupt request to HCS12XE core</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298669#M10280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HSW,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're right, I got confused between the three different types of memory maps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you said, the XGATE SWT0 vector is located at &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;address 78_08C0'G, E0_88C0'L, and 08C0'X. &lt;/SPAN&gt;The screenshot in the previous reply shows it contains the address FBF6'X.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this (FBF6'X) translates to 7BF6'L or FFBF6'G, if I am not mistaken. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have my XGATE software trigger handler located at 7BF6'L: &lt;A href="https://www.dropbox.com/s/qjy0889i0d1vm8v/Screenshot%202014-05-19%2011.09.51.png" title="https://www.dropbox.com/s/qjy0889i0d1vm8v/Screenshot%202014-05-19%2011.09.51.png"&gt;Dropbox - Screenshot 2014-05-19 11.09.51.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this sound correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 16:11:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298669#M10280</guid>
      <dc:creator>gnaws</dc:creator>
      <dc:date>2014-05-19T16:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: XGATEv3 breakpoint raising an access violation interrupt request to HCS12XE core</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298670#M10281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Fahnder,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, FBF6'X is located in RAM. Translated to the CPU's local address space, the ISR would need to start at 3BF6'L.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 18:33:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298670#M10281</guid>
      <dc:creator>HSW</dc:creator>
      <dc:date>2014-05-19T18:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: XGATEv3 breakpoint raising an access violation interrupt request to HCS12XE core</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298671#M10282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HSW,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the address mapping utility "hcs12xadrmap.exe" located in "C:\Program Files (x86)\Freescale\CWS12v5.1\Prog\". The utility shows me that the global address corresponding to FBF6'X should be 7BF6'L. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/s/56gj7arh4gq2nop/Screenshot%202014-05-19%2013.52.47.png" title="https://www.dropbox.com/s/56gj7arh4gq2nop/Screenshot%202014-05-19%2013.52.47.png"&gt;Dropbox - Screenshot 2014-05-19 13.52.47.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I using it incorrectly?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 18:57:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298671#M10282</guid>
      <dc:creator>gnaws</dc:creator>
      <dc:date>2014-05-19T18:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: XGATEv3 breakpoint raising an access violation interrupt request to HCS12XE core</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298672#M10283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Fahnder,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I forgot about this mapping option. If you set the ROMHM and RAMHM bit in the MMCCTL1 register (0013'L), the RAM is mapped to the address range 2000'L - 7FFF'L. What is the content of the MMCCTL1 register in your application?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 19:18:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298672#M10283</guid>
      <dc:creator>HSW</dc:creator>
      <dc:date>2014-05-19T19:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: XGATEv3 breakpoint raising an access violation interrupt request to HCS12XE core</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298673#M10284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HSW,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MMCTL1 = 0x1B in my application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The range 0x4000 to 0x7FFF is set up as non-paged RAM for me. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 19:28:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298673#M10284</guid>
      <dc:creator>gnaws</dc:creator>
      <dc:date>2014-05-19T19:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: XGATEv3 breakpoint raising an access violation interrupt request to HCS12XE core</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298674#M10285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Fahnder,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your vector map and ISR seem to be set up correctly. When you took the screenshot after entering debug mode, while still in error state (&lt;A class="jive-link-external-small" data-content-finding="Community" href="https://www.dropbox.com/s/b8p0sd3il2lxeo2/Screenshot%202014-05-16%2014.00.52.png" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #6a737b;"&gt;Dropbox - Screenshot 2014-05-16 14.00.52.png&lt;/A&gt;), are you sure the IDE was showing the correct register content? Is it possible, that XGPC as well as XGR1-XGR7 just had not been refreshed after you set XGDBG?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 19:53:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298674#M10285</guid>
      <dc:creator>HSW</dc:creator>
      <dc:date>2014-05-19T19:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: XGATEv3 breakpoint raising an access violation interrupt request to HCS12XE core</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298675#M10286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HSW,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the sequence of steps I followed just now:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I halted execution of code,&lt;/LI&gt;&lt;LI&gt;I placed a breakpoint in the XGATE SWT0 ISR,&lt;/LI&gt;&lt;LI&gt;I resumed code execution,&lt;/LI&gt;&lt;LI&gt;When I saw the code has halted execution, and was trapped at the breakpoint in "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Cpu_ivVxsei", I clicked refresh on the "MCURegisters" component.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Then I entered 0x2020 into the XGMCTL register, using the "Memory" component.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I looked at the "MCURegisters" component. I noticed that none of the registers have changed value, except for XGMCTL.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Here's a screenshot I took at the end of the process: &lt;A href="https://www.dropbox.com/s/ll2qxzbbae5rgca/Screenshot%202014-05-19%2015.11.50.png" title="https://www.dropbox.com/s/ll2qxzbbae5rgca/Screenshot%202014-05-19%2015.11.50.png"&gt;Dropbox - Screenshot 2014-05-19 15.11.50.png&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 20:13:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298675#M10286</guid>
      <dc:creator>gnaws</dc:creator>
      <dc:date>2014-05-19T20:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: XGATEv3 breakpoint raising an access violation interrupt request to HCS12XE core</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298676#M10287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Fahnder,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What happens when you start the SWT0 thread manually in debug mode?&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Enter debug mode (0x2020 -&amp;gt; XGMCTL)&lt;/LI&gt;&lt;LI&gt;Make sure XGSWEF is cleared (0x0202 -&amp;gt; XGMCTL)&lt;/LI&gt;&lt;LI&gt;Make sure no thread is active (0x00 -&amp;gt; XGCHID, 0x00 -&amp;gt; XGCHID)&lt;/LI&gt;&lt;LI&gt;Start the SWT0 thread manually (0x39 -&amp;gt; XGCHID)&lt;/LI&gt;&lt;LI&gt;Step through the ISR (0x1010 -&amp;gt; XGMCTL, 0x1010 -&amp;gt; XGMCTL, 0x1010 -&amp;gt; XGMCTL, ....)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;After which step do you see the software error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 21:06:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298676#M10287</guid>
      <dc:creator>HSW</dc:creator>
      <dc:date>2014-05-19T21:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: XGATEv3 breakpoint raising an access violation interrupt request to HCS12XE core</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298677#M10288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Morning HSW,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did the following sequence of events:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Opened the XGATE registers in the "memory" component and set the component for word-display&lt;/LI&gt;&lt;LI&gt;Entered debug mode ( 0x2020 -&amp;gt; XGMCTL)&lt;/LI&gt;&lt;LI&gt;Cleared XGSWEF (0x0202 -&amp;gt; XGCMTL)&lt;/LI&gt;&lt;LI&gt;No thread active (0x00 -&amp;gt;XGCHID)&lt;/LI&gt;&lt;LI&gt;Placed a breakpoint in the XGATE SWT0 ISR&lt;/LI&gt;&lt;LI&gt;Started SWT0 manually (0x39-&amp;gt;XGCHID)&lt;/LI&gt;&lt;LI&gt;Stepped through the XGATE SWT0 ISR by selecting the XGATE source code component, and hitting F11 to step through the code (did not understand this: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(0x1010 -&amp;gt; XGMCTL, 0x1010 -&amp;gt; XGMCTL, 0x1010 -&amp;gt; XGMCTL, ....)&lt;/SPAN&gt;)&lt;/LI&gt;&lt;LI&gt;I saw that the XGATE SWT0 ISR successfully executes (saw a GPIO line set high at the beginning of the ISR, and then set low at the end of the ISR, two counters incremented, etc).&lt;/LI&gt;&lt;LI&gt;I repeated step 6-7 a few times and observed everything working as expected.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I let the code 'free run' and immediately saw the XGATE software error triggered (i.e. &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; code has halted execution, and was trapped at the breakpoint in "&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Cpu_ivVxsei"&lt;/SPAN&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To reiterate, this only appears to happen when a breakpoint is placed in the XGATE SWT0 ISR. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What else could I try?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 14:42:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298677#M10288</guid>
      <dc:creator>gnaws</dc:creator>
      <dc:date>2014-05-20T14:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: XGATEv3 breakpoint raising an access violation interrupt request to HCS12XE core</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298678#M10289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Fahnder,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it's time to use the S12XE's trace buffer. Can you do a trace of the XGATE's program counter in "Pure PC" mode?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 16:21:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATEv3-breakpoint-raising-an-access-violation-interrupt-request/m-p/298678#M10289</guid>
      <dc:creator>HSW</dc:creator>
      <dc:date>2014-05-20T16:21:23Z</dc:date>
    </item>
  </channel>
</rss>

