<?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 how to use sprintf in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/how-to-use-sprintf/m-p/689262#M33010</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am trying to display hex value on terminal, but it needs to be char so i can display so i&amp;nbsp; want to use sprintf but is giving error 1. I added stdio.h also. How i can use sprintf in lpcexpresso?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 May 2017 05:45:46 GMT</pubDate>
    <dc:creator>omkar787898</dc:creator>
    <dc:date>2017-05-23T05:45:46Z</dc:date>
    <item>
      <title>how to use sprintf</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/how-to-use-sprintf/m-p/689262#M33010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am trying to display hex value on terminal, but it needs to be char so i can display so i&amp;nbsp; want to use sprintf but is giving error 1. I added stdio.h also. How i can use sprintf in lpcexpresso?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2017 05:45:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/how-to-use-sprintf/m-p/689262#M33010</guid>
      <dc:creator>omkar787898</dc:creator>
      <dc:date>2017-05-23T05:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to use sprintf</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/how-to-use-sprintf/m-p/689263#M33011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look in the Build Log (&lt;A href="https://community.nxp.com/thread/389147"&gt;The Build Console&lt;/A&gt;&amp;nbsp;) or the Problems View to find the actual error you are encountering, rather than just looking at the final "error 1" message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The most likely cause of problems calling sprintf() though are that you are linking with the wrong library variant. You need to use "nohost" or "semihost". For more details see:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://community.nxp.com/thread/389153"&gt;What are none, nohost and semihost libraries?&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.nxp.com/thread/389104"&gt;Switching the selected C library&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, you might also want to check out the itoa() function:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/630652"&gt;https://community.nxp.com/message/630652&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;LPCXpresso Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2017 07:35:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/how-to-use-sprintf/m-p/689263#M33011</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2017-05-23T07:35:48Z</dc:date>
    </item>
  </channel>
</rss>

