<?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 RT1010 Semihosting in MCX Microcontrollers</title>
    <link>https://community.nxp.com/t5/MCX-Microcontrollers/RT1010-Semihosting/m-p/1891145#M491</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I am trying to use semihosting on IMXRT1010 Dev kit with Segger Jtrace pro.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to print floating point numbers &amp;amp; hence I am using NewlibNano with printf float and scanf float enabled.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The prints work fine. However, I cannot use SCANF or GETCHAR. GETCHAR always gives me 255 as return.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see that Redlib(semihost) is able to execute GETCHAR properly. However, when PRINTF prints %f or %d, it fills console with garbage.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question in a nutshell is. What are the settings to be used ( libraries and others) to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. get %f , %d working with PRINTF with semihosting&lt;/P&gt;&lt;P&gt;2. get SCANF working&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Syam K&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jun 2024 06:47:57 GMT</pubDate>
    <dc:creator>Syam_Krishnan</dc:creator>
    <dc:date>2024-06-20T06:47:57Z</dc:date>
    <item>
      <title>RT1010 Semihosting</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/RT1010-Semihosting/m-p/1891145#M491</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I am trying to use semihosting on IMXRT1010 Dev kit with Segger Jtrace pro.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to print floating point numbers &amp;amp; hence I am using NewlibNano with printf float and scanf float enabled.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The prints work fine. However, I cannot use SCANF or GETCHAR. GETCHAR always gives me 255 as return.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see that Redlib(semihost) is able to execute GETCHAR properly. However, when PRINTF prints %f or %d, it fills console with garbage.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question in a nutshell is. What are the settings to be used ( libraries and others) to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. get %f , %d working with PRINTF with semihosting&lt;/P&gt;&lt;P&gt;2. get SCANF working&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Syam K&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 06:47:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/RT1010-Semihosting/m-p/1891145#M491</guid>
      <dc:creator>Syam_Krishnan</dc:creator>
      <dc:date>2024-06-20T06:47:57Z</dc:date>
    </item>
    <item>
      <title>回复： RT1010 Semihosting</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/RT1010-Semihosting/m-p/1894239#M508</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/235270"&gt;@Syam_Krishnan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for your interest in NXP MIMXRT series!&lt;/P&gt;
&lt;P&gt;I have test a modified with CMSIS-DAP on-board debugger. And it works well!&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Gavin_Jia_0-1719390737192.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/285820iFA1272F29DCB0C42/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Gavin_Jia_0-1719390737192.png" alt="Gavin_Jia_0-1719390737192.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is my configuration for your reference:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Gavin_Jia_1-1719390872139.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/285821i64D6177B300975AA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Gavin_Jia_1-1719390872139.png" alt="Gavin_Jia_1-1719390872139.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And I attached my demo for your test. However, I don't have JTrace available for testing right now, so if you have no problem using my project with CMSIS-DAP, but still have problems with JTrace, we suggest you contact Segger for a solution.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Gavin&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 08:38:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/RT1010-Semihosting/m-p/1894239#M508</guid>
      <dc:creator>Gavin_Jia</dc:creator>
      <dc:date>2024-06-26T08:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: RT1010 Semihosting</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/RT1010-Semihosting/m-p/1897208#M520</link>
      <description>&lt;P&gt;Hey Gavin,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Thank you very much. I tried your settings on an RTC example and I was able to do printf and scanf of floating point numbers using segger JTAG and semihosting. In my earlier project, I was missing the below settings&lt;/P&gt;&lt;P&gt;PRINTF_ADVANCED_ENABLE=1&lt;/P&gt;&lt;P&gt;SCANF_ADVANCED_ENABLE=1&lt;/P&gt;&lt;P&gt;I had been using Newlib. I will move to redlib&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 06:38:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/RT1010-Semihosting/m-p/1897208#M520</guid>
      <dc:creator>Syam_Krishnan</dc:creator>
      <dc:date>2024-07-02T06:38:27Z</dc:date>
    </item>
  </channel>
</rss>

