<?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: MC9S12XDP512 in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XDP512/m-p/210952#M8732</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might find this &lt;A href="http://www.embeddedrelated.com/groups/68hc12/show/522.php" rel="nofollow noopener noreferrer" target="_self"&gt;message board thread&lt;/A&gt; helpful.&amp;nbsp; Your XIRQ ISR is probably not set up correctly and when an XIRQ interrupt happens, the microcontroller goes off into "bogus territory" where there are BGND instructions.&amp;nbsp; Check your interrupt vector for the XIRQ, which should be at your vector base + $F4, which is usually $FFF4 unless you've messed with the IVBR register.&amp;nbsp; Check that the location that $FFF4 points to is your XIRQ ISR.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are using Freescale Codewarrior, you can use the bin/Project.abs.s19 file to look at the contents of $FFF4, and you can use the bin/Project.map to check where your XIRQ ISR is put.&amp;nbsp; Be aware of banking issues.&amp;nbsp; You might want to have your XIRQ ISR look like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;#pragma push#pragma CODE_SEG __NEAR_SEG NON_BANKEDinterrupt void __near XIRQ_ISR(){    //code here}#pragma pop&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;That way the ISR will not be placed in banked memory and therefore the ISR can be addressed using only two bytes, which means it can fit in $FFF4..$FFF5.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Jul 2010 19:56:05 GMT</pubDate>
    <dc:creator>isionous</dc:creator>
    <dc:date>2010-07-27T19:56:05Z</dc:date>
    <item>
      <title>MC9S12XDP512</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XDP512/m-p/210951#M8731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Please help me!!&lt;/P&gt;&lt;P&gt;I am using the XIRQ interrupt in my application &amp;amp; I am facing the problem of illegal_bp(illegal breakpoint).&lt;/P&gt;&lt;P&gt;Please tell me the method of handling the XIRQ interrupt,what is the cause for illegal_bp &amp;amp; how to avoid illegal_bp.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jul 2010 17:34:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XDP512/m-p/210951#M8731</guid>
      <dc:creator>roja</dc:creator>
      <dc:date>2010-07-05T17:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12XDP512</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XDP512/m-p/210952#M8732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might find this &lt;A href="http://www.embeddedrelated.com/groups/68hc12/show/522.php" rel="nofollow noopener noreferrer" target="_self"&gt;message board thread&lt;/A&gt; helpful.&amp;nbsp; Your XIRQ ISR is probably not set up correctly and when an XIRQ interrupt happens, the microcontroller goes off into "bogus territory" where there are BGND instructions.&amp;nbsp; Check your interrupt vector for the XIRQ, which should be at your vector base + $F4, which is usually $FFF4 unless you've messed with the IVBR register.&amp;nbsp; Check that the location that $FFF4 points to is your XIRQ ISR.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are using Freescale Codewarrior, you can use the bin/Project.abs.s19 file to look at the contents of $FFF4, and you can use the bin/Project.map to check where your XIRQ ISR is put.&amp;nbsp; Be aware of banking issues.&amp;nbsp; You might want to have your XIRQ ISR look like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;#pragma push#pragma CODE_SEG __NEAR_SEG NON_BANKEDinterrupt void __near XIRQ_ISR(){    //code here}#pragma pop&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;That way the ISR will not be placed in banked memory and therefore the ISR can be addressed using only two bytes, which means it can fit in $FFF4..$FFF5.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jul 2010 19:56:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XDP512/m-p/210952#M8732</guid>
      <dc:creator>isionous</dc:creator>
      <dc:date>2010-07-27T19:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12XDP512</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XDP512/m-p/210953#M8733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply.But my ISR looks as you have shown but still id does'nt work..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jul 2010 20:06:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XDP512/m-p/210953#M8733</guid>
      <dc:creator>roja</dc:creator>
      <dc:date>2010-07-27T20:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12XDP512</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XDP512/m-p/210954#M8734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you'll have to tell us more about your problem.&amp;nbsp; When exactly do you get the illegal breakpoint errors? What is going on just before the illegal breakpoint error? What is the value of the program counter?&amp;nbsp; Are you executing BGND instructions or not?&amp;nbsp; Does the same thing happen when you simulate a XIRQ edge in the simulator?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You might want to make a project that is as simple as possible but still has the problem and upload it here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jul 2010 00:22:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XDP512/m-p/210954#M8734</guid>
      <dc:creator>isionous</dc:creator>
      <dc:date>2010-07-28T00:22:03Z</dc:date>
    </item>
  </channel>
</rss>

