<?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: XGATE does not start</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATE-does-not-start/m-p/167740#M5526</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you use new project wizard and told there you are going to use XGATE? If so, then XGATE should execute at least dummy SoftwareTrigger0_Handler() from xgate.cxgate.&amp;nbsp;Doesn't it run?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it runs, then you should do following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1)&amp;nbsp;You should either add XGSWT = 0x100; to SoftwareTrigger0_Handler(), or remove&amp;nbsp; XGSWT= 0x0101; from SetupXATE() in main.c. This is to prevent software thread 0 executing again and again, taking all XGATE time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) add PIT handler to *.cxgate file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) edit XGATE vectors table to point to PIT handler&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4) route PIT interrupt to XGATE. Add&amp;nbsp;&amp;nbsp;this to SetupXGATE:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;ROUTE_INTERRUPT(Vpit0, 0x81); // route PIT0 to XGATE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, if PIT is setup properly, XGATE shoud handle PIT interrupts&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Dec 2010 01:35:37 GMT</pubDate>
    <dc:creator>kef</dc:creator>
    <dc:date>2010-12-08T01:35:37Z</dc:date>
    <item>
      <title>XGATE does not start</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATE-does-not-start/m-p/167739#M5525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new to MCU programming and I can't get my XGATE to service my PIT interrupts although I get them to work on my CPU12.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using mc9s12XEP10CAL chip, and CodeWarrior 5.9.0 build 2836.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I configured the XGATE as described in some APP notes (AN3144, and AN2685). but i still don't get any results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any special configuration to get the XGATE to start ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ali.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 00:44:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATE-does-not-start/m-p/167739#M5525</guid>
      <dc:creator>alturc</dc:creator>
      <dc:date>2010-12-08T00:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: XGATE does not start</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATE-does-not-start/m-p/167740#M5526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you use new project wizard and told there you are going to use XGATE? If so, then XGATE should execute at least dummy SoftwareTrigger0_Handler() from xgate.cxgate.&amp;nbsp;Doesn't it run?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it runs, then you should do following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1)&amp;nbsp;You should either add XGSWT = 0x100; to SoftwareTrigger0_Handler(), or remove&amp;nbsp; XGSWT= 0x0101; from SetupXATE() in main.c. This is to prevent software thread 0 executing again and again, taking all XGATE time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) add PIT handler to *.cxgate file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) edit XGATE vectors table to point to PIT handler&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4) route PIT interrupt to XGATE. Add&amp;nbsp;&amp;nbsp;this to SetupXGATE:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;ROUTE_INTERRUPT(Vpit0, 0x81); // route PIT0 to XGATE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, if PIT is setup properly, XGATE shoud handle PIT interrupts&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 01:35:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATE-does-not-start/m-p/167740#M5526</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2010-12-08T01:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: XGATE does not start</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATE-does-not-start/m-p/167741#M5527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, it works perfectly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ali.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 02:31:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATE-does-not-start/m-p/167741#M5527</guid>
      <dc:creator>alturc</dc:creator>
      <dc:date>2010-12-08T02:31:49Z</dc:date>
    </item>
  </channel>
</rss>

