<?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>Kinetis MicrocontrollersのトピックeGUI Unicode build errors</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-Unicode-build-errors/m-p/420930#M24092</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm attempting to use unicode with eGUI(D4D). Everything works fine when just using ASCII but I can't get things to compile once I #define D4D_UNICODE. I've never used unicode before so there is probably just something I'm missing. I'm running on a Kinetis K70 with MQX 4.1 with the eGUI 3.01 from github &lt;A href="https://github.com/Gargy007/eGUI" rel="nofollow noopener noreferrer" title="https://github.com/Gargy007/eGUI" target="_blank"&gt;Gargy007/eGUI · GitHub&lt;/A&gt;​ all building in CodeWarrior 10.6. Here is a sample of my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14332615672405293" data-renderedposition="92_8_1232_64" jivemacro_uid="_14332615672405293"&gt;&lt;P&gt;#include "wchar.h"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;const wchar_t * ws = L"Wide string";&lt;/P&gt;&lt;P&gt;D4D_WCHAR english[] = {L"English"};&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line 3 has the error: unknown type name 'wchar_t'&lt;/P&gt;&lt;P&gt;Line 3 has the error: wide character array initialized from incompatible wide string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what I understand I need the 'L' before my string to make it a long string but that doesn't seem to help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know what I've done wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Jun 2015 16:21:04 GMT</pubDate>
    <dc:creator>seandema</dc:creator>
    <dc:date>2015-06-02T16:21:04Z</dc:date>
    <item>
      <title>eGUI Unicode build errors</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-Unicode-build-errors/m-p/420930#M24092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm attempting to use unicode with eGUI(D4D). Everything works fine when just using ASCII but I can't get things to compile once I #define D4D_UNICODE. I've never used unicode before so there is probably just something I'm missing. I'm running on a Kinetis K70 with MQX 4.1 with the eGUI 3.01 from github &lt;A href="https://github.com/Gargy007/eGUI" rel="nofollow noopener noreferrer" title="https://github.com/Gargy007/eGUI" target="_blank"&gt;Gargy007/eGUI · GitHub&lt;/A&gt;​ all building in CodeWarrior 10.6. Here is a sample of my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14332615672405293" data-renderedposition="92_8_1232_64" jivemacro_uid="_14332615672405293"&gt;&lt;P&gt;#include "wchar.h"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;const wchar_t * ws = L"Wide string";&lt;/P&gt;&lt;P&gt;D4D_WCHAR english[] = {L"English"};&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line 3 has the error: unknown type name 'wchar_t'&lt;/P&gt;&lt;P&gt;Line 3 has the error: wide character array initialized from incompatible wide string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what I understand I need the 'L' before my string to make it a long string but that doesn't seem to help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know what I've done wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2015 16:21:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-Unicode-build-errors/m-p/420930#M24092</guid>
      <dc:creator>seandema</dc:creator>
      <dc:date>2015-06-02T16:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: eGUI Unicode build errors</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-Unicode-build-errors/m-p/420931#M24093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sean,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently working to solve that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Earl.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 23:14:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-Unicode-build-errors/m-p/420931#M24093</guid>
      <dc:creator>EarlOrlando</dc:creator>
      <dc:date>2015-06-04T23:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: eGUI Unicode build errors</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-Unicode-build-errors/m-p/420932#M24094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Earl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for looking into this. If you find a fix please let me know. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luckily it's not a feature I need immediately for my current project. Just wanted to be sure I'll be able to use it later when I do need it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2015 14:32:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-Unicode-build-errors/m-p/420932#M24094</guid>
      <dc:creator>seandema</dc:creator>
      <dc:date>2015-06-05T14:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: eGUI Unicode build errors</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-Unicode-build-errors/m-p/420933#M24095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sean,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please include the file &lt;STRONG&gt;"d4d.h"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14337802744973783 jive_text_macro" data-renderedposition="92_8_1232_16" jivemacro_uid="_14337802744973783" modifiedtitle="true"&gt;&lt;P&gt;#include "d4d.h"&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where is included the file &lt;STRONG&gt;"d4d_types.h"&lt;/STRONG&gt;, where is defined the data type &lt;STRONG&gt;"D4D_TCHAR"&lt;/STRONG&gt;, please use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14337807663274782" data-renderedposition="171_8_1232_64" jivemacro_uid="_14337807663274782"&gt;&lt;P&gt;#include "d4d.h"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="keyword"&gt;const D4D_TCHAR * ws = L&lt;SPAN class="string"&gt;"Wide string"&lt;/SPAN&gt;;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;D4D_TCHAR english[] = {L&lt;SPAN class="string"&gt;"English"};&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Earl.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2015 16:26:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-Unicode-build-errors/m-p/420933#M24095</guid>
      <dc:creator>EarlOrlando</dc:creator>
      <dc:date>2015-06-08T16:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: eGUI Unicode build errors</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-Unicode-build-errors/m-p/420934#M24096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestion but it is still not working. Here is my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14337929655105242" data-renderedposition="50_8_1232_96" jivemacro_uid="_14337929655105242" modifiedtitle="true"&gt;&lt;P&gt;#include "d4d.h"&lt;/P&gt;&lt;P&gt;#include "fonts.h"&lt;/P&gt;&lt;P&gt;#include "main.h"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;const D4D_TCHAR * ws = L"Wide string";&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;D4D_TCHAR english[] = {L"English"};&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line 05 is now a warning instead of an error. The warning is "initialization from incompatible pointer type [enabled by default]".&lt;/P&gt;&lt;P&gt;Line 06 is still an error. The error is "wide character array initialized from incompatible wide string".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That got me a little closer to a fix but still not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you have any more suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2015 20:01:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-Unicode-build-errors/m-p/420934#M24096</guid>
      <dc:creator>seandema</dc:creator>
      <dc:date>2015-06-08T20:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: eGUI Unicode build errors</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-Unicode-build-errors/m-p/420935#M24097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="preprocessor"&gt;Are you sure you have the next definition?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14337992261019771" data-renderedposition="50_8_1232_16" jivemacro_uid="_14337992261019771"&gt;&lt;SPAN class="preprocessor"&gt;#define D4D_UNICODE&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with the following code, please:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14337993935757678 jive_text_macro" data-renderedposition="129_8_1232_96" jivemacro_uid="_14337993935757678"&gt;&lt;P&gt;&lt;SPAN class="preprocessor"&gt;#include "d4d.h"&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="preprocessor"&gt;#include "fonts.h"&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="preprocessor"&gt;#include "main.h"&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="preprocessor"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="keyword"&gt;D4D_TCHAR ws[] = {D4D_DEFSTR(&lt;SPAN class="string"&gt;"Wide string")}&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;D4D_TCHAR english[] = {D4D_DEFSTR(&lt;SPAN class="string"&gt;"English")};&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="string"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="string"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="string"&gt;Earl.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2015 21:36:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-Unicode-build-errors/m-p/420935#M24097</guid>
      <dc:creator>EarlOrlando</dc:creator>
      <dc:date>2015-06-08T21:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: eGUI Unicode build errors</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-Unicode-build-errors/m-p/420936#M24098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I have #define D4D_UNICODE in my d4d_user_cfg.h file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gave the above code a try but that't not working for me either. Both lines now have the error "wide character array initialized from incompatible wide string".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible I have something setup wrong with CodeWarrior or my project properties? I'm just not sure what that would be since commenting out #define D4D_UNICODE removes all these build errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 13:40:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-Unicode-build-errors/m-p/420936#M24098</guid>
      <dc:creator>seandema</dc:creator>
      <dc:date>2015-06-09T13:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: eGUI Unicode build errors</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-Unicode-build-errors/m-p/420937#M24099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are these lines in your file &lt;STRONG&gt;"d4d_types.h"&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14338674910797025" data-renderedposition="50_8_1232_288" jivemacro_uid="_14338674910797025"&gt;&lt;P&gt;#ifndef D4D_WCHAR_TYPE&lt;/P&gt;&lt;P&gt;/*! @brief User type definition of eGUI wide char.*/&lt;/P&gt;&lt;P&gt;&amp;nbsp; #define&amp;nbsp; D4D_WCHAR_TYPE unsigned short&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*! @brief Type definition of eGUI wide char.*/&lt;/P&gt;&lt;P&gt;typedef D4D_WCHAR_TYPE D4D_WCHAR;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*! @brief Type definition of eGUI ASCII character.*/&lt;/P&gt;&lt;P&gt;typedef char D4D_CHAR;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#ifdef D4D_UNICODE&lt;/P&gt;&lt;P&gt;&amp;nbsp; /*! @brief Type definition of eGUI character (it depends on UNICODE setting if this is \ref D4D_CHAR or \ref D4D_WCHAR).*/&lt;/P&gt;&lt;P&gt;&amp;nbsp; typedef D4D_WCHAR D4D_TCHAR;&lt;/P&gt;&lt;P&gt;#else&lt;/P&gt;&lt;P&gt;&amp;nbsp; /*! @brief Type definition of eGUI character (it depends on UNICODE setting if this is \ref D4D_CHAR or \ref D4D_WCHAR).*/&lt;/P&gt;&lt;P&gt;&amp;nbsp; typedef D4D_CHAR D4D_TCHAR;&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Earl.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 16:32:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-Unicode-build-errors/m-p/420937#M24099</guid>
      <dc:creator>EarlOrlando</dc:creator>
      <dc:date>2015-06-09T16:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: eGUI Unicode build errors</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-Unicode-build-errors/m-p/420938#M24100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes those lines are in my &lt;STRONG&gt;d4d_types.h&lt;/STRONG&gt; file. I even copied into beyond compare to be sure. Mine code is on the left and your code is on the right.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/26060iEE9CCDDA454656EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 17:01:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-Unicode-build-errors/m-p/420938#M24100</guid>
      <dc:creator>seandema</dc:creator>
      <dc:date>2015-06-09T17:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: eGUI Unicode build errors</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-Unicode-build-errors/m-p/420939#M24101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sean,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was working with IAR, whose compiler interprets the &lt;STRONG&gt;short&lt;/STRONG&gt; and &lt;STRONG&gt;int&lt;/STRONG&gt; type variables different. I compiled a demo in CW and I got the same error, the solution was change the &lt;STRONG&gt;D4D_WCHAR&lt;/STRONG&gt; type variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the file &lt;STRONG&gt;"d4d_types.h"&lt;/STRONG&gt; you have to change the &lt;STRONG&gt;D4D_WCHAR&lt;/STRONG&gt; typedef from &lt;STRONG&gt;unsigned short&lt;/STRONG&gt; to &lt;STRONG&gt;unsigned int&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From:&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14339691983791574" data-renderedposition="176_8_1232_48" jivemacro_uid="_14339691983791574"&gt;&lt;P&gt;#ifndef D4D_WCHAR&lt;/P&gt;&lt;P&gt;&amp;nbsp; typedef unsigned &lt;SPAN style="color: #e23d39;"&gt;&lt;STRONG&gt;short&lt;/STRONG&gt; &lt;/SPAN&gt;D4D_WCHAR;&amp;nbsp; &lt;/P&gt;&lt;P&gt;#endif&amp;nbsp; &lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To:&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14339692072783537 jive_text_macro" data-renderedposition="266_8_1232_48" jivemacro_uid="_14339692072783537"&gt;&lt;P&gt;#ifndef D4D_WCHAR&lt;/P&gt;&lt;P&gt;&amp;nbsp; typedef unsigned &lt;SPAN style="color: #e23d39;"&gt;&lt;STRONG&gt;int&lt;/STRONG&gt; &lt;/SPAN&gt;D4D_WCHAR;&amp;nbsp; &lt;/P&gt;&lt;P&gt;#endif&amp;nbsp; &lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Earl Orlando.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/* If this post solve your problem please click the &lt;EM&gt;Correct Answer&lt;/EM&gt; button. */&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 20:48:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-Unicode-build-errors/m-p/420939#M24101</guid>
      <dc:creator>EarlOrlando</dc:creator>
      <dc:date>2015-06-10T20:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: eGUI Unicode build errors</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-Unicode-build-errors/m-p/420940#M24102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That fixed it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much for all your help. I really appreciate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 21:41:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-Unicode-build-errors/m-p/420940#M24102</guid>
      <dc:creator>seandema</dc:creator>
      <dc:date>2015-06-10T21:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: eGUI Unicode build errors</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-Unicode-build-errors/m-p/420941#M24103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Earl Orlando,&lt;/P&gt;&lt;P&gt;I am using the D4D eGui Library with KDS 3.0 for a K20 project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found the same solution as yours, changing the D4D_TCHAR from unsigned short to unsigned int, as GDB assumes the wide-chars as 4-bytes characters (such as in Linux environment; Windows, instead, considers the L"...." strings as 2-bytes per character strings).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you any suggestion for converting UTF8 strings (received from a communication) to the correct UNICODE format for eGui? Actually I just copy the 1-byte per char UTF8 string to a 4-bytes per character D4D_TCHAR, but when it finds a 2-bytes character in the UTF-8 string, it is not correctly displayed (lowercase accented 'a' becomes a uppercase 'A' with tilde). Only 1-byte characters are correctly displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the Freescale Embedded Gui Converter utility to create the font choosing Unicode-16bit encoding and including the Latin and 2 Latin-extended Unicode ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vittorio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 14:53:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-Unicode-build-errors/m-p/420941#M24103</guid>
      <dc:creator>vittorio-castel</dc:creator>
      <dc:date>2015-06-29T14:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: eGUI Unicode build errors</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-Unicode-build-errors/m-p/420942#M24104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again, I found a solution for converting strings from UTF8 to 4-bytes per character UNICODE strings, so now I can display correctly all the 2-bytes UTF8 symbols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for bothering.&lt;/P&gt;&lt;P&gt;Best wishes,&lt;/P&gt;&lt;P&gt;Vittorio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 14:38:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-Unicode-build-errors/m-p/420942#M24104</guid>
      <dc:creator>vittorio-castel</dc:creator>
      <dc:date>2015-06-30T14:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: eGUI Unicode build errors</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-Unicode-build-errors/m-p/420943#M24105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vittorio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please share your solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Earl.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 16:25:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-Unicode-build-errors/m-p/420943#M24105</guid>
      <dc:creator>EarlOrlando</dc:creator>
      <dc:date>2015-06-30T16:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: eGUI Unicode build errors</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-Unicode-build-errors/m-p/420944#M24106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Earl,&lt;/P&gt;&lt;P&gt;this is the function I used for converting strings from uint8_t * UTF8 format to uint32_t UNICODE (TCHAR when D4D_UNICODE is enabled in eGui):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void utf8ToTCHAR(unsigned int *dst, uint8_t *src) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; while (*src) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (*src &amp;lt; 0x80) { // 0x0-7F range&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *dst++ = *src++;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else if (*src &amp;gt; 0b10111111) { // 0x80-7FF range&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *dst = (*src &amp;amp; 0x1F) &amp;lt;&amp;lt; 8; // first byte&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *dst = (*dst | ((*(src+1) &amp;amp; 0b00111111) &amp;lt;&amp;lt; 2)) &amp;gt;&amp;gt; 2; // second byte&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; src += 2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dst++;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; *dst = 0; // string terminator&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Vittorio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 06:23:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-Unicode-build-errors/m-p/420944#M24106</guid>
      <dc:creator>vittorio-castel</dc:creator>
      <dc:date>2015-07-02T06:23:15Z</dc:date>
    </item>
  </channel>
</rss>

