<?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: How to automatically swap Project.lcf files?</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/How-to-automatically-swap-Project-lcf-files/m-p/161539#M2736</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to open the&amp;nbsp;project's&amp;nbsp;Properties dialog:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;- Click right on the project name in the &lt;EM&gt;CodeWarrior Projects&lt;/EM&gt; view&lt;/P&gt;&lt;P&gt;&amp;nbsp; - Select &lt;STRONG&gt;&lt;EM&gt;Properties&lt;/EM&gt;&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp; - Switch to &lt;STRONG&gt;&lt;EM&gt;C/C++ Build&lt;/EM&gt;&lt;/STRONG&gt; &amp;gt; &lt;EM&gt;&lt;STRONG&gt;Settings&lt;/STRONG&gt;&lt;/EM&gt; page.&lt;/P&gt;&lt;P&gt;&amp;nbsp; - On the right hand side of the window you see a combo box named &lt;EM&gt;&lt;STRONG&gt;Build Configuration&lt;/STRONG&gt;&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Select the build configuration you want to&amp;nbsp;change. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NOTE: Changes made with build Configuration set to [All Configurations] will apply to all build configuration.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; - To change the name of the .lcf file&amp;nbsp;go to the &lt;STRONG&gt;&lt;EM&gt;Coldfire Linker&lt;/EM&gt;&lt;/STRONG&gt; &amp;gt; &lt;EM&gt;&lt;STRONG&gt;Input&lt;/STRONG&gt;&lt;/EM&gt; panel and change &lt;STRONG&gt;Link Command File (.lcf)&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You can use ${ProjDirPath} to specify a path relative to your project directory. The project directory is where you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; did originally create the project (i.e. where the file .project is located).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Aug 2011 12:57:06 GMT</pubDate>
    <dc:creator>CrasyCat</dc:creator>
    <dc:date>2011-08-31T12:57:06Z</dc:date>
    <item>
      <title>How to automatically swap Project.lcf files?</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/How-to-automatically-swap-Project-lcf-files/m-p/161536#M2733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two different Project.lcf files: One is for building witout a bootloader (for development) and the other is for building with a bootloader (for production).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I setup something that will swap out these two files (or just the code in the file) based on a flag like this?&lt;/P&gt;&lt;PRE&gt;#define DEVELOPMENT_BUILD&amp;nbsp; ( FALSE )&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried using a something like the following, but the LCF file seems to have it's own syntax and doesn't recognize these commands.&lt;/P&gt;&lt;PRE&gt;#if( DEVELOPMENT_BUILD == TRUE )....#else....#endif /* #if( DEVELOPMENT_BUILD == TRUE ) */&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: I'm using CW 10.1 with a&amp;nbsp;mcf51cn128 MCU.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:06:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/How-to-automatically-swap-Project-lcf-files/m-p/161536#M2733</guid>
      <dc:creator>ignisuti</dc:creator>
      <dc:date>2020-10-29T09:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to automatically swap Project.lcf files?</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/How-to-automatically-swap-Project-lcf-files/m-p/161537#M2734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Coldfire linker file syntax does not support preprocessing nor conditional directives.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to get two variant of the project one using one .lcf file and the other one using another one I would suggest you to define 2 Build configurations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One for the DEVELOPMENT_BUILD and another one for the other build.&lt;/P&gt;&lt;P&gt;Then in the properties dialog for each build configuration you can specify a different lcf file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to create a new Build configuration for your project:&lt;/P&gt;&lt;P&gt;&amp;nbsp; - Click right on the project name in the &lt;EM&gt;CodeWarrior Projects&lt;/EM&gt; view&lt;/P&gt;&lt;P&gt;&amp;nbsp; - Select &lt;STRONG&gt;&lt;EM&gt;Build Configuration&lt;/EM&gt;&lt;/STRONG&gt; &amp;gt; &lt;STRONG&gt;&lt;EM&gt;Manage&lt;/EM&gt;&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp; - Click on &lt;EM&gt;&lt;STRONG&gt;New&lt;/STRONG&gt;&lt;/EM&gt; and define a new name for your build configuration. You can copy settings from the initial configuration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can select which Build Configuration needs to be build either from the drop down list next to the Build button in the tool bar or changing the Active Configuration for the project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2011 16:13:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/How-to-automatically-swap-Project-lcf-files/m-p/161537#M2734</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2011-08-30T16:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to automatically swap Project.lcf files?</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/How-to-automatically-swap-Project-lcf-files/m-p/161538#M2735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestion CrasyCat.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand everything except for this instruction:&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Then in the properties dialog for each build configuration you can specify a different lcf file.﻿"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please provide more details?&lt;/P&gt;&lt;P&gt;1.) How do I get to the properties dialog for the build configuration?&lt;/P&gt;&lt;P&gt;2.) How do I specify a certain lcf file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2011 22:22:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/How-to-automatically-swap-Project-lcf-files/m-p/161538#M2735</guid>
      <dc:creator>ignisuti</dc:creator>
      <dc:date>2011-08-30T22:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to automatically swap Project.lcf files?</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/How-to-automatically-swap-Project-lcf-files/m-p/161539#M2736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to open the&amp;nbsp;project's&amp;nbsp;Properties dialog:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;- Click right on the project name in the &lt;EM&gt;CodeWarrior Projects&lt;/EM&gt; view&lt;/P&gt;&lt;P&gt;&amp;nbsp; - Select &lt;STRONG&gt;&lt;EM&gt;Properties&lt;/EM&gt;&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp; - Switch to &lt;STRONG&gt;&lt;EM&gt;C/C++ Build&lt;/EM&gt;&lt;/STRONG&gt; &amp;gt; &lt;EM&gt;&lt;STRONG&gt;Settings&lt;/STRONG&gt;&lt;/EM&gt; page.&lt;/P&gt;&lt;P&gt;&amp;nbsp; - On the right hand side of the window you see a combo box named &lt;EM&gt;&lt;STRONG&gt;Build Configuration&lt;/STRONG&gt;&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Select the build configuration you want to&amp;nbsp;change. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NOTE: Changes made with build Configuration set to [All Configurations] will apply to all build configuration.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; - To change the name of the .lcf file&amp;nbsp;go to the &lt;STRONG&gt;&lt;EM&gt;Coldfire Linker&lt;/EM&gt;&lt;/STRONG&gt; &amp;gt; &lt;EM&gt;&lt;STRONG&gt;Input&lt;/STRONG&gt;&lt;/EM&gt; panel and change &lt;STRONG&gt;Link Command File (.lcf)&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You can use ${ProjDirPath} to specify a path relative to your project directory. The project directory is where you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; did originally create the project (i.e. where the file .project is located).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2011 12:57:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/How-to-automatically-swap-Project-lcf-files/m-p/161539#M2736</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2011-08-31T12:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to automatically swap Project.lcf files?</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/How-to-automatically-swap-Project-lcf-files/m-p/161540#M2737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi CrasyCat,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to automatically swap P&lt;SPAN&gt;roject.lc&lt;/SPAN&gt;&lt;SPAN&gt;f files&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;using Codewarrior IDE version 5.9.0?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope it is...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;GA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 19:13:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/How-to-automatically-swap-Project-lcf-files/m-p/161540#M2737</guid>
      <dc:creator>G_A_</dc:creator>
      <dc:date>2012-02-21T19:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to automatically swap Project.lcf files?</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/How-to-automatically-swap-Project-lcf-files/m-p/161541#M2738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes this is possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1- First create a new build target:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Inside of the MCP window switch to the Targets tab&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Select Project &amp;gt; Create Target&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - In the New target dialog specify a name for the new target (for example MyTarget) and check clone existing target.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Then Select the existing build target.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- Click OK.&lt;/P&gt;&lt;P&gt;2- Change settings for the new target&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Inside of the targets tab, click on the red icons in front of the new target name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;- Open Target settings dialog (Press ALT + F7).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Change name of linker file. This depends on the micro you are targeting. So I cannot be more specific on&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; how to achieve that as you did not specify your target controller.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using Project &amp;gt; Set Default Target you can switch between the available build target and specify which one you want to build.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 21:21:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/How-to-automatically-swap-Project-lcf-files/m-p/161541#M2738</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2012-02-22T21:21:09Z</dc:date>
    </item>
  </channel>
</rss>

