<?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のトピックFree eGUI up-to-date CW project</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Free-eGUI-up-to-date-CW-project/m-p/386877#M12901</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is there any up-to-date CodeWarrior demo project for the free eGUI? I'm unable to build any of what I found (with MQX 4.1.1 and latest revision of free eGUI from github).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The one project which is most promissing, gives the following error (on multiple places):&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #000080; font-family: arial,helvetica,sans-serif;"&gt;C:/Freescale/D4D_free/repo/D4D/common_files/d4d_string.c: In function 'D4D_LCD_PrintStr':&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #000080;"&gt;C:/Freescale/D4D_free/repo/D4D/common_files/d4d_string.c:643:3: error: wide character array initialized from incompatible wide string&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #000080;"&gt;mingw32-make: *** [D4D/common_files/d4d_string.o] Error 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;In this case, the problem is the following line:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #000080;"&gt;const D4D_TCHAR pLongTextEnd[] = D4D_DEFSTR("...");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found a solution which allows me to build it successfully: Using the -fshort-wchar compiler flag. But I get tons of linker warnings of the following type:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #000080;"&gt;e:/program files/cw mcu v10.6/cross_tools/arm-none-eabi-gcc-4_7_3/bin/../lib/gcc/arm-none-eabi/4.7.3/../../../../arm-none-eabi/bin/ld.exe: warning: C:/Freescale/Freescale_MQX4/lib/twrk70f120m.cw10gcc/debug/bsp/bsp.a(mqx_main.o) uses 4-byte wchar_t yet the output is to use 2-byte wchar_t; use of wchar_t values across objects may fail&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;I know it's "just" a warning, but I believe this type of warning might be really critical, or am I wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can build MQX with the same flag to eliminate these warnings, but the application links with some standard libraries, e.g. &lt;SPAN style="color: #000080;"&gt;Cross_Tools/arm-none-eabi-gcc-4_7_3/arm-none-eabi/lib/armv7e-m/softfp\libsupc++.a(eh_globals.o)&lt;/SPAN&gt; So the warnings remain here.&lt;/P&gt;&lt;P&gt;It might be possible to rebuild these libraries as well, but this is not the way I want to go. So I would really like to find a demo CW project for the latest eGUI, which builds with MQX and standard libraries without changing the configuration. Can someone please provide?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Oct 2014 12:50:48 GMT</pubDate>
    <dc:creator>kubiznak_petr</dc:creator>
    <dc:date>2014-10-13T12:50:48Z</dc:date>
    <item>
      <title>Free eGUI up-to-date CW project</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Free-eGUI-up-to-date-CW-project/m-p/386877#M12901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is there any up-to-date CodeWarrior demo project for the free eGUI? I'm unable to build any of what I found (with MQX 4.1.1 and latest revision of free eGUI from github).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The one project which is most promissing, gives the following error (on multiple places):&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #000080; font-family: arial,helvetica,sans-serif;"&gt;C:/Freescale/D4D_free/repo/D4D/common_files/d4d_string.c: In function 'D4D_LCD_PrintStr':&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #000080;"&gt;C:/Freescale/D4D_free/repo/D4D/common_files/d4d_string.c:643:3: error: wide character array initialized from incompatible wide string&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #000080;"&gt;mingw32-make: *** [D4D/common_files/d4d_string.o] Error 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;In this case, the problem is the following line:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #000080;"&gt;const D4D_TCHAR pLongTextEnd[] = D4D_DEFSTR("...");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found a solution which allows me to build it successfully: Using the -fshort-wchar compiler flag. But I get tons of linker warnings of the following type:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #000080;"&gt;e:/program files/cw mcu v10.6/cross_tools/arm-none-eabi-gcc-4_7_3/bin/../lib/gcc/arm-none-eabi/4.7.3/../../../../arm-none-eabi/bin/ld.exe: warning: C:/Freescale/Freescale_MQX4/lib/twrk70f120m.cw10gcc/debug/bsp/bsp.a(mqx_main.o) uses 4-byte wchar_t yet the output is to use 2-byte wchar_t; use of wchar_t values across objects may fail&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;I know it's "just" a warning, but I believe this type of warning might be really critical, or am I wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can build MQX with the same flag to eliminate these warnings, but the application links with some standard libraries, e.g. &lt;SPAN style="color: #000080;"&gt;Cross_Tools/arm-none-eabi-gcc-4_7_3/arm-none-eabi/lib/armv7e-m/softfp\libsupc++.a(eh_globals.o)&lt;/SPAN&gt; So the warnings remain here.&lt;/P&gt;&lt;P&gt;It might be possible to rebuild these libraries as well, but this is not the way I want to go. So I would really like to find a demo CW project for the latest eGUI, which builds with MQX and standard libraries without changing the configuration. Can someone please provide?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 12:50:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Free-eGUI-up-to-date-CW-project/m-p/386877#M12901</guid>
      <dc:creator>kubiznak_petr</dc:creator>
      <dc:date>2014-10-13T12:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Free eGUI up-to-date CW project</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Free-eGUI-up-to-date-CW-project/m-p/386878#M12902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN lang="ES-TRAD" style="mso-ansi-language:ES-TRAD"&gt;Hello&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="ES-TRAD" style="mso-ansi-language:ES-TRAD"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="ES-TRAD" style="mso-ansi-language:ES-TRAD"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Try this one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luis&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 15:07:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Free-eGUI-up-to-date-CW-project/m-p/386878#M12902</guid>
      <dc:creator>LuisCasado</dc:creator>
      <dc:date>2014-10-13T15:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Free eGUI up-to-date CW project</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Free-eGUI-up-to-date-CW-project/m-p/386879#M12903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response. Unfortunately, the new project does not solve the problem. The difference is not in project settings, but in D4D configuration. Your (referential) d4d_user_config_app.h does not enable unicode:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #000080;"&gt;//#define D4D_UNICODE&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; // Enables Unicode support&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this reason, D4D_TCHAR is defined as D4D_CHAR in your project, while D4D_WCHAR in mine. And for this reason, the problematic line works in your project but not in mine:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #000080;"&gt;D4D_TCHAR str_touch[10] = D4D_DEFSTR("X1:00000");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously, wchar_t is 32bit with gcc, and this line cannot be compiled then. Is there any other quick fix different then giving up Unicode?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 18:31:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Free-eGUI-up-to-date-CW-project/m-p/386879#M12903</guid>
      <dc:creator>kubiznak_petr</dc:creator>
      <dc:date>2014-10-13T18:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Free eGUI up-to-date CW project</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Free-eGUI-up-to-date-CW-project/m-p/386880#M12904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN class="GramE"&gt;Hi&lt;SPAN style="mso-spacerun:yes"&gt;&amp;nbsp;&lt;/SPAN&gt; &lt;SPAN&gt;Petrs&lt;/SPAN&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see. What I would do is to port the IAR project from &lt;SPAN&gt;eGUI&lt;/SPAN&gt; &lt;SPAN&gt;github&lt;/SPAN&gt; (latest) to CW10.6. There are too many changes in the sources, the true Unicode support was included in the 3.0 release. You can use this project as reference, changing all the sources and paths in the project to build the &lt;SPAN&gt;eGUI&lt;/SPAN&gt; 3.0 sources.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luis&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 22:44:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Free-eGUI-up-to-date-CW-project/m-p/386880#M12904</guid>
      <dc:creator>LuisCasado</dc:creator>
      <dc:date>2014-10-13T22:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: Free eGUI up-to-date CW project</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Free-eGUI-up-to-date-CW-project/m-p/386881#M12905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to, define in d4d_usr_config.h&amp;nbsp; own type D4D_WCHAR:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to pull the latest master branch from gitHUB (I correct the definition - Commit: 1651c05c178c3a7ee2c83daf12101a77cbb21118 [1651c05]) and try define your type for WCHAR. like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define D4D_WCHAR_TYPE&amp;nbsp; unsigned long&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Petr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 05:07:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Free-eGUI-up-to-date-CW-project/m-p/386881#M12905</guid>
      <dc:creator>Gargy</dc:creator>
      <dc:date>2014-10-14T05:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Free eGUI up-to-date CW project</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Free-eGUI-up-to-date-CW-project/m-p/386882#M12906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Petr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you, but this commit does not really change anything. I already tried that yesterday, just redefining D4D_WCHAR directly:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #000080;"&gt;#define D4D_WCHAR&amp;nbsp; unsigned long&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried even all other possible (while incorrect) types: signed long, signed short, signed char, unsigned char... Nothing helps, the result is the same. I also tried to use wchar_t, but it does not seem to be defined in &amp;lt;wchar.h&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I worry this issue will require for-loop to be fixed properly. Or all the standard libraries would have to be rebuilt with -fshort_wchar, but this is not a well-portable solution (even though it is cleaner). I will report this as bug on github, and turn off Unicode in my project, as I can live without it. Please let me know if you come up with some solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 06:54:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Free-eGUI-up-to-date-CW-project/m-p/386882#M12906</guid>
      <dc:creator>kubiznak_petr</dc:creator>
      <dc:date>2014-10-14T06:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Free eGUI up-to-date CW project</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Free-eGUI-up-to-date-CW-project/m-p/386883#M12907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This cannot be fixed by "copying" settings from IAR project to CW project, because of different default configuration of standard libraries used by the IDE's. The only clean solution I can see is to find a compiler option which would fix it. I tried -D_EWL_WIDE_CHAR=1, with no success (generates much more new errors). I'm not familiar with CW, so it is hard for me to find the proper option, if it exists.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 07:06:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Free-eGUI-up-to-date-CW-project/m-p/386883#M12907</guid>
      <dc:creator>kubiznak_petr</dc:creator>
      <dc:date>2014-10-14T07:06:20Z</dc:date>
    </item>
  </channel>
</rss>

