<?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のトピックRe: Build Configuration Symbols</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Build-Configuration-Symbols/m-p/198768#M7419</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the record, this is a godawful default value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just wasted half a day trying to figure out why the #ifdef highlighting was wrong the moment I had more than one configuration, when I knew for certain the define was there due to #warning being right during compilation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Dec 2014 16:38:58 GMT</pubDate>
    <dc:creator>Richard2</dc:creator>
    <dc:date>2014-12-18T16:38:58Z</dc:date>
    <item>
      <title>Build Configuration Symbols</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Build-Configuration-Symbols/m-p/198764#M7415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having issues getting a symbol to be tied to a build configuration.&amp;nbsp; I want to define DEBUG in my debug build configuration and not in my release build configuration.&amp;nbsp; After creating a bareboard project using the wizard it seems that symbols only work in the RAM configuration and they apply to all configurations even though you see nothing defined.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anybody gotten around this problem?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Mike&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2939_2939.bmp"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119002iFADF9DDE8E7880F1/image-size/large?v=v2&amp;amp;px=999" role="button" title="2939_2939.bmp" alt="2939_2939.bmp" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Paths and Symbols.bmp"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/38331iAE5D28C5E8CED954/image-size/large?v=v2&amp;amp;px=999" role="button" title="Paths and Symbols.bmp" alt="Paths and Symbols.bmp" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 19:52:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Build-Configuration-Symbols/m-p/198764#M7415</guid>
      <dc:creator>Mike_d</dc:creator>
      <dc:date>2012-12-05T19:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Build Configuration Symbols</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Build-Configuration-Symbols/m-p/198765#M7416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure I understand the issue here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the problem that you did define a macro DEBUG in your RAM build configuration only and when switching to the other configuration the conditional code displays code depending on macro DEBUG as active?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is the problem, this can be adjusted through a preference settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Select &lt;EM&gt;&lt;STRONG&gt;Windows&lt;/STRONG&gt;&lt;/EM&gt; &amp;gt; &lt;EM&gt;&lt;STRONG&gt;Preferences&lt;/STRONG&gt;&lt;/EM&gt;. The Preferences dialog is opened.&lt;/LI&gt;&lt;LI&gt;Switch to &lt;EM&gt;&lt;STRONG&gt;C/C++&lt;/STRONG&gt;&lt;/EM&gt; &amp;gt; &lt;STRONG&gt;&lt;EM&gt;Indexer&lt;/EM&gt;&lt;/STRONG&gt; page.&lt;/LI&gt;&lt;LI&gt;Check &lt;STRONG&gt;Use active build configuration&lt;/STRONG&gt; radio button&lt;/LI&gt;&lt;LI&gt;Click on &lt;STRONG&gt;Apply&lt;/STRONG&gt; and then &lt;STRONG&gt;OK&lt;/STRONG&gt; to close the Preference Dialog.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The display of conditional code should now match the macros defined for current configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this was not the problem, can you please be a little bit more specific.&lt;/P&gt;&lt;P&gt;Which controller are you targeting (HC08, ColdFire, Kinetis, ...)?&lt;/P&gt;&lt;P&gt;What is the problem exactly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 06:57:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Build-Configuration-Symbols/m-p/198765#M7416</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2012-12-06T06:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Build Configuration Symbols</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Build-Configuration-Symbols/m-p/198766#M7417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Michael,&lt;/P&gt;&lt;P&gt;in CW 10.2 if you need a preprocessor symbol like '#define DEBUG 1' you have to right-click your Debug issue and set 'Properties', and go to C/C++ Build -&amp;gt; Settings -&amp;gt; Tool Settings -&amp;gt; ... Compiler -&amp;gt; Language Settings &lt;BR /&gt;In this screen there is the 'Other flags" box: write in it "-define_DEBUG=1".&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 07:30:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Build-Configuration-Symbols/m-p/198766#M7417</guid>
      <dc:creator>mauriziostefane</dc:creator>
      <dc:date>2012-12-06T07:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Build Configuration Symbols</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Build-Configuration-Symbols/m-p/198767#M7418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Catherine, that got it working.&amp;nbsp;&amp;nbsp; For the record, my target is a Kinetis MCU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;-Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 13:52:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Build-Configuration-Symbols/m-p/198767#M7418</guid>
      <dc:creator>Mike_d</dc:creator>
      <dc:date>2012-12-06T13:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Build Configuration Symbols</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Build-Configuration-Symbols/m-p/198768#M7419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the record, this is a godawful default value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just wasted half a day trying to figure out why the #ifdef highlighting was wrong the moment I had more than one configuration, when I knew for certain the define was there due to #warning being right during compilation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 16:38:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Build-Configuration-Symbols/m-p/198768#M7419</guid>
      <dc:creator>Richard2</dc:creator>
      <dc:date>2014-12-18T16:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Build Configuration Symbols</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Build-Configuration-Symbols/m-p/198769#M7420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've now tried this in CodeWarrior 10.6, build id 140329 and it doesn't work at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code highlighting of #IFDEF blocks does not follow the currently-chosen configuration, regardless of this Indexer setting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two Build Configurations, one for each target board.&lt;/P&gt;&lt;P&gt;Each configuration has a define set in Project Properties &amp;gt; C/C++ General &amp;gt; Paths and Symbols &amp;gt; Symbols&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They build correctly (checked with #warning), however the #ifdef highlighting is always whichever building configuration happens to be the one at the top of the list of configurations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 16:48:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Build-Configuration-Symbols/m-p/198769#M7420</guid>
      <dc:creator>Richard2</dc:creator>
      <dc:date>2015-01-16T16:48:43Z</dc:date>
    </item>
  </channel>
</rss>

