<?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: Token not expected in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Token-not-expected/m-p/362516#M11325</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Jorge,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the console view, the full message is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;../MCU/ColdFire_Tools/Command_Line_Tools/mwccmcf|Usage|Error&lt;BR /&gt;&amp;gt;Token 'equals' not expected&lt;/P&gt;&lt;P&gt;Errors caused tool to abort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Teckna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Nov 2014 09:15:01 GMT</pubDate>
    <dc:creator>Teckna</dc:creator>
    <dc:date>2014-11-05T09:15:01Z</dc:date>
    <item>
      <title>Token not expected</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Token-not-expected/m-p/362512#M11321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure if this is the correct section where I have to show my problem: if so, please move the topic in the correct section.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using MQX 4.1 and CW 10.2.&lt;BR /&gt;I'm trying to build the bsp_twrmcf52259 project, but no matter which file is compiling, I receive always the same error:&lt;BR /&gt;- Token 'equals' not expected&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use the CW 10.6 (evaluation with eval period terminated) everything is ok.&lt;BR /&gt;Is there some incompatibility between MQX 4.1 and CW 10.2 or is there some settings to do?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;BR /&gt;Teckna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 11:13:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Token-not-expected/m-p/362512#M11321</guid>
      <dc:creator>Teckna</dc:creator>
      <dc:date>2014-10-29T11:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Token not expected</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Token-not-expected/m-p/362513#M11322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Teckna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CW10.1 does not support MQX4.1 by default, you may need to make adjustments such as source files paths, libraries paths, Windows environment variables and many other settings that the New MQX project wizard makes by default. I strongly recommend to use CW10.6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 22:20:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Token-not-expected/m-p/362513#M11322</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2014-10-29T22:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Token not expected</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Token-not-expected/m-p/362514#M11323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just another question: is there someone that knows where I can find the 'equals' token? I searched in source and project files but with no result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Teckna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 11:54:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Token-not-expected/m-p/362514#M11323</guid>
      <dc:creator>Teckna</dc:creator>
      <dc:date>2014-10-30T11:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Token not expected</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Token-not-expected/m-p/362515#M11324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Techka:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the complete error you receive?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the info I found, this was a bug with CW v10.2 and was corrected in latest versions.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards!,&lt;BR /&gt;Jorge Gonzalez&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, 31 Oct 2014 15:05:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Token-not-expected/m-p/362515#M11324</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2014-10-31T15:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: Token not expected</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Token-not-expected/m-p/362516#M11325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Jorge,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the console view, the full message is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;../MCU/ColdFire_Tools/Command_Line_Tools/mwccmcf|Usage|Error&lt;BR /&gt;&amp;gt;Token 'equals' not expected&lt;/P&gt;&lt;P&gt;Errors caused tool to abort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Teckna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 09:15:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Token-not-expected/m-p/362516#M11325</guid>
      <dc:creator>Teckna</dc:creator>
      <dc:date>2014-11-05T09:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Token not expected</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Token-not-expected/m-p/362517#M11326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;Teckna Teckna.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;This problem is caused by some fields of .cproject used by CW, which is unsupported &amp;nbsp;and can't be analysed by the legacy CW10.1/10.2&amp;nbsp;IDE. These fields as below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;"com.freescale.coldfire.toolchain.compiler.base.preprocessor.macroDefined" valueType="definedSymbols"&amp;gt;&lt;BR /&gt;&amp;lt;listOptionValue builtIn="false" value="&amp;amp;quot;_EWL_C99=1&amp;amp;quot;"/&amp;gt;&lt;BR /&gt;&amp;lt;listOptionValue builtIn="false" value="&amp;amp;quot;_EMBEDDED_WARRIOR_CTYPE=0&amp;amp;quot;"/&amp;gt;&lt;BR /&gt;&amp;lt;listOptionValue builtIn="false" value="&amp;amp;quot;_EWL_FLOATING_POINT=1&amp;amp;quot;"/&amp;gt;&lt;BR /&gt;&amp;lt;listOptionValue builtIn="false" value="&amp;amp;quot;__CODEWARRIOR__=1&amp;amp;quot;"/&amp;gt;&lt;BR /&gt;&amp;lt;listOptionValue builtIn="false" value="&amp;amp;quot;_DEBUG=1&amp;amp;quot;"/&amp;gt;&lt;BR /&gt;&amp;lt;/option&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because they can't be correctly analysed, they will be provided directly as the compiler options. we can check these options in the args generated by CW. such as &lt;STRONG&gt;Freescale_MQX_4_2\mqx\build\cw10\bsp_twrmcf54418\Debug\Peripheral_IO_Drivers\adc\adc.args :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;-sym full -msgstyle parseable -proc 54418 -c -nostdinc -nosyspath -enc ascii -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/io/adc/mcf544xx" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/io/adc" -i "C:/Freescale/Freescale_MQX_4_2/config/twrmcf54418" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/io/enet/macnet" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/io/enet/phy" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/io/enet" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/io/esdhc" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/io/can/flexcan" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/io/gpio/mcf5441" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/io/gpio" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/io/i2c" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/io/i2c/polled" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/io/i2c/int" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/io/i2s" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/io/i2s/int" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/bsp/twrmcf54418" -i "C:/Freescale/Freescale_MQX_4_2/config/common" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/include" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/bsp/twrmcf54418" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/io/enet" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/io/int_ctrl" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/io/io_mem" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/io/io_null" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/io/pipe" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/io/lwgpio" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/io/nandflash/nfc" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/io/nandflash" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/io/pcb" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/io/pcb/mqxa" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/io/pccard" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/io/pcflash" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/io/rtc" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/io/sdcard/sdcard_spi" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/io/sdcard/sdcard_esdhc" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/io/sdcard" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/io/serial" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/io/spi" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/io/tfs" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/io/timer" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/io/usb" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/psp/coldfire" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/psp/coldfire" -i "C:/Freescale/Freescale_MQX_4_2/config/twrmcf54418" -i "C:/Freescale/Freescale_MQX_4_2/config/common" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/include" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/psp/coldfire" -i "C:/Freescale/Freescale_MQX_4_2/mqx/source/tad" -I- -I"$(MCUToolsBaseDirEnv)/ColdFire_Support/ewl/EWL_C/include" -I- -I"$(MCUToolsBaseDirEnv)/ColdFire_Support/ewl/EWL_C/include/sys" -I- -I"$(MCUToolsBaseDirEnv)/ColdFire_Support/ewl/EWL_Runtime/Runtime_ColdFire/Source" -warn illpragmas -warn unwanted -warn missingreturn -warn extracomma -warn emptydecl -opt space -inline on -align coldfire -model farCode -model farData -fp soft -a6 -nocoloring -noscheduling -nopeephole -sdata 0 -requireprotos -lang c99 -Cpp_Exceptions off -RTTI off -enum int -char unsigned -str nopool -str reuse -ipa off &lt;STRONG&gt;"_EWL_C99=1" "_EMBEDDED_WARRIOR_CTYPE=0" "_EWL_FLOATING_POINT=1" "__CODEWARRIOR__=1" "_DEBUG=1"&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;we can see the macros at the end blocks of this file, which missed the "--define " or "-D" prefix, which could be added auto by recent CW version but not by the CW10.1/10.2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After we remove these fields from .cproject file, we can add the referring compiler options "&lt;STRONG&gt;-D_EWL_C99=1 -D_EMBEDDED_WARRIOR_CTYPE=0 -D_EWL_FLOATING_POINT=1 -D__CODEWARRIOR__=1 -D_DEBUG=1&lt;/STRONG&gt;" as "Other flags" in &lt;STRONG&gt;"ColdFire Compiler" &amp;gt; "Language Settings" &amp;gt; "Other Flags" .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I Hope it will Help. Good Luck!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2016 01:07:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Token-not-expected/m-p/362517#M11326</guid>
      <dc:creator>pengfeihan</dc:creator>
      <dc:date>2016-11-04T01:07:45Z</dc:date>
    </item>
  </channel>
</rss>

