<?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>MCUXpresso Config ToolsのトピックRe: MCT code generator writes but can't read UTF-8?</title>
    <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/MCT-code-generator-writes-but-can-t-read-UTF-8/m-p/900554#M665</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This issue has been reported to the software team to get fixed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for bringing this to our attention.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 May 2019 22:03:19 GMT</pubDate>
    <dc:creator>FelipeGarcia</dc:creator>
    <dc:date>2019-05-16T22:03:19Z</dc:date>
    <item>
      <title>MCT code generator writes but can't read UTF-8?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/MCT-code-generator-writes-but-can-t-read-UTF-8/m-p/900552#M663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The latest MCT in MCUX 10.3.1 seems to have an issue with UTF-8 characters.&amp;nbsp; I have a Kinetis K24 project with SDK 2.5.0, and I've configured the PIT peripheral and a single channel.&amp;nbsp; But when I regenerate my peripherals.c, exit, and come back, MCT thinks I need to regenerate my code again because one of the documentation comments has supposedly changed.&amp;nbsp; Here's the actual code:&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;/***********************************************************************************************************************
 * ANALOGIN_PIT initialization code
 **********************************************************************************************************************/&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;/* clang-format off */&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;/* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
instance:
- name: 'ANALOGIN_PIT'
- type: 'pit'
- mode: 'LPTMR_GENERAL'
- type_id: 'pit_a4782ba5223c8a2527ba91aeb2bc4159'
- functional_group: 'BOARD_InitPeriph_ANALOGIN'
- peripheral: 'PIT'
- config_sets:
 - fsl_pit:
 - enableRunInDebug: 'false'
 - timingConfig:
 - clockSource: 'BusInterfaceClock'
 - clockSourceFreq: 'GetFreq'
 - channels:
 - 0:
 - channelNumber: '0'
 - enableChain: 'false'
 - timerPeriod: '100 us'
 - startTimer: 'true'
 - enableInterrupt: 'false'
 - interrupt:
 - IRQn: 'PIT0_IRQn'
 - enable_priority: 'false'
 - enable_custom_name: 'false'
 * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;/* clang-format on */&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;const&lt;/SPAN&gt; pit_config_t ANALOGIN_PIT_config &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
 &lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;enableRunInDebug &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; false
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;ANALOGIN_PIT_init&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
 &lt;SPAN class="comment token"&gt;/* Initialize the PIT. */&lt;/SPAN&gt;
 &lt;SPAN class="token function"&gt;PIT_Init&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ANALOGIN_PIT_PERIPHERAL&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;ANALOGIN_PIT_config&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 &lt;SPAN class="comment token"&gt;/* Set channel 0 period to 100 µs. */&lt;/SPAN&gt;
 &lt;SPAN class="token function"&gt;PIT_SetTimerPeriod&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ANALOGIN_PIT_PERIPHERAL&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; kPIT_Chnl_0&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; ANALOGIN_PIT_0_TICKS&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 &lt;SPAN class="comment token"&gt;/* Start channel 0. */&lt;/SPAN&gt;
 &lt;SPAN class="token function"&gt;PIT_StartTimer&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ANALOGIN_PIT_PERIPHERAL&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; kPIT_Chnl_0&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍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AN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See line 39 there?&amp;nbsp; MCT inserted the comment "Set channel 0 period to 100 microseconds", using Greek "mu" for "micro", which is correct.&amp;nbsp; The "mu" displays correctly in the Eclipse editor window and in my third-party text editor.&amp;nbsp; However, MCT doesn't know how to handle this when determining whether to regenerate the code.&amp;nbsp; peripherals.c is always flagged for regeneration because of that line.&amp;nbsp; If I&amp;nbsp;click the green "Update Project" button, then click the peripherals.c "change" link to compare what's changed, this is what I see:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="mct_cant_read_utf8.png"&gt;&lt;IMG alt="mct_cant_read_utf8.png" src="https://community.nxp.com/t5/image/serverpage/image-id/80434i3D7337B0C3C38E55/image-size/large?v=v2&amp;amp;px=999" title="mct_cant_read_utf8.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's not reading the UTF-8 "mu" correctly, so it shows two question marks in the "on disk" box, and one question mark in the "newly generated" box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know if this is an Eclipse issue with UTF-8 compatibility, or if this is purely an NXP software component, but either way, this is rather frustrating, because there's no workaround; even if I hand-edit peripherals.c to use the Latin "u" instead of Greek "mu", MCT is still going to flag peripherals.c for regeneration.&amp;nbsp; Any chance you can fix this in the next release?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 14:21:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/MCT-code-generator-writes-but-can-t-read-UTF-8/m-p/900552#M663</guid>
      <dc:creator>dmarks_ls</dc:creator>
      <dc:date>2020-11-02T14:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: MCT code generator writes but can't read UTF-8?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/MCT-code-generator-writes-but-can-t-read-UTF-8/m-p/900553#M664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I reproduced this on my side and I was able to confirm this issue is present.&lt;/P&gt;&lt;P&gt;I have reported this internally, I will let you know as soon as I receive any updates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your feedback.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2019 22:27:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/MCT-code-generator-writes-but-can-t-read-UTF-8/m-p/900553#M664</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2019-05-06T22:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: MCT code generator writes but can't read UTF-8?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/MCT-code-generator-writes-but-can-t-read-UTF-8/m-p/900554#M665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This issue has been reported to the software team to get fixed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for bringing this to our attention.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2019 22:03:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/MCT-code-generator-writes-but-can-t-read-UTF-8/m-p/900554#M665</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2019-05-16T22:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: MCT code generator writes but can't read UTF-8?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/MCT-code-generator-writes-but-can-t-read-UTF-8/m-p/900555#M666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to continue with the follow up, from internal team:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;This has been fixed&amp;nbsp;as a software bug and&amp;nbsp;the updated config tool will be released together with SDK 2.6, which will be available on 6/6/2019 as estimated.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2019 13:35:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/MCT-code-generator-writes-but-can-t-read-UTF-8/m-p/900555#M666</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2019-05-21T13:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: MCT code generator writes but can't read UTF-8?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/MCT-code-generator-writes-but-can-t-read-UTF-8/m-p/900556#M667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for correcting this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2019 16:59:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/MCT-code-generator-writes-but-can-t-read-UTF-8/m-p/900556#M667</guid>
      <dc:creator>dmarks_ls</dc:creator>
      <dc:date>2019-05-21T16:59:20Z</dc:date>
    </item>
  </channel>
</rss>

