<?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>MQX Software SolutionsのトピックRe: MQX 4.1 using EWL (Embedded Warrior Libraries)</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-1-using-EWL-Embedded-Warrior-Libraries/m-p/360771#M11824</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have investigated with the CW development team and they provided the following comments and solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left: .75in; text-indent: -.25in;"&gt;&lt;SPAN style="color: #1f497d;"&gt;-&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #1f497d;"&gt;MQX is written heavily using some of the C99 features&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .75in; text-indent: -.25in;"&gt;&lt;SPAN style="color: #1f497d;"&gt;-&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #1f497d;"&gt;disabling C99 will require small changes in the MQX libraries and in the MQX libraries building options (resulting in the need to rebuild them)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .75in; text-indent: -.25in;"&gt;&lt;SPAN style="color: #1f497d;"&gt;-&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #1f497d;"&gt;using EWL in the ‘new project’ will also require some changes in the project default options&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .75in; text-indent: -.25in;"&gt;&lt;SPAN style="color: #1f497d;"&gt;-&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #1f497d;"&gt;you also need to ignore LOTS of warnings (most of them emitted due to C99 disabling)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;If you are willing to do these changes, here they are:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .75in; text-indent: -.25in;"&gt;&lt;SPAN style="color: #1f497d;"&gt;-&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #1f497d;"&gt;remove the “_EWL_C99=1” and “_EMBEDDED_WARRIOR_CTYPE=1” from the ‘Project -&amp;gt; Properties -&amp;gt; C/C++ Build -&amp;gt; Settings -&amp;gt; ColdFire Compiler -&amp;gt; Preprocessor -&amp;gt; Defined Macros (-D)’ from all library projects (or if you’re using a makefile build, remove the ‘-D’ options involving the two macros)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .75in; text-indent: -.25in;"&gt;&lt;SPAN style="color: #1f497d;"&gt;-&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #1f497d;"&gt;add in a MQX header file (which would eventually be included from everywhere – for instance ‘mqx_cnfg.h’ or even ‘mqx.h’ – I used ‘mqx_cnfg.h’) the following sequence:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 1.0in;"&gt;&lt;STRONG style="color: #7f0055; background: white; font-size: 10.0pt; font-family: Consolas;"&gt;#if&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt; _EWL_C99==0&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 1.0in;"&gt;&lt;STRONG style="color: #7f0055; background: white; font-size: 10.0pt; font-family: Consolas;"&gt;typedef&lt;/STRONG&gt; &lt;STRONG style="color: #7f0055; background: white; font-size: 10.0pt; font-family: Consolas;"&gt;int&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt; bool;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 1.0in;"&gt;&lt;STRONG style="color: #7f0055; background: white; font-size: 10.0pt; font-family: Consolas;"&gt;const&lt;/STRONG&gt; &lt;STRONG style="color: #7f0055; background: white; font-size: 10.0pt; font-family: Consolas;"&gt;int&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt; false = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 1.0in;"&gt;&lt;STRONG style="color: #7f0055; background: white; font-size: 10.0pt; font-family: Consolas;"&gt;const&lt;/STRONG&gt; &lt;STRONG style="color: #7f0055; background: white; font-size: 10.0pt; font-family: Consolas;"&gt;int&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt; true = 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 1.0in;"&gt;&lt;STRONG style="color: #7f0055; background: white; font-size: 10.0pt; font-family: Consolas;"&gt;#endif&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: .75in; text-indent: -.25in;"&gt;&lt;SPAN style="color: #1f497d;"&gt;-&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #1f497d;"&gt;rebuild all libraries that you need in your project&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .75in; text-indent: -.25in;"&gt;&lt;SPAN style="color: #1f497d;"&gt;-&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #1f497d;"&gt;in the project you created with ‘New MQX Project Wizard’ you also need to remove the “_EWL_C99=1” and “_EMBEDDED_WARRIOR_CTYPE=1”&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .75in; text-indent: -.25in;"&gt;&lt;SPAN style="color: #1f497d;"&gt;-&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #1f497d;"&gt;chose in the new project the ‘EWL’ Librarian you find appropriate for your project&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .75in; text-indent: -.25in;"&gt;&lt;SPAN style="color: #1f497d;"&gt;-&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #1f497d;"&gt;after these steps the project should build correctly&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Carlos Musich&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Technical Support Engineer&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Feb 2015 17:28:23 GMT</pubDate>
    <dc:creator>Carlos_Musich</dc:creator>
    <dc:date>2015-02-18T17:28:23Z</dc:date>
    <item>
      <title>MQX 4.1 using EWL (Embedded Warrior Libraries)</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-1-using-EWL-Embedded-Warrior-Libraries/m-p/360769#M11822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;I am porting an MQX 3.7 ColdFire application to MQX 4.1 and I am having issues building with the EWL libraries, which we are using with the MQX 3.7 application.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Currently I am simply trying to create a new basic MQX 4.1 project using the project wizard (in CodeWarrior 10.6) with the Librarian model set to “ewl” (int_FP, int_FP, buffered) and I am still getting build errors.&amp;nbsp; I can change the Librarian model back to “c9x” and all builds fine, however for my application I need the smaller memory footprint advantage of the ewl libraries so I don’t believe c9x will work.&amp;nbsp; FYI, I found the following thread on the Freescale community forums, however I don’t need to use C++ and the issues described are different than what I am experiencing so they don’t help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/305191"&gt;https://community.freescale.com/thread/305191&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Here are the steps I follow to reproduce the build error:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;In CodeWarrior click File-&amp;gt;New-&amp;gt;MQX 4.1 Project&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Enter a name and select “TWRMCF52259 Board”.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Select application type: “New application”&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Do not select any of the additional MQX libraries.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Select application type: “Empty application”&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Don’t add any more files to the project and click Finish.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Set “twrmcf52259_Int_Flash_Release” as the active Build Configuration (Note: I have already successfully built release builds of the BSP, PSP, etc)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Clean/Build the project. The project builds successfully.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Under project properties, change the Librarian model from “c9x” to “ewl” (int_FP, int_FP, buffered). &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Clean/Build the project.&amp;nbsp; The build fails with the following error:&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;---------------------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;**** Build of configuration twrmcf52259_Int_Flash_Release for project appl ****&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;"C:\\Freescale\\CW MCU v10.6\\gnu\\bin\\mingw32-make" -j16 all &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;'Building file: ../Sources/main.c'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;'Executing target #1 ../Sources/main.c'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;'Invoking: ColdFire Compiler'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;"C:/Freescale/CW MCU v10.6/MCU/ColdFire_Tools/Command_Line_Tools/mwccmcf" @@"Sources/main.args" -o "Sources/main_c.obj" "../Sources/main.c" -MD -gccdep&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;C:/Freescale/CW MCU v10.6/MCU/ColdFire_Tools/Command_Line_Tools/mwccmcf|Compiler|Error&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;(C:\Sandbox\New_HIC_MQX_4_1_1\appl\twrmcf52259_Int_Flash_Release\(command-line defines)|1|8|8|8|8)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;=#define _EWL_C99 1 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: red;"&gt;&amp;gt;macro '_EWL_C99' redefined&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: red;"&gt;C:/Freescale/CW MCU v10.6/MCU/ColdFire_Tools/Command_Line_Tools/mwccmcf|Compiler|Note&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;(C:\Freescale\CW MCU v10.6\MCU\ColdFire_Support\ewl\EWL_C\include\lib_ewl.prefix|19|9|8|496|8)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;= #define _EWL_C99&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 /* EWL is not C99 compliant&amp;nbsp; */&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (location of previous definition)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;Errors caused tool to abort.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: red;"&gt;mingw32-make: *** [Sources/main_c.obj] Error 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;---------------------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;11. &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;It seems that the lib_ewl.prefix file is not aware that “_EWL_C99” is defined in my project.&amp;nbsp; I can manually edit the prefix file to add “#define _EWL_C99&amp;nbsp; 1” and I am able to build successfully.&amp;nbsp; However, this only works with this very basic MQX 4.1 project that I have created.&amp;nbsp; If I follow the same steps above, but also select “Add Shell support” and “Add RTCS support” … and also select “Basic Application” in the new MQX 4.1 Project wizard, I get the following build errors (assuming I have again edited the lib_ewl.prefix to define _&lt;EM&gt;EWL&lt;/EM&gt;_C99 as 1):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;---------------------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;'Building target: appl.elf'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;'Executing target #4 appl.elf'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;'Invoking: ColdFire Linker'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;"C:/Freescale/CW MCU v10.6/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf" -o "appl.elf" @@"appl.args"&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;C:/Freescale/CW MCU v10.6/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Error&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;&amp;gt;Undefined : "__ctype_mapC"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: red;"&gt;&amp;gt;Referenced from "isdigit" in&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: red;"&gt;C:/Freescale/CW MCU v10.6/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Error&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;&amp;gt;Undefined : "__ctype_mapC"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: red;"&gt;&amp;gt;Referenced from "isupper" in&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: red;"&gt;C:/Freescale/CW MCU v10.6/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Error&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;&amp;gt;Undefined : "__ctype_mapC"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: red;"&gt;&amp;gt;Referenced from "isxdigit" in&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: red;"&gt;C:/Freescale/CW MCU v10.6/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Error&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;&amp;gt;Undefined : "__lower_mapC"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: red;"&gt;&amp;gt;Referenced from "tolower" in&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: red;"&gt;C:/Freescale/CW MCU v10.6/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Error&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;&amp;gt;Link failed. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;Errors caused tool to abort.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: red;"&gt;mingw32-make: *** [appl.elf] Error 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;---------------------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;I have not been able to get past these build errors. I have even tried unchecking the “Enable automatic library configurations” under the Librarian options and manually adding the libc.a and librt.a from the “C:\Freescale\CW MCU v10.6\MCU\ColdFire_Support\ewl\lib\v2” directory and I get basically the same build errors.&amp;nbsp; FYI, here are the Compiler Preprocessor defines that I am using (which are the defaults when creating a new MQX 4.1 project):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;_EWL_C99=1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;_EMBEDDED_WARRIOR_CTYPE=0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;_EWL_FLOATING_POINT=1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;__CODEWARRIOR__=1&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 17:03:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-1-using-EWL-Embedded-Warrior-Libraries/m-p/360769#M11822</guid>
      <dc:creator>jasonss</dc:creator>
      <dc:date>2015-02-09T17:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 4.1 using EWL (Embedded Warrior Libraries)</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-1-using-EWL-Embedded-Warrior-Libraries/m-p/360770#M11823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The MQX version 4.1.0 adopted the standard C99 integer and boolean types (from stdlib.h and stdbool.h) instead of the proprietary MQX types. So When porting the application to the MQX version 4.1.0, you have to use the C9x library for any new projects. That is why the new 4.1 wizard set c9x as the default library.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Carlos Musich&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Technical Support Engineer&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 19:16:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-1-using-EWL-Embedded-Warrior-Libraries/m-p/360770#M11823</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2015-02-13T19:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 4.1 using EWL (Embedded Warrior Libraries)</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-1-using-EWL-Embedded-Warrior-Libraries/m-p/360771#M11824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have investigated with the CW development team and they provided the following comments and solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left: .75in; text-indent: -.25in;"&gt;&lt;SPAN style="color: #1f497d;"&gt;-&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #1f497d;"&gt;MQX is written heavily using some of the C99 features&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .75in; text-indent: -.25in;"&gt;&lt;SPAN style="color: #1f497d;"&gt;-&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #1f497d;"&gt;disabling C99 will require small changes in the MQX libraries and in the MQX libraries building options (resulting in the need to rebuild them)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .75in; text-indent: -.25in;"&gt;&lt;SPAN style="color: #1f497d;"&gt;-&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #1f497d;"&gt;using EWL in the ‘new project’ will also require some changes in the project default options&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .75in; text-indent: -.25in;"&gt;&lt;SPAN style="color: #1f497d;"&gt;-&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #1f497d;"&gt;you also need to ignore LOTS of warnings (most of them emitted due to C99 disabling)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;If you are willing to do these changes, here they are:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .75in; text-indent: -.25in;"&gt;&lt;SPAN style="color: #1f497d;"&gt;-&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #1f497d;"&gt;remove the “_EWL_C99=1” and “_EMBEDDED_WARRIOR_CTYPE=1” from the ‘Project -&amp;gt; Properties -&amp;gt; C/C++ Build -&amp;gt; Settings -&amp;gt; ColdFire Compiler -&amp;gt; Preprocessor -&amp;gt; Defined Macros (-D)’ from all library projects (or if you’re using a makefile build, remove the ‘-D’ options involving the two macros)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .75in; text-indent: -.25in;"&gt;&lt;SPAN style="color: #1f497d;"&gt;-&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #1f497d;"&gt;add in a MQX header file (which would eventually be included from everywhere – for instance ‘mqx_cnfg.h’ or even ‘mqx.h’ – I used ‘mqx_cnfg.h’) the following sequence:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 1.0in;"&gt;&lt;STRONG style="color: #7f0055; background: white; font-size: 10.0pt; font-family: Consolas;"&gt;#if&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt; _EWL_C99==0&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 1.0in;"&gt;&lt;STRONG style="color: #7f0055; background: white; font-size: 10.0pt; font-family: Consolas;"&gt;typedef&lt;/STRONG&gt; &lt;STRONG style="color: #7f0055; background: white; font-size: 10.0pt; font-family: Consolas;"&gt;int&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt; bool;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 1.0in;"&gt;&lt;STRONG style="color: #7f0055; background: white; font-size: 10.0pt; font-family: Consolas;"&gt;const&lt;/STRONG&gt; &lt;STRONG style="color: #7f0055; background: white; font-size: 10.0pt; font-family: Consolas;"&gt;int&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt; false = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 1.0in;"&gt;&lt;STRONG style="color: #7f0055; background: white; font-size: 10.0pt; font-family: Consolas;"&gt;const&lt;/STRONG&gt; &lt;STRONG style="color: #7f0055; background: white; font-size: 10.0pt; font-family: Consolas;"&gt;int&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt; true = 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 1.0in;"&gt;&lt;STRONG style="color: #7f0055; background: white; font-size: 10.0pt; font-family: Consolas;"&gt;#endif&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: .75in; text-indent: -.25in;"&gt;&lt;SPAN style="color: #1f497d;"&gt;-&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #1f497d;"&gt;rebuild all libraries that you need in your project&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .75in; text-indent: -.25in;"&gt;&lt;SPAN style="color: #1f497d;"&gt;-&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #1f497d;"&gt;in the project you created with ‘New MQX Project Wizard’ you also need to remove the “_EWL_C99=1” and “_EMBEDDED_WARRIOR_CTYPE=1”&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .75in; text-indent: -.25in;"&gt;&lt;SPAN style="color: #1f497d;"&gt;-&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #1f497d;"&gt;chose in the new project the ‘EWL’ Librarian you find appropriate for your project&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .75in; text-indent: -.25in;"&gt;&lt;SPAN style="color: #1f497d;"&gt;-&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #1f497d;"&gt;after these steps the project should build correctly&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Carlos Musich&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Technical Support Engineer&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 17:28:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-1-using-EWL-Embedded-Warrior-Libraries/m-p/360771#M11824</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2015-02-18T17:28:23Z</dc:date>
    </item>
  </channel>
</rss>

