<?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: classic CW compiler with Eclipse in Classic/Legacy CodeWarrior</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/classic-CW-compiler-with-Eclipse/m-p/378075#M6776</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I will see if that helps.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;This isn't a build issue (the project must be built using the Classic Codewarrior compiler).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just that it would be nice if I could get Eclipse CDT's automatic source code analysis to fully handle source written for the Codewarrior compiler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have searched for a plug-in to use the Codewarrior compiler for the source analysis, but, the ones I've found don't support the compiler version I need to use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Jan 2015 18:55:22 GMT</pubDate>
    <dc:creator>rlw</dc:creator>
    <dc:date>2015-01-28T18:55:22Z</dc:date>
    <item>
      <title>classic CW compiler with Eclipse</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/classic-CW-compiler-with-Eclipse/m-p/378070#M6771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since the MCU for Eclipse doesn't support S12XE, I am just using the classic CW compiler (via makefile) with Eclipse CDT.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have configure Eclipse CDT syntax analyzer to use the GNU "Cross GCC" parser. Also, set the #include paths to refer to C:\cw\lib\hc12c\include.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But there's a port definition in MC9S12XEP100.h that Eclipse is not seeing. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The code compiles correctly and runs, so I assume there is some obscure setting in Eclipse I need to change.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error is: &lt;SPAN style="font-family: 'courier new', courier;"&gt;Symbol '_PT01AD0' could not be resolved&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, while this problem happens with the real code, my attempts to create a simplified example that demonstrates the problem have failed.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Despite that, here is the sample code, anyway:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;#include &amp;lt;MC9S12XEP100.h&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; font-family: 'courier new', courier;"&gt;#define D1_OFF (PT1AD0&amp;amp;=(unsigned char)(~0x01U))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;int main(void) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; D1_OFF;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The relevant lines in MC9S12XEP100.h:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;} PT01AD0STR;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;extern volatile PT01AD0STR _PT01AD0 @(REG_BASE + 0x00000270);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;#define PT01AD0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _PT01AD0.Word&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, the declaration of &lt;SPAN style="font-family: 'courier new', courier;"&gt;_PT01AD0&lt;/SPAN&gt; is right before the definition of &lt;SPAN style="font-family: 'courier new', courier;"&gt;PT01AD0&lt;/SPAN&gt; so if one is seen, which it clearly is, so should the other.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The actual code is structured the same way. I just need some idea what to look for that could cause &lt;SPAN style="font-family: 'courier new', courier;"&gt;_PT01AD0&lt;/SPAN&gt; to not be seen while &lt;SPAN style="font-family: 'courier new', courier;"&gt;PT01AD0&lt;/SPAN&gt; is seen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 20:53:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/classic-CW-compiler-with-Eclipse/m-p/378070#M6771</guid>
      <dc:creator>rlw</dc:creator>
      <dc:date>2015-01-26T20:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: classic CW compiler with Eclipse</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/classic-CW-compiler-with-Eclipse/m-p/378071#M6772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note that commenting out &lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;volatile&lt;/SPAN&gt; and &lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;@(REG_BASE + 0x00000270)&lt;/SPAN&gt; did not make a difference. In my real code, Eclipse still did not see&amp;nbsp; And in my sample code, having them there did NOT&amp;nbsp; Eclipse from seeing &lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;_PT01AD0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eclipse's "GNU Cross GCC" seems to not care about &lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;volatile&lt;/SPAN&gt; nor the &lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;@&lt;/SPAN&gt; construct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 21:08:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/classic-CW-compiler-with-Eclipse/m-p/378071#M6772</guid>
      <dc:creator>rlw</dc:creator>
      <dc:date>2015-01-26T21:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: classic CW compiler with Eclipse</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/classic-CW-compiler-with-Eclipse/m-p/378072#M6773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think somebody (at Freescale) already tried to integrate S12 tool chain under Eclipse (MCU V10.6 for instance)&lt;/P&gt;&lt;P&gt;On community I've found an interesting post about this question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="https://community.nxp.com/message/364176"&gt;Re: codewarrior and eclipse&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Pascal&lt;BR /&gt;Freescale Technical Support&lt;BR /&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>Tue, 27 Jan 2015 10:33:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/classic-CW-compiler-with-Eclipse/m-p/378072#M6773</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2015-01-27T10:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: classic CW compiler with Eclipse</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/classic-CW-compiler-with-Eclipse/m-p/378073#M6774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Up until now, Eclipse CDT with the "default" GNU CrossGCC has had no problem with its built-in source code analysis of my S12XE source files, even "handling" syntax extensions like &lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;@(REG_BASE + 0x00000270)&lt;/SPAN&gt; without choking. (I do builds with the Classic Codewarrior compiler.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe a gcc pre-configured for S12X would help, BUT as I am required to use the compiler from the (classic) Codewarrior 4.6 IDE for building, any solution will have to deal with that compiler's expected syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, when "googling" for "s12x gcc" I see several projects offering a gcc pre-configured for S12X&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a "gcc for s12x" you can recommend? Is there one that can handle the syntax for the Codewarrior 4.6 IDE compiler?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 18:11:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/classic-CW-compiler-with-Eclipse/m-p/378073#M6774</guid>
      <dc:creator>rlw</dc:creator>
      <dc:date>2015-01-27T18:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: classic CW compiler with Eclipse</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/classic-CW-compiler-with-Eclipse/m-p/378074#M6775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to use another build tool chain than Freescale, you should review the application.&lt;/P&gt;&lt;P&gt;It's really determine the work required.&lt;/P&gt;&lt;P&gt;This will depend how the application was written.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We don't have practice with any S12 GCC.&lt;/P&gt;&lt;P&gt;Now you can refer to the:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="http://www.msextra.com/tools/" title="http://www.msextra.com/tools/"&gt;Compiler build tools for Freescale 68hc11, 68hc12, S12, S12X, XGATE (gcc, binutils, newlib)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and to the thread: porting info inside the post ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="https://community.nxp.com/message/14878"&gt;Re: Assembly programmers&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Pascal&lt;BR /&gt;Freescale Technical Support&lt;BR /&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>Wed, 28 Jan 2015 14:41:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/classic-CW-compiler-with-Eclipse/m-p/378074#M6775</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2015-01-28T14:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: classic CW compiler with Eclipse</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/classic-CW-compiler-with-Eclipse/m-p/378075#M6776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I will see if that helps.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;This isn't a build issue (the project must be built using the Classic Codewarrior compiler).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just that it would be nice if I could get Eclipse CDT's automatic source code analysis to fully handle source written for the Codewarrior compiler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have searched for a plug-in to use the Codewarrior compiler for the source analysis, but, the ones I've found don't support the compiler version I need to use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2015 18:55:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/classic-CW-compiler-with-Eclipse/m-p/378075#M6776</guid>
      <dc:creator>rlw</dc:creator>
      <dc:date>2015-01-28T18:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: classic CW compiler with Eclipse</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/classic-CW-compiler-with-Eclipse/m-p/378076#M6777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use gcc with S12X. I don't think it will handle the CW syntax as-is though.&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.msextra.com/tools" rel="nofollow" target="_blank"&gt;http://www.msextra.com/tools&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 23:09:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/classic-CW-compiler-with-Eclipse/m-p/378076#M6777</guid>
      <dc:creator>jsmcortina</dc:creator>
      <dc:date>2015-06-24T23:09:00Z</dc:date>
    </item>
  </channel>
</rss>

