<?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 Re: MCUXpresso SDK sprintf function in MCUXpresso SDK</title>
    <link>https://community.nxp.com/t5/MCUXpresso-SDK/MCUXpresso-SDK-sprintf-function/m-p/1429944#M3668</link>
    <description>&lt;P&gt;Hello Albert,&lt;/P&gt;
&lt;P&gt;Thanks for your sharing.&lt;/P&gt;
&lt;P&gt;Just kindly reminder, you can create PRINTF by Config Tool:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_0-1647504731268.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/174003i8F6E0C1106A34F6A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_0-1647504731268.png" alt="Alice_Yang_0-1647504731268.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Mar 2022 08:13:54 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2022-03-17T08:13:54Z</dc:date>
    <item>
      <title>MCUXpresso SDK sprintf function</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/MCUXpresso-SDK-sprintf-function/m-p/1429539#M3665</link>
      <description>&lt;P&gt;I'm using the SDK for the LPCXpresso845MAX board&amp;nbsp; I would like to use sprintf() but I see that it is not included in the SDK.&amp;nbsp; I see that in your devices/LPC845/utilities/debug_console_lite directory you have a files named fsl_debug_console.c/h.&amp;nbsp; I like using this driver because it provides a printf() function I can use with my UART.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I notice that you declare DbgConsole_PrintfFormattedData() (line 605 in my copy) as static, which means I cannot access it from outside the file.&amp;nbsp; This is unfortunate because I could easily use that function to create a sprintf() by passing in a pointer to a function that writes to a character string.&lt;/P&gt;&lt;P&gt;Since I cannot do that and I do not want to alter my copy of the SDK, I am forced to include the libnano version of sprintf(), which drags in a bunch of unwanted library functions such as malloc() and free() that compete with my own versions.&lt;/P&gt;&lt;P&gt;I would ask that you make DbgConsole_PrintfFormattedData() non-static in future versions of the SDK so we can access its functionality from our code without modifying the SDK files themselves.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Albert&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 19:22:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/MCUXpresso-SDK-sprintf-function/m-p/1429539#M3665</guid>
      <dc:creator>kk7xo</dc:creator>
      <dc:date>2022-03-16T19:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: MCUXpresso SDK sprintf function</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/MCUXpresso-SDK-sprintf-function/m-p/1429944#M3668</link>
      <description>&lt;P&gt;Hello Albert,&lt;/P&gt;
&lt;P&gt;Thanks for your sharing.&lt;/P&gt;
&lt;P&gt;Just kindly reminder, you can create PRINTF by Config Tool:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_0-1647504731268.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/174003i8F6E0C1106A34F6A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_0-1647504731268.png" alt="Alice_Yang_0-1647504731268.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 08:13:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/MCUXpresso-SDK-sprintf-function/m-p/1429944#M3668</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2022-03-17T08:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: MCUXpresso SDK sprintf function</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/MCUXpresso-SDK-sprintf-function/m-p/1430275#M3671</link>
      <description>&lt;P&gt;Yes I realize I can get printf.&amp;nbsp; It's sprintf that I'm looking for.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't want to edit my copy of fsl_debug_console.c/h to make the necessary function accessible externally, otherwise my changes will get overwritten whenever I update my copy of the SDK.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 18:05:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/MCUXpresso-SDK-sprintf-function/m-p/1430275#M3671</guid>
      <dc:creator>kk7xo</dc:creator>
      <dc:date>2022-03-17T18:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: MCUXpresso SDK sprintf function</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/MCUXpresso-SDK-sprintf-function/m-p/1430417#M3673</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;OK, I know your meaning, and will submit request to SDK team, thanks for your suggestion.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 02:49:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/MCUXpresso-SDK-sprintf-function/m-p/1430417#M3673</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2022-03-18T02:49:46Z</dc:date>
    </item>
  </channel>
</rss>

