<?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中的主题 printf() cannot be retargeted on S32K344 EVB</title>
    <link>https://community.nxp.com/t5/S32K/printf-cannot-be-retargeted-on-S32K344-EVB/m-p/1351273#M12352</link>
    <description>&lt;P&gt;Hi,I used the MCAL demo that comes with the S32K344 EVB and configured the UART module. The EVB can send messages normally. I added printf(), but the program does not seem to be retargeted. I need help, thank you very much.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Oct 2021 14:54:56 GMT</pubDate>
    <dc:creator>jacst</dc:creator>
    <dc:date>2021-10-06T14:54:56Z</dc:date>
    <item>
      <title>printf() cannot be retargeted on S32K344 EVB</title>
      <link>https://community.nxp.com/t5/S32K/printf-cannot-be-retargeted-on-S32K344-EVB/m-p/1351273#M12352</link>
      <description>&lt;P&gt;Hi,I used the MCAL demo that comes with the S32K344 EVB and configured the UART module. The EVB can send messages normally. I added printf(), but the program does not seem to be retargeted. I need help, thank you very much.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 14:54:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/printf-cannot-be-retargeted-on-S32K344-EVB/m-p/1351273#M12352</guid>
      <dc:creator>jacst</dc:creator>
      <dc:date>2021-10-06T14:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: printf() cannot be retargeted on S32K344 EVB</title>
      <link>https://community.nxp.com/t5/S32K/printf-cannot-be-retargeted-on-S32K344-EVB/m-p/1357798#M12493</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/191935"&gt;@jacst&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Sorry for late reply. Looks like there are three problems in your project:&lt;/P&gt;
&lt;P&gt;1. The NEW_LIB library is linked to the old compiler (gcc_b1620, not gcc_9.2). I have to change the path as below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="namnguyenviet_0-1634635565067.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/159496i5AE4DD6D8E361969/image-size/large?v=v2&amp;amp;px=999" role="button" title="namnguyenviet_0-1634635565067.png" alt="namnguyenviet_0-1634635565067.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;namnguyenviet_0-1634635565067.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2. In retarget.c,&amp;nbsp;&lt;EM&gt;write&amp;nbsp;&lt;/EM&gt;function only has 1 underscore instead of 2 (&lt;EM&gt;_write&amp;nbsp;&lt;/EM&gt;instead of &lt;EM&gt;__write&lt;/EM&gt;).&lt;/P&gt;
&lt;P&gt;3. You need to implement Uart_SyncSend function in &lt;EM&gt;_write&amp;nbsp;&lt;/EM&gt;function instead of async, otherwise you will need to wait until the transmission is completed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have attached the fixed project, after fix these things I can see printf function is retargeted.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Nam&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 09:30:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/printf-cannot-be-retargeted-on-S32K344-EVB/m-p/1357798#M12493</guid>
      <dc:creator>namnguyenviet</dc:creator>
      <dc:date>2021-10-19T09:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: printf() cannot be retargeted on S32K344 EVB</title>
      <link>https://community.nxp.com/t5/S32K/printf-cannot-be-retargeted-on-S32K344-EVB/m-p/1358340#M12499</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/83222"&gt;@namnguyenviet&lt;/a&gt;&amp;nbsp;Thank you so much for solving our problem.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 06:01:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/printf-cannot-be-retargeted-on-S32K344-EVB/m-p/1358340#M12499</guid>
      <dc:creator>jacst</dc:creator>
      <dc:date>2021-10-20T06:01:25Z</dc:date>
    </item>
  </channel>
</rss>

