<?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>LPCXpresso IDEのトピックRe: Kindergarten printf question</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Kindergarten-printf-question/m-p/577189#M23085</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by hass on Tue May 01 06:19:46 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your guidance. I had searched&amp;nbsp; Code Red and NXP wiki/forums&amp;nbsp; without success before posting. The magic words seem to be "Undefined reference" which of course I did not include. Sorry to bother you all with this, but after spending a half day spinning my wheels, it was time to do something.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 01:08:46 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T01:08:46Z</dc:date>
    <item>
      <title>Kindergarten printf question</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Kindergarten-printf-question/m-p/577187#M23083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by hass on Tue May 01 05:48:08 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;After exercising demo programs (blinky etc) and creating a few simple projects, I lifted an example from the forum which happens to use printf.&amp;nbsp; It fails to link unless I comment out the printf statements. Upon discovering this, I inserted a printf into&amp;nbsp; "LPC1343_cmsis2_blinky" and witnessed the same failure. The only clues I am aware of&amp;nbsp; ( as a Rookie)&amp;nbsp; are a series of undefined references&amp;nbsp; being called out by the linker. Here's an example&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;c:/nxp/lpcxpresso_4.2.0_264/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/lib/thumb2\libcr_c.a(_writebuf.o): In function `_Cwritebuf':&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;_writebuf.c:(.text._Cwritebuf+0x18): undefined reference to `__sys_flen'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;_writebuf.c:(.text._Cwritebuf+0x2e): undefined reference to `__sys_seek'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;_writebuf.c:(.text._Cwritebuf+0x56): undefined reference to `__sys_write'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll appreciate any help on this seemingly trivial problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:08:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Kindergarten-printf-question/m-p/577187#M23083</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Kindergarten printf question</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Kindergarten-printf-question/m-p/577188#M23084</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 May 01 05:58:36 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: hass&lt;/STRONG&gt;&lt;BR /&gt;I'll appreciate any help on this seemingly trivial problem.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A lot of this problems are already described in CodeRedWiki :)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your problem: &lt;/SPAN&gt;&lt;A href="http://http://support.code-red-tech.com/CodeRedWiki/UndefinedReference?highlight=%28sys%5C_write%29"&gt;http://support.code-red-tech.com/CodeRedWiki/UndefinedReference?highlight=%28sys\_write%29&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:08:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Kindergarten-printf-question/m-p/577188#M23084</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Kindergarten printf question</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Kindergarten-printf-question/m-p/577189#M23085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by hass on Tue May 01 06:19:46 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your guidance. I had searched&amp;nbsp; Code Red and NXP wiki/forums&amp;nbsp; without success before posting. The magic words seem to be "Undefined reference" which of course I did not include. Sorry to bother you all with this, but after spending a half day spinning my wheels, it was time to do something.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:08:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Kindergarten-printf-question/m-p/577189#M23085</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Kindergarten printf question</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Kindergarten-printf-question/m-p/577190#M23086</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 Wed May 02 04:09:29 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;@Hass....Hi...!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try with the following link and please add the required header file,like #include&amp;lt;stdio.h&amp;gt; and #include&amp;lt;stdlib.h&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://www.cplusplus.com/reference/clibrary/cstdio/fprintf/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps you.&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 01:08:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Kindergarten-printf-question/m-p/577190#M23086</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Kindergarten printf question</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Kindergarten-printf-question/m-p/577191#M23087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by hass on Thu May 03 06:35:23 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks to all for your help. The magic solution was to have project defined as&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RedLib (Semi Hosting).&amp;nbsp; It's an option you can specify when using project wizard. In my case, I had to modify project options by following a rather&amp;nbsp; convoluted series of steps outlined in the Code Red forum link as provided by ZERO.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:08:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Kindergarten-printf-question/m-p/577191#M23087</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Kindergarten printf question</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Kindergarten-printf-question/m-p/577192#M23088</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 May 03 07:09:40 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Glad to hear you solved your problem. But it sounds like you missed the easy way to switch an existing project to use the semihosted variant of the C library....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[FONT=Courier New][SIZE=2]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Quickstart -&amp;gt; Quick Settings -&amp;gt; Set library type[/SIZE][/FONT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;which is at the top of the FAQ at:&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;I've tweaked the FAQ to make this shortcut more obvious.&lt;/SPAN&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 01:08:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Kindergarten-printf-question/m-p/577192#M23088</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:08:48Z</dc:date>
    </item>
  </channel>
</rss>

