<?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: sprintf in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/sprintf/m-p/532860#M3306</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by 24h_newload on Mon Jul 02 22:01:29 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I've already read this &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://support.code-red-tech.com/CodeRedWiki/UartPrintf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but I still can't retarget for uart funtion. I can not use printf funtion like you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I miss this step: you need to provide your own implementations of the function __write()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; "your own implementations" - I don't see this mean ! pls to me clearly about that ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks so much !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;P/s: Im programming for LPC11xx.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 02:58:40 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T02:58:40Z</dc:date>
    <item>
      <title>sprintf</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/sprintf/m-p/532855#M3301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by eicmeters on Fri Feb 11 21:42:44 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;hi....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a problem in LPCXpresso software, if i give "sprintf" statement its displaying error.Plz sort out this issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;........&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.......&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sprintf(array,"%d",value);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.......&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;......&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;REG,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Deepak Shetty&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:58:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/sprintf/m-p/532855#M3301</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: sprintf</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/sprintf/m-p/532856#M3302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Sat Feb 12 10:00:11 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;What error?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you read this? &lt;/SPAN&gt;&lt;A href="http://"&gt;http://support.code-red-tech.com/CodeRedWiki/UsingPrintf&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:58:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/sprintf/m-p/532856#M3302</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: sprintf</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/sprintf/m-p/532857#M3303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by SloandStedE on Thu Sep 29 04:14:49 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Having to use semihosting libraries seems appropriate for printf(), but it doesn't seem to apply to sprintf() which is simply a string formatting function with no IO.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:58:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/sprintf/m-p/532857#M3303</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: sprintf</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/sprintf/m-p/532858#M3304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Thu Sep 29 04:54:44 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this a question ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My sprintf is still working (semihosting) :eek:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
#include &amp;lt;stdio.h&amp;gt;

int main(void)
{
 printf("Hello World\n");
 volatile static int i = 1234 ;
 char text1[50];

 sprintf(text1,"Value is %06d",i);
 printf("Text1: %s\n",text1);
 while(1)
 {
&amp;nbsp; i++ ;
 }
 return 0 ;
}&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:58:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/sprintf/m-p/532858#M3304</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: sprintf</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/sprintf/m-p/532859#M3305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Thu Sep 29 07:12:05 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: SloandStedE&lt;/STRONG&gt;&lt;BR /&gt;Having to use semihosting libraries seems appropriate for printf(), but it doesn't seem to apply to sprintf() which is simply a string formatting function with no IO.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use sprintf when linking with either the semihost or the nohost variant of Redlib. How to change the currently selected library variant is covered here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://support.code-red-tech.com/CodeRedWiki/SwitchingCLibrary&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CodeRedSupport&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:58:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/sprintf/m-p/532859#M3305</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: sprintf</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/sprintf/m-p/532860#M3306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by 24h_newload on Mon Jul 02 22:01:29 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I've already read this &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://support.code-red-tech.com/CodeRedWiki/UartPrintf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but I still can't retarget for uart funtion. I can not use printf funtion like you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I miss this step: you need to provide your own implementations of the function __write()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; "your own implementations" - I don't see this mean ! pls to me clearly about that ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks so much !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;P/s: Im programming for LPC11xx.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:58:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/sprintf/m-p/532860#M3306</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: sprintf</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/sprintf/m-p/532861#M3307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by researchinnovation on Mon Jul 02 23:11:42 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: 24h_newload&lt;/STRONG&gt;&lt;BR /&gt;I've already read this &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://support.code-red-tech.com/CodeRedWiki/UartPrintf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;but I still can't retarget for uart funtion. I can not use printf funtion like you.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I miss this step: you need to provide your own implementations of the function __write()&lt;BR /&gt;&lt;BR /&gt; "your own implementations" - I don't see this mean ! pls to me clearly about that ?&lt;BR /&gt;&lt;BR /&gt;Thanks so much !&lt;BR /&gt;&lt;BR /&gt;P/s: Im programming for LPC11xx.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi...!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you please share your code with all the header files, and the error on your IDE console.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &amp;amp; Regards....:)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:58:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/sprintf/m-p/532861#M3307</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: sprintf</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/sprintf/m-p/532862#M3308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Tue Jul 03 00:02:00 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: 24h_newload&lt;/STRONG&gt;&lt;BR /&gt;I miss this step: you need to provide your own implementations of the function __write()&lt;BR /&gt;&lt;BR /&gt; "your own implementations" - I don't see this mean ! pls to me clearly about that ?&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you read #2 of &lt;/SPAN&gt;&lt;A href="http://"&gt;http://knowledgebase.nxp.com/showthread.php?t=2887&lt;/A&gt;&lt;SPAN&gt; already?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:58:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/sprintf/m-p/532862#M3308</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:58:41Z</dc:date>
    </item>
  </channel>
</rss>

