<?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>S32KのトピックRe: Not able to use printf/scanf functionality in S32DS</title>
    <link>https://community.nxp.com/t5/S32K/Not-able-to-use-printf-scanf-functionality-in-S32DS/m-p/1954631#M40950</link>
    <description>&lt;P&gt;Hello, &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/159987"&gt;@jiri_kral&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;I'm using my old project (S32DS version 3.5 with NXP GCC 6.3 for Arm 32-bit bare metal, which supports the EWL library) to print data on URAT.&lt;BR /&gt;In which the program jumps into the write_console function (console.c) after calling printf and able to print data on UART.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot (190).png" style="width: 754px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/299162i802BF7DC98A88949/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot (190).png" alt="Screenshot (190).png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I'm using your code (S32DS version 3.5 with NXP GCC 10.2 for Arm 32-bit bare metal) to print data on UART,&amp;nbsp;program does jumps into the write_console function (console.c) after calling printf.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attached my codes. Please guide me further.&lt;/P&gt;</description>
    <pubDate>Sat, 14 Sep 2024 09:18:34 GMT</pubDate>
    <dc:creator>emb02</dc:creator>
    <dc:date>2024-09-14T09:18:34Z</dc:date>
    <item>
      <title>Not able to use printf/scanf functionality in S32DS</title>
      <link>https://community.nxp.com/t5/S32K/Not-able-to-use-printf-scanf-functionality-in-S32DS/m-p/1870561#M35662</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using S32K144 and want to use printf/scanf functions for testing purpose.&amp;nbsp;&lt;SPAN&gt;I want to print some data on UART terminal (Teraterm).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;To use printf function EWL library is used but while creating new S32DS project there is no option to select library. Also there is no option to select EWL library in project properties-&amp;gt;settings-&amp;gt;Target Processor.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="S32 create proj.PNG" style="width: 862px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/280102iBE15308D264FB5EA/image-size/large?v=v2&amp;amp;px=999" role="button" title="S32 create proj.PNG" alt="S32 create proj.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot (63).png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/280099iDF382EF7F69E0835/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot (63).png" alt="Screenshot (63).png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I use printf/scanf without EWL library? Is there any other way to print data on UART terminal.&lt;/P&gt;&lt;P&gt;I'm using,&lt;/P&gt;&lt;P&gt;S32DS v3.5&lt;/P&gt;&lt;P&gt;Toolchain - NXP GCC 10.2 for Arm 32-bit bare metal&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 09:38:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Not-able-to-use-printf-scanf-functionality-in-S32DS/m-p/1870561#M35662</guid>
      <dc:creator>emb02</dc:creator>
      <dc:date>2024-05-22T09:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to use printf/scanf functionality in S32DS</title>
      <link>https://community.nxp.com/t5/S32K/Not-able-to-use-printf-scanf-functionality-in-S32DS/m-p/1875490#M35829</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;for printf/scanf&amp;nbsp; via UART you need to implement&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;int _write(int handle, char * buffer, int * count)&lt;/P&gt;
&lt;P&gt;int _read(int handle, char * buffer, int * count)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Functions and use NewLib no I/O std C library. Here is example for EWL library - the difference is only in read/write function name -&amp;nbsp;&lt;A href="https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/EXAMPLE-S32k144-UART-printf-scanf-under-FreeRTOS-S32DS/ta-p/1122496" target="_blank"&gt;https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/EXAMPLE-S32k144-UART-printf-scanf-under-FreeRTOS-S32DS/ta-p/1122496&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If you are okay with Semihosting Console, you can link to your project NewLib_Semihosting:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jiri_kral_0-1716805001596.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/280982i02EF611DB67D260B/image-size/large?v=v2&amp;amp;px=999" role="button" title="jiri_kral_0-1716805001596.png" alt="jiri_kral_0-1716805001596.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 10:17:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Not-able-to-use-printf-scanf-functionality-in-S32DS/m-p/1875490#M35829</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2024-05-27T10:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to use printf/scanf functionality in S32DS</title>
      <link>https://community.nxp.com/t5/S32K/Not-able-to-use-printf-scanf-functionality-in-S32DS/m-p/1875512#M35831</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/159987"&gt;@jiri_kral&lt;/a&gt;&lt;/P&gt;&lt;P&gt;I don't want to use semihosting console, I want to print data on debugger console. But there is no option for ewl_c Debugger console library in project settings (&lt;SPAN&gt;properties-&amp;gt;settings-&amp;gt;Target Processor-&amp;gt;Libraries Support).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please guide me with this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 10:54:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Not-able-to-use-printf-scanf-functionality-in-S32DS/m-p/1875512#M35831</guid>
      <dc:creator>emb02</dc:creator>
      <dc:date>2024-05-27T10:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to use printf/scanf functionality in S32DS</title>
      <link>https://community.nxp.com/t5/S32K/Not-able-to-use-printf-scanf-functionality-in-S32DS/m-p/1875543#M35834</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EWL C Library is not supported by S32DS v3.5. But both STD C libraries are using the same Debug output to Semihosting Console (which is different name for Debugger Console).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or what you mean by Debugger Console?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The right NewLib version is this one:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jiri_kral_0-1716808943545.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/280994iB4A6C1C16D0A39E3/image-size/large?v=v2&amp;amp;px=999" role="button" title="jiri_kral_0-1716808943545.png" alt="jiri_kral_0-1716808943545.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 11:22:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Not-able-to-use-printf-scanf-functionality-in-S32DS/m-p/1875543#M35834</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2024-05-27T11:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to use printf/scanf functionality in S32DS</title>
      <link>https://community.nxp.com/t5/S32K/Not-able-to-use-printf-scanf-functionality-in-S32DS/m-p/1877152#M35952</link>
      <description>HI,&lt;BR /&gt;I want to use real serial port of the MCU not serial console.&lt;BR /&gt;I've used mentioned newlib Semihosting library but not able to print data on UART terminal.</description>
      <pubDate>Wed, 29 May 2024 09:30:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Not-able-to-use-printf-scanf-functionality-in-S32DS/m-p/1877152#M35952</guid>
      <dc:creator>emb02</dc:creator>
      <dc:date>2024-05-29T09:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to use printf/scanf functionality in S32DS</title>
      <link>https://community.nxp.com/t5/S32K/Not-able-to-use-printf-scanf-functionality-in-S32DS/m-p/1878260#M36029</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;okay, I see. For this you need to use NewLib with no I/O support and implement _read and _write functions as described in post bellow -&amp;nbsp;&lt;A href="https://community.nxp.com/t5/S32K/Not-able-to-use-printf-scanf-functionality-in-S32DS/m-p/1875490/highlight/true#M35829" target="_blank"&gt;https://community.nxp.com/t5/S32K/Not-able-to-use-printf-scanf-functionality-in-S32DS/m-p/1875490/highlight/true#M35829&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 14:46:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Not-able-to-use-printf-scanf-functionality-in-S32DS/m-p/1878260#M36029</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2024-05-30T14:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to use printf/scanf functionality in S32DS</title>
      <link>https://community.nxp.com/t5/S32K/Not-able-to-use-printf-scanf-functionality-in-S32DS/m-p/1878693#M36058</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/159987"&gt;@jiri_kral&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;It will be helpful if you can share example project in which NewLib with no I/O support library is used for printf (to print on UART).&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 06:52:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Not-able-to-use-printf-scanf-functionality-in-S32DS/m-p/1878693#M36058</guid>
      <dc:creator>emb02</dc:creator>
      <dc:date>2024-05-31T06:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to use printf/scanf functionality in S32DS</title>
      <link>https://community.nxp.com/t5/S32K/Not-able-to-use-printf-scanf-functionality-in-S32DS/m-p/1878730#M36066</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't have such example project. You can simply use some existing UART example and implement _write and _read functions by the same way as it is in Example shared with the previous link.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 07:12:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Not-able-to-use-printf-scanf-functionality-in-S32DS/m-p/1878730#M36066</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2024-05-31T07:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to use printf/scanf functionality in S32DS</title>
      <link>https://community.nxp.com/t5/S32K/Not-able-to-use-printf-scanf-functionality-in-S32DS/m-p/1894060#M36919</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/159987"&gt;@jiri_kral&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using S32K144 and want to use printf/scanf functions for testing purposes.&amp;nbsp;I want to print some data on UART terminal (Teraterm).&lt;/P&gt;&lt;P&gt;As per your response, I am trying to make a setting in S32DS, but these options&amp;nbsp;&lt;/P&gt;&lt;P&gt;(newlib semihosting v2 (-specs=rdimon-v2.mspecs)) is not available in Project→properties→Setting→Target Processor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot (97).png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/285758i2D487DA3E4649378/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot (97).png" alt="Screenshot (97).png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm using,&lt;/P&gt;&lt;P&gt;S32DS v3.5&lt;/P&gt;&lt;P&gt;Toolchain - NXP GCC 6.3 for Arm 32-bit bare metal&lt;/P&gt;&lt;P&gt;Please guide me with this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 06:10:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Not-able-to-use-printf-scanf-functionality-in-S32DS/m-p/1894060#M36919</guid>
      <dc:creator>emb02</dc:creator>
      <dc:date>2024-06-26T06:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to use printf/scanf functionality in S32DS</title>
      <link>https://community.nxp.com/t5/S32K/Not-able-to-use-printf-scanf-functionality-in-S32DS/m-p/1894358#M36931</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already answered you question a month ago:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="https://community.nxp.com/t5/S32K/Not-able-to-use-printf-scanf-functionality-in-S32DS/m-p/1875490/highlight/true#M35829" target="_blank"&gt;https://community.nxp.com/t5/S32K/Not-able-to-use-printf-scanf-functionality-in-S32DS/m-p/1875490/highlight/true#M35829&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best way is start with an UART example and use newlib no I/O.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In details - if you call printf/scanf from STD C library (newlib no I/O) the output of both functions is calling _write or _read function which is by default empty. You need to implement both functions - inside _write function you need to send buffer passed through _write function into UART, for scanf you copy buffer read from UART to pointer passed by _read function.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is nothing special about it - check the example linked in some previous post.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 10:55:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Not-able-to-use-printf-scanf-functionality-in-S32DS/m-p/1894358#M36931</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2024-06-26T10:55:37Z</dc:date>
    </item>
    <item>
      <title>Not able to use printf/scanf functionality in S32DS V3.5</title>
      <link>https://community.nxp.com/t5/S32K/Not-able-to-use-printf-scanf-functionality-in-S32DS/m-p/1939279#M40056</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thank you for your response; however, if the EWL library is not supported for S32DS V3.5, could you suggest any other solution to the same query?&lt;/P&gt;&lt;P&gt;and When I try to create a new project, the SDK is not available for that toolchain.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using&lt;/P&gt;&lt;P&gt;S32DS v3.5&lt;/P&gt;&lt;P&gt;Toolchain: NXP GCC 10.2 for Arm 32-bit bare metal&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 12:50:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Not-able-to-use-printf-scanf-functionality-in-S32DS/m-p/1939279#M40056</guid>
      <dc:creator>emb02</dc:creator>
      <dc:date>2024-08-23T12:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to use printf/scanf functionality in S32DS</title>
      <link>https://community.nxp.com/t5/S32K/Not-able-to-use-printf-scanf-functionality-in-S32DS/m-p/1951086#M40784</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/159987"&gt;@jiri_kral&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I referred your code for UART testing, when I try to print data using the printf function, the program does not jump to the write_console function in the console.c.&lt;/P&gt;&lt;P&gt;I have attached my code. Please guide me further.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;S32DS version 3.5&lt;/P&gt;&lt;P&gt;NXP GCC 10.2 toolchain for Arm 32-bit bare metal&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 11:57:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Not-able-to-use-printf-scanf-functionality-in-S32DS/m-p/1951086#M40784</guid>
      <dc:creator>emb02</dc:creator>
      <dc:date>2024-09-10T11:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to use printf/scanf functionality in S32DS</title>
      <link>https://community.nxp.com/t5/S32K/Not-able-to-use-printf-scanf-functionality-in-S32DS/m-p/1954631#M40950</link>
      <description>&lt;P&gt;Hello, &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/159987"&gt;@jiri_kral&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;I'm using my old project (S32DS version 3.5 with NXP GCC 6.3 for Arm 32-bit bare metal, which supports the EWL library) to print data on URAT.&lt;BR /&gt;In which the program jumps into the write_console function (console.c) after calling printf and able to print data on UART.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot (190).png" style="width: 754px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/299162i802BF7DC98A88949/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot (190).png" alt="Screenshot (190).png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I'm using your code (S32DS version 3.5 with NXP GCC 10.2 for Arm 32-bit bare metal) to print data on UART,&amp;nbsp;program does jumps into the write_console function (console.c) after calling printf.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attached my codes. Please guide me further.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Sep 2024 09:18:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Not-able-to-use-printf-scanf-functionality-in-S32DS/m-p/1954631#M40950</guid>
      <dc:creator>emb02</dc:creator>
      <dc:date>2024-09-14T09:18:34Z</dc:date>
    </item>
  </channel>
</rss>

