<?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>CodeWarrior for MCUのトピックRetargeting a project</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Retargeting-a-project/m-p/150223#M3554</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I recall seeing demos showing how easy it is to retarget CW projects from one processor to another -- just a few clicks of the mouse, with minimal editing. &amp;nbsp;However, I can't find instructions for doing this. &amp;nbsp;Maybe I'm looking in the wrong places, or maybe I just imagined this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a project that runs on the MC9S08SH16 but is running out of space, so I want to retarget it to the&amp;nbsp;&lt;SPAN&gt;MC9S08SH32. &amp;nbsp;Any help will be appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; Richly&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 31 Mar 2012 03:13:54 GMT</pubDate>
    <dc:creator>Richly</dc:creator>
    <dc:date>2012-03-31T03:13:54Z</dc:date>
    <item>
      <title>Retargeting a project</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Retargeting-a-project/m-p/150223#M3554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I recall seeing demos showing how easy it is to retarget CW projects from one processor to another -- just a few clicks of the mouse, with minimal editing. &amp;nbsp;However, I can't find instructions for doing this. &amp;nbsp;Maybe I'm looking in the wrong places, or maybe I just imagined this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a project that runs on the MC9S08SH16 but is running out of space, so I want to retarget it to the&amp;nbsp;&lt;SPAN&gt;MC9S08SH32. &amp;nbsp;Any help will be appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; Richly&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Mar 2012 03:13:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Retargeting-a-project/m-p/150223#M3554</guid>
      <dc:creator>Richly</dc:creator>
      <dc:date>2012-03-31T03:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Retargeting a project</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Retargeting-a-project/m-p/150224#M3555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;you can find the change wizard under the menu Project &amp;gt; Change Device/Connection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;BK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Mar 2012 10:57:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Retargeting-a-project/m-p/150224#M3555</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2012-03-31T10:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Retargeting a project</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Retargeting-a-project/m-p/150225#M3556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. &amp;nbsp;I had stumbled across that once before and couldn't find it again. &amp;nbsp;If you haven't selected the project, the menu item is greyed out, so I skipped over it many times.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After running the wizard, I got a whole bunch of undefined symbols. &amp;nbsp;Looking at them, I think the problem is that all the floating point routines are missing. &amp;nbsp;Any idea how to convince the newly targeted project to include (32-bit) floating point, which the original target successfully used?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Richly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Mar 2012 14:51:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Retargeting-a-project/m-p/150225#M3556</guid>
      <dc:creator>Richly</dc:creator>
      <dc:date>2012-03-31T14:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Retargeting a project</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Retargeting-a-project/m-p/150226#M3557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;You probably linking with a library with no floating point support.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Floating point support is basically done in two places:&lt;/P&gt;&lt;P&gt;- libraries: make sure you have the same library set up as in your previous project. They are in project &amp;gt; Properties &amp;gt; C/C++ Build &amp;gt; Settings &amp;gt; Linker &amp;gt; Input&lt;/P&gt;&lt;P&gt;- For no floating point support, there is a __NO_FLOAT__ define set. Remove it from project &amp;gt; Properties &amp;gt; C/C++ Build &amp;gt; Settings &amp;gt; Compiler &amp;gt; Preprocessor&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;BK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Mar 2012 21:22:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Retargeting-a-project/m-p/150226#M3557</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2012-03-31T21:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Retargeting a project</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Retargeting-a-project/m-p/150227#M3558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks for your&amp;nbsp;excellent information! &amp;nbsp;It solved the floating point problem. &amp;nbsp;I really appreciate your laying out the steps to find the places to change. &amp;nbsp;That made it quite easy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I should probably two bug reports about retargeting:&lt;/P&gt;&lt;P&gt;&amp;nbsp; (1) the failure to include floating point support&lt;/P&gt;&lt;P&gt;&amp;nbsp; (2) the failure to use the altered values in the&amp;nbsp;linker parameter file (project.prm). &amp;nbsp;I had doubled the stack size and commented out the definition of VECTOR 0, and neither of these made it into the retargeted project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Richly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 11:50:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Retargeting-a-project/m-p/150227#M3558</guid>
      <dc:creator>Richly</dc:creator>
      <dc:date>2012-04-02T11:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Retargeting a project</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Retargeting-a-project/m-p/150228#M3559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oops. &amp;nbsp;Found another bug related to retargeting. &amp;nbsp;I am using 32-bit floating point. The retargeting lost two flags: -TD2 and -Fd. &amp;nbsp;I'm not totally sure how to generate both of these, but there are two more things I changed:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;(1) project &amp;gt; Properties &amp;gt; C/C++ Build &amp;gt; Settings &amp;gt; HCS08 Compiler &amp;gt; Code Generation&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I checked Use IEEE32 for double (default is IEEE64)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; (2)&amp;nbsp;&lt;SPAN&gt;project &amp;gt; Properties &amp;gt; C/C++ Build &amp;gt; Settings &amp;gt; HCS08 Compiler &amp;gt; Type Sizes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I selected IEEE32 for double.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These two changes seem to have fixed the problem more completely...but more testing may be necessary!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Richly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Apr 2012 05:37:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Retargeting-a-project/m-p/150228#M3559</guid>
      <dc:creator>Richly</dc:creator>
      <dc:date>2012-04-07T05:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Retargeting a project</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Retargeting-a-project/m-p/150229#M3560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gosh...now another missing piece:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To prevent initialization of RAM at power on reset, the original project had the following definition in the compiler's options:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -D__ONLY_INIT_SP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is missing in the retargeted project. &amp;nbsp;The only way I could find to generate it was to go to&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; project &amp;gt; Properties &amp;gt; C/C++ Build &amp;gt; Settings &amp;gt; HCS08 Compiler &amp;gt;&amp;nbsp;Preprocessor&lt;/P&gt;&lt;P&gt;and manually add&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; __ONLY_INIT_SP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps the last piece...now the before and after lists of compiler options match each other.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; - Richly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Apr 2012 09:34:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Retargeting-a-project/m-p/150229#M3560</guid>
      <dc:creator>Richly</dc:creator>
      <dc:date>2012-04-07T09:34:21Z</dc:date>
    </item>
  </channel>
</rss>

