<?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: Migration from codewarrior for coldfire to codewarrior eclipse 11 in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Migration-from-codewarrior-for-coldfire-to-codewarrior-eclipse/m-p/831168#M14859</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I find the answer. The problem was the method to paramerer passing. By default, in codewarrior 11 is set to "register", so my setup in codewarrior classic is in "compact".&lt;/P&gt;&lt;P&gt;I just need to add "#pragma compact_abi" in the code and now can i see the "lost code" (&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;subq.l #4, a7).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Now my board start and appears to be good. Now i'm testing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Sep 2018 08:39:53 GMT</pubDate>
    <dc:creator>superdiode2</dc:creator>
    <dc:date>2018-09-18T08:39:53Z</dc:date>
    <item>
      <title>Migration from codewarrior for coldfire to codewarrior eclipse 11</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Migration-from-codewarrior-for-coldfire-to-codewarrior-eclipse/m-p/831166#M14857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;BR /&gt;I decided to migrate a codewarrior for coldfire (V2), 5.9 version project to new codewarrior based on eclipse, version 11. This is forced because upgrading PC from windows XP to windows 10.&lt;BR /&gt;I maked some changes in the code, and now it compiles and generate a ELF file.&lt;BR /&gt;But when i run the board with this ELF file, it doesn't start.&lt;BR /&gt;When i debug this program, it stops with a "adress error". The code is the same with codewarriro classic. Viewing registry, i can see a wrong values in A7 address (stack pointer). And the value son the stack is no linear.&lt;BR /&gt;I debug now in disassembly, and view differences from classic IDE.&lt;BR /&gt;When the code call the first function, the code is:&lt;BR /&gt;- link a6, #0&lt;BR /&gt;- move.l a4, -(a7)&lt;BR /&gt;- move.l a3, -(a7)&lt;/P&gt;&lt;P&gt;but in classic codewarrior, and not in eclipse, has too:&lt;BR /&gt;- subq.l #4, a7.&lt;/P&gt;&lt;P&gt;This line (subq.l...) not appears in all functions, so i think there is special instruction in this location for something that i don't know.&lt;/P&gt;&lt;P&gt;I try to put this assembly line manually, and when the code runs, all is ok, but a few lines later it falls again. So i discarded put some assembly code manually because it's impossible to know what and where.&lt;/P&gt;&lt;P&gt;In the project properties of both IDEs, i have marked "A6 Stack Frames".&lt;/P&gt;&lt;P&gt;My questions are:&lt;BR /&gt;- How works stack pointer? Is A7 or A6? Why uses both in assembly code?&lt;BR /&gt;- I think there is two possible reason to this error: some incorrect project property or a bug in the compiler. I checked all properties, so i can only think that is the compiler. The compiler is not GNU. What i can do?&lt;/P&gt;&lt;P&gt;Thanks in advanced.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2018 09:50:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Migration-from-codewarrior-for-coldfire-to-codewarrior-eclipse/m-p/831166#M14857</guid>
      <dc:creator>superdiode2</dc:creator>
      <dc:date>2018-09-17T09:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Migration from codewarrior for coldfire to codewarrior eclipse 11</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Migration-from-codewarrior-for-coldfire-to-codewarrior-eclipse/m-p/831167#M14858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How was you project migrated? There are many versions in between the CodeWarrior versions you mention. I would recommend that you follow the the steps mentioned by my colleague Pascal on the following post:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/thread/379597#comment-585434" title="https://community.nxp.com/thread/379597#comment-585434"&gt;https://community.nxp.com/thread/379597#comment-585434&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Carlos Mendoza&lt;BR /&gt;Technical Support Engineer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2018 01:15:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Migration-from-codewarrior-for-coldfire-to-codewarrior-eclipse/m-p/831167#M14858</guid>
      <dc:creator>Carlos_Mendoza</dc:creator>
      <dc:date>2018-09-18T01:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Migration from codewarrior for coldfire to codewarrior eclipse 11</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Migration-from-codewarrior-for-coldfire-to-codewarrior-eclipse/m-p/831168#M14859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I find the answer. The problem was the method to paramerer passing. By default, in codewarrior 11 is set to "register", so my setup in codewarrior classic is in "compact".&lt;/P&gt;&lt;P&gt;I just need to add "#pragma compact_abi" in the code and now can i see the "lost code" (&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;subq.l #4, a7).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Now my board start and appears to be good. Now i'm testing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2018 08:39:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Migration-from-codewarrior-for-coldfire-to-codewarrior-eclipse/m-p/831168#M14859</guid>
      <dc:creator>superdiode2</dc:creator>
      <dc:date>2018-09-18T08:39:53Z</dc:date>
    </item>
  </channel>
</rss>

