<?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>Classic/Legacy CodeWarriorのトピックRe: Debugger jumps into misalign interrupt when code size exceeds 0x20000 bytes.</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Debugger-jumps-into-misalign-interrupt-when-code-size-exceeds/m-p/261429#M6567</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, scratch that.&amp;nbsp; I had turned off Large Data Memory Model to see what would happen.&amp;nbsp; Turning it back on made the "do not have the same memory model" problem go away.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still think that interrupts are not the problem, unless there is something else I am missing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Oct 2013 20:00:28 GMT</pubDate>
    <dc:creator>Charlie</dc:creator>
    <dc:date>2013-10-16T20:00:28Z</dc:date>
    <item>
      <title>Debugger jumps into misalign interrupt when code size exceeds 0x20000 bytes.</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Debugger-jumps-into-misalign-interrupt-when-code-size-exceeds/m-p/261426#M6564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Processor is the 56f8367 (which has 512k program flash, so I shouldn't be even near the limit) and I am using Codewarrior 8.3.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;from the xMap file&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;00000000 00000000 000000AE .p_interrupts_ROM&lt;/P&gt;&lt;P&gt;000000AE 000000AE 000000C6 .p_flash_ROM&lt;/P&gt;&lt;P&gt;00000174 00000174 0001FE8D .p_flash_ROM&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The total of these three is 0x20001&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first time the program calls "memset," it jumps into the illegal instruction interrupt&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if I remove a single i = 0; from the code, the resultant xMap contains&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;00000000 00000000 000000AE .p_interrupts_ROM&lt;/P&gt;&lt;P&gt;000000AE 000000AE 000000C6 .p_flash_ROM&lt;/P&gt;&lt;P&gt;00000174 00000174 0001FE8B .p_flash_ROM&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The total drops to 0x1FFFF&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this it runs without a problem.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What gives?&amp;nbsp; Why does it vomit on the 2^17 address location?&amp;nbsp; What are potential fixes?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2013 22:16:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Debugger-jumps-into-misalign-interrupt-when-code-size-exceeds/m-p/261426#M6564</guid>
      <dc:creator>Charlie</dc:creator>
      <dc:date>2013-10-02T22:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger jumps into misalign interrupt when code size exceeds 0x20000 bytes.</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Debugger-jumps-into-misalign-interrupt-when-code-size-exceeds/m-p/261427#M6565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Copy my reply to you in SR as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, please use large data model in your project when code size exceeds 0x20000 bytes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The second, please add the "alignsp" in the "#pragma interrupt" for ISR, like:&lt;/P&gt;&lt;P&gt; #pragma interrupt alignsp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; For subroutines of ISR, please use:&lt;/P&gt;&lt;P&gt; #pragma interrupt alignsp called&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 09:15:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Debugger-jumps-into-misalign-interrupt-when-code-size-exceeds/m-p/261427#M6565</guid>
      <dc:creator>TICS_Fiona</dc:creator>
      <dc:date>2013-10-14T09:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger jumps into misalign interrupt when code size exceeds 0x20000 bytes.</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Debugger-jumps-into-misalign-interrupt-when-code-size-exceeds/m-p/261428#M6566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Fiona,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, thank you for your help.&amp;nbsp; Second, I do not believe it is an interrupt problem as no matter where I put the first "memset," I always have the problem there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've dug a bit deeper and "touched" the "Runtime 56800e lmm.lib" file and now when I try to compile it, it complains that it "do not have the same memory model as the project."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the documentation, it mentions something about the e_flags and compiling with the large memory model, but I cannot find any additional information on how to do this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 19:55:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Debugger-jumps-into-misalign-interrupt-when-code-size-exceeds/m-p/261428#M6566</guid>
      <dc:creator>Charlie</dc:creator>
      <dc:date>2013-10-16T19:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger jumps into misalign interrupt when code size exceeds 0x20000 bytes.</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Debugger-jumps-into-misalign-interrupt-when-code-size-exceeds/m-p/261429#M6567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, scratch that.&amp;nbsp; I had turned off Large Data Memory Model to see what would happen.&amp;nbsp; Turning it back on made the "do not have the same memory model" problem go away.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still think that interrupts are not the problem, unless there is something else I am missing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 20:00:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Debugger-jumps-into-misalign-interrupt-when-code-size-exceeds/m-p/261429#M6567</guid>
      <dc:creator>Charlie</dc:creator>
      <dc:date>2013-10-16T20:00:28Z</dc:date>
    </item>
  </channel>
</rss>

