<?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: Preprocessor include macros don't work in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Preprocessor-include-macros-don-t-work/m-p/638811#M8224</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Laci,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition,&amp;nbsp; you can refer this article section2.1 with demo code:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-332027"&gt;How to support multiple targets in CodeWarrior(Classic, Eclipse)/KDS&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I referred Erich's article when writing this section&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fmcuoneclipse.com%2F2012%2F03%2F20%2Ffixing-the-eclipse-index%2F" rel="nofollow" target="_blank"&gt;https://mcuoneclipse.com/2012/03/20/fixing-the-eclipse-index/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jennie Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Dec 2016 08:16:20 GMT</pubDate>
    <dc:creator>ZhangJennie</dc:creator>
    <dc:date>2016-12-23T08:16:20Z</dc:date>
    <item>
      <title>Preprocessor include macros don't work</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Preprocessor-include-macros-don-t-work/m-p/638809#M8222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to use the preprocessor include macros feature of KDS to be able to build different firmware images on a per build profile basis for the various versions of our prototypes. Please see the following screenshot:&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="173367_173367.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122678iB51EED08AC2CBDC5/image-size/large?v=v2&amp;amp;px=999" role="button" title="173367_173367.png" alt="173367_173367.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screenshot from 2016-12-23 04-02-05.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/19iAAE58A2F87CAAE38/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2016-12-23 04-02-05.png" alt="Screenshot from 2016-12-23 04-02-05.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For some reason this doesn't work because:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The exact same firmware image gets built as without the macro.&lt;/LI&gt;&lt;LI&gt;In source code code editor the PROTOTYPE_VERSION_7 macro section gets grayed out instead of the else clause.&lt;/LI&gt;&lt;/OL&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd be really grateful if someone could help me.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Laci&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 03:11:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Preprocessor-include-macros-don-t-work/m-p/638809#M8222</guid>
      <dc:creator>laszlomonda</dc:creator>
      <dc:date>2016-12-23T03:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Preprocessor include macros don't work</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Preprocessor-include-macros-don-t-work/m-p/638810#M8223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Laci,&lt;/P&gt;&lt;P&gt;add your preprocessor symbols under the -D compiler (C, C++, assembler):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/261i2285B20554AF7930/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The other thing to know is: Eclipse uses the Indexer data base to gray out the sources. Depending on your project, I recommend you disable heuristics and rebuild the index, see &lt;A class="link-titled" href="https://mcuoneclipse.com/2012/03/20/fixing-the-eclipse-index/" title="https://mcuoneclipse.com/2012/03/20/fixing-the-eclipse-index/"&gt;Fixing the Eclipse Index | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 07:04:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Preprocessor-include-macros-don-t-work/m-p/638810#M8223</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2016-12-23T07:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Preprocessor include macros don't work</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Preprocessor-include-macros-don-t-work/m-p/638811#M8224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Laci,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition,&amp;nbsp; you can refer this article section2.1 with demo code:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-332027"&gt;How to support multiple targets in CodeWarrior(Classic, Eclipse)/KDS&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I referred Erich's article when writing this section&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fmcuoneclipse.com%2F2012%2F03%2F20%2Ffixing-the-eclipse-index%2F" rel="nofollow" target="_blank"&gt;https://mcuoneclipse.com/2012/03/20/fixing-the-eclipse-index/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jennie Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 08:16:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Preprocessor-include-macros-don-t-work/m-p/638811#M8224</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2016-12-23T08:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Preprocessor include macros don't work</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Preprocessor-include-macros-don-t-work/m-p/638812#M8225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erich, and Jennie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for your help! Erich's instructions totally solved my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have only one question left: What is the&amp;nbsp;preprocessor include macros feature of KDS supposed to do? It seems to me that it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day,&lt;/P&gt;&lt;P&gt;Laci&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2017 16:26:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Preprocessor-include-macros-don-t-work/m-p/638812#M8225</guid>
      <dc:creator>laszlomonda</dc:creator>
      <dc:date>2017-01-02T16:26:50Z</dc:date>
    </item>
  </channel>
</rss>

