<?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 CW for MCUs v11.1 S12Z -prefix / -include problem in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-for-MCUs-v11-1-S12Z-prefix-include-problem/m-p/958549#M15219</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using S12Z Compiler-&amp;gt;Prefix File setting to provide common application defines in common header file. Additionally I'm using Defined Macros (-D command line switch) for different project targets. The problem is that additional common header file doesn't&amp;nbsp;see -D defines if they appear on command line after -prefix / -include switch. &lt;/P&gt;&lt;P&gt;Having this in header file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #7f0055; font-size: small; "&gt;&lt;STRONG&gt;#if&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; !defined(DEVKIT)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #7f0055; font-size: small; "&gt;#define&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; DEVKIT 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and DEVKIT=1 in Defined Macros I see macro redefined compiler error. If I move Prefix File setting to S12Z Compiler-&amp;gt;General-&amp;gt;Other Flags (with leading -prefix or -include switch), then all -D's come prior to -include and everything is fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Sep 2019 14:03:50 GMT</pubDate>
    <dc:creator>kef2</dc:creator>
    <dc:date>2019-09-06T14:03:50Z</dc:date>
    <item>
      <title>CW for MCUs v11.1 S12Z -prefix / -include problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-for-MCUs-v11-1-S12Z-prefix-include-problem/m-p/958549#M15219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using S12Z Compiler-&amp;gt;Prefix File setting to provide common application defines in common header file. Additionally I'm using Defined Macros (-D command line switch) for different project targets. The problem is that additional common header file doesn't&amp;nbsp;see -D defines if they appear on command line after -prefix / -include switch. &lt;/P&gt;&lt;P&gt;Having this in header file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #7f0055; font-size: small; "&gt;&lt;STRONG&gt;#if&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; !defined(DEVKIT)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #7f0055; font-size: small; "&gt;#define&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; DEVKIT 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and DEVKIT=1 in Defined Macros I see macro redefined compiler error. If I move Prefix File setting to S12Z Compiler-&amp;gt;General-&amp;gt;Other Flags (with leading -prefix or -include switch), then all -D's come prior to -include and everything is fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2019 14:03:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-for-MCUs-v11-1-S12Z-prefix-include-problem/m-p/958549#M15219</guid>
      <dc:creator>kef2</dc:creator>
      <dc:date>2019-09-06T14:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: CW for MCUs v11.1 S12Z -prefix / -include problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-for-MCUs-v11-1-S12Z-prefix-include-problem/m-p/958550#M15220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="214565" data-username="kef2" href="https://community.nxp.com/people/kef2" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 600; text-decoration: none; font-size: 11.9994px;"&gt;Edward Karpicz&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please check if this solution can help you solve the problem&lt;/P&gt;&lt;P&gt;&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;If this can't help, please upload your demo project here, I will check it directly. Thanks.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jun Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2019 04:09:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-for-MCUs-v11-1-S12Z-prefix-include-problem/m-p/958550#M15220</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2019-09-09T04:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: CW for MCUs v11.1 S12Z -prefix / -include problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-for-MCUs-v11-1-S12Z-prefix-include-problem/m-p/958551#M15221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jun Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and thank you for reply. My issue has nothing to do with indexer. Indexer is about comfortable sources navigation and lookup. My issue is S12Z compile issue. Do compile switches come in this order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... -include config.h -DOSC_CLK=16000000 ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or in this order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... -DOSC_CLK=16000000 -include config.h&amp;nbsp;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;result is different. In the first case OSC_CLK is not visible to config.h. In the 2nd case OSC_CLK is visible to config.h. Is this a feature or bug? I think it's the bug. If feature, then IDE should provide the way to put -include switch after or priorto all -D's on command line. As I wrote previously my current workaround is to&amp;nbsp;use S12Z Compiler-&amp;gt;General-&amp;gt;Other Flags&amp;nbsp;setting instead of Compiler-&amp;gt;Prefix File. This makes -include put past all -D's on command line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Edward&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2019 06:28:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-for-MCUs-v11-1-S12Z-prefix-include-problem/m-p/958551#M15221</guid>
      <dc:creator>kef2</dc:creator>
      <dc:date>2019-09-09T06:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: CW for MCUs v11.1 S12Z -prefix / -include problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-for-MCUs-v11-1-S12Z-prefix-include-problem/m-p/958552#M15222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="15013" data-username="ZhangJennie" href="https://community.nxp.com/people/ZhangJennie"&gt;&lt;SPAN style="color: #0066cc; text-decoration: underline; "&gt;ZhangJennie&lt;/SPAN&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please remove ASSUMED ANSWERED!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Edward&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2019 17:14:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-for-MCUs-v11-1-S12Z-prefix-include-problem/m-p/958552#M15222</guid>
      <dc:creator>kef2</dc:creator>
      <dc:date>2019-09-09T17:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: CW for MCUs v11.1 S12Z -prefix / -include problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-for-MCUs-v11-1-S12Z-prefix-include-problem/m-p/958553#M15223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Edward,&lt;/P&gt;&lt;P&gt;I don't know why it's assume answered, I don't have right to remove it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this issue will always be tracked if you have any update.&lt;/P&gt;&lt;P&gt;The issue you described is abnormal, I can confirm it's not a feature.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I requested previously, please upload a demo project here, thus we can work on it directly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jun Zhang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2019 05:44:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-for-MCUs-v11-1-S12Z-prefix-include-problem/m-p/958553#M15223</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2019-09-10T05:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: CW for MCUs v11.1 S12Z -prefix / -include problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-for-MCUs-v11-1-S12Z-prefix-include-problem/m-p/958554#M15224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again. OK, you can't remove fooling assumed answered, I can't remove it. What for or who is this not working and annoying assumed answered? Green check box is the same for threads with solution, as well for threads with&amp;nbsp;dead and. Is it normal?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, I didn't notice your demo request. Here it is, see comments in sources/config.h&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2019 06:42:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-for-MCUs-v11-1-S12Z-prefix-include-problem/m-p/958554#M15224</guid>
      <dc:creator>kef2</dc:creator>
      <dc:date>2019-09-10T06:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: CW for MCUs v11.1 S12Z -prefix / -include problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-for-MCUs-v11-1-S12Z-prefix-include-problem/m-p/958555#M15225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="214565" data-username="kef2" href="https://community.nxp.com/people/kef2" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 200; text-decoration: none; font-size: 1.286rem;"&gt;Edward Karpicz&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that the project can't identify config.h file under folder {ProjDirPath}/Sources/&lt;/P&gt;&lt;P&gt;This is because this path is not under "Access Paths" list. Please add it manually as below, which could fix the error.&lt;/P&gt;&lt;P&gt;Please make sure all the header file paths are added here in the same way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please also&amp;nbsp;remove ${ProjDirPath}/Sources/config.h from S12Z Compiler-&amp;gt;Input-&amp;gt;Prefix File&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/89692iF779F8D84024EEE3/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;&lt;/P&gt;&lt;P&gt;Let me know if this can also work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day,&lt;/P&gt;&lt;P&gt;Jun Zhang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2019 09:19:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-for-MCUs-v11-1-S12Z-prefix-include-problem/m-p/958555#M15225</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2019-09-10T09:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: CW for MCUs v11.1 S12Z -prefix / -include problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-for-MCUs-v11-1-S12Z-prefix-include-problem/m-p/958556#M15226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI&gt;The problem is that the project can't identify config.h file under folder {ProjDirPath}/Sources/&lt;/LI&gt;&lt;LI&gt;This is because this path is not under "Access Paths" list. Please add it manually as below, which could fix the error.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not true. First of all full path to config.h is specified using standard Eclipse environment variable ${ProjDirPath}. 2nd, since full path is given Access Paths has nothing to do here. You may try using Access Paths of course, but since Access Paths like -D defines appear on command line to the right from&amp;nbsp;-include/-prefix switch, wouldn't&amp;nbsp;things get even worse?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See what compiler message you get. After compiler error it should point you to config.h and claim that OSC_CLK is not defined, though it is really defined using -D command switch.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2019 09:34:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-for-MCUs-v11-1-S12Z-prefix-include-problem/m-p/958556#M15226</guid>
      <dc:creator>kef2</dc:creator>
      <dc:date>2019-09-10T09:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: CW for MCUs v11.1 S12Z -prefix / -include problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-for-MCUs-v11-1-S12Z-prefix-include-problem/m-p/958557#M15227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the clarification. I will report this issue to development team. Will let you know once I get feedback.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jun Zhang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2019 11:53:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-for-MCUs-v11-1-S12Z-prefix-include-problem/m-p/958557#M15227</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2019-09-10T11:53:46Z</dc:date>
    </item>
  </channel>
</rss>

