<?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 Xgate debugging - software error interrupt MC9s12xdp512 - cross post in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Xgate-debugging-software-error-interrupt-MC9s12xdp512-cross-post/m-p/200942#M7550</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm cross-posting this since I'm not sure which board is correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="lia-component-body lia-message-body"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;I'm having the dreaded software error interrupt on some xgate code. I'm using the MC9s12XDP512 part and codewarrior with all the newest stuff applied.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've managed to assembly step it to the JAL that's throwing the exception.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;E089d0 LDL R6, #235&lt;/P&gt;&lt;P&gt;E089d2 ORH R6, #128&lt;/P&gt;&lt;P&gt;E089d4 JAL R6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At this point, R6 = 80EB which is an odd number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know what function this is jumping to, but I haven't any clue how I'm supposed to fix this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why is the compiler putting a function on an odd boundary? Or am I completely missing something here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should I have some additional options in the compiler settings or some pragmas in that file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried #pragma options align=2 with no success.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 May 2010 01:45:39 GMT</pubDate>
    <dc:creator>nhtshot</dc:creator>
    <dc:date>2010-05-18T01:45:39Z</dc:date>
    <item>
      <title>Xgate debugging - software error interrupt MC9s12xdp512 - cross post</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Xgate-debugging-software-error-interrupt-MC9s12xdp512-cross-post/m-p/200942#M7550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm cross-posting this since I'm not sure which board is correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="lia-component-body lia-message-body"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;I'm having the dreaded software error interrupt on some xgate code. I'm using the MC9s12XDP512 part and codewarrior with all the newest stuff applied.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've managed to assembly step it to the JAL that's throwing the exception.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;E089d0 LDL R6, #235&lt;/P&gt;&lt;P&gt;E089d2 ORH R6, #128&lt;/P&gt;&lt;P&gt;E089d4 JAL R6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At this point, R6 = 80EB which is an odd number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know what function this is jumping to, but I haven't any clue how I'm supposed to fix this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why is the compiler putting a function on an odd boundary? Or am I completely missing something here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should I have some additional options in the compiler settings or some pragmas in that file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried #pragma options align=2 with no success.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 01:45:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Xgate-debugging-software-error-interrupt-MC9s12xdp512-cross-post/m-p/200942#M7550</guid>
      <dc:creator>nhtshot</dc:creator>
      <dc:date>2010-05-18T01:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Xgate debugging - software error interrupt MC9s12xdp512 - cross post</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Xgate-debugging-software-error-interrupt-MC9s12xdp512-cross-post/m-p/200943#M7551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like a ALIGN directive is missing in the prm file.&lt;/P&gt;&lt;P&gt;Is 80EB the start of a XGATE function (check the map file)?&lt;/P&gt;&lt;P&gt;Make sure the segment which contains&amp;nbsp;80EB has a ALIGN directive, here's a snippet out of a wizard generated prm file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;RAM_F8 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= READ_WRITE &amp;nbsp;0xF81100 TO 0xF81FFF &lt;FONT color="#FF0000"&gt;ALIGN 2[1:1];&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 14:21:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Xgate-debugging-software-error-interrupt-MC9s12xdp512-cross-post/m-p/200943#M7551</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2010-05-18T14:21:10Z</dc:date>
    </item>
  </channel>
</rss>

