<?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: Error when building project with sprintf in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Error-when-building-project-with-sprintf/m-p/631240#M32526</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To use sprintf, you need to make sure that you are building against the "Nohost" or "Semihost" variants of the C library. For more information see:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/389153"&gt;What are none, nohost and semihost libraries?&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/389104"&gt;Switching the selected C library&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/389070"&gt;Linker error "Undefined reference to 'xxx' "&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need more assistance, please post full details of the error message(s) that you get in the build log:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/630853"&gt;https://community.nxp.com/message/630853&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>Wed, 21 Dec 2016 15:50:33 GMT</pubDate>
    <dc:creator>lpcxpresso_supp</dc:creator>
    <dc:date>2016-12-21T15:50:33Z</dc:date>
    <item>
      <title>Error when building project with sprintf</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Error-when-building-project-with-sprintf/m-p/631239#M32525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;(Sorry if my english sucks, I hope you'll understand)&lt;/P&gt;&lt;P&gt;So i'm in internship and i'm working on a project. So I got a problem when I build the project. Everything is fine, I don't have any errors on the code but I got this at the end : make: ***[Test_UART_v1.axf] Error 1. So I know that the problem is from the sprintf because when I delete it, everything works.&lt;/P&gt;&lt;P&gt;I'll just put the part with the sprintf &amp;nbsp;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#include stdio.h&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[...]&lt;/P&gt;&lt;P&gt;int voltage = ADC_Read(); //function created by myself&lt;/P&gt;&lt;P&gt;char volt_final[10];&lt;/P&gt;&lt;P&gt;sprintf(vol_final,"%d",voltage);&lt;/P&gt;&lt;P&gt;[...]&lt;/P&gt;&lt;P&gt;So I read some articles about the librairies and I'm new to LPCXpresso so maybe I need to do something ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried itoa but it doesnt seems to work, I don't get a good result ,maybe I did something wrong with my ADC_Read().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 11:59:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Error-when-building-project-with-sprintf/m-p/631239#M32525</guid>
      <dc:creator>flamehaze</dc:creator>
      <dc:date>2016-12-21T11:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error when building project with sprintf</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Error-when-building-project-with-sprintf/m-p/631240#M32526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To use sprintf, you need to make sure that you are building against the "Nohost" or "Semihost" variants of the C library. For more information see:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/389153"&gt;What are none, nohost and semihost libraries?&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/389104"&gt;Switching the selected C library&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/389070"&gt;Linker error "Undefined reference to 'xxx' "&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need more assistance, please post full details of the error message(s) that you get in the build log:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/630853"&gt;https://community.nxp.com/message/630853&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>Wed, 21 Dec 2016 15:50:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Error-when-building-project-with-sprintf/m-p/631240#M32526</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2016-12-21T15:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error when building project with sprintf</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Error-when-building-project-with-sprintf/m-p/631241#M32527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect, thank you very much ! The 2 articles were usefull and I understand now :smileyhappy:.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 16:08:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Error-when-building-project-with-sprintf/m-p/631241#M32527</guid>
      <dc:creator>flamehaze</dc:creator>
      <dc:date>2016-12-21T16:08:01Z</dc:date>
    </item>
  </channel>
</rss>

