<?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: Display a string on via the uart (using the LTC1114 CPU)</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Display-a-string-on-via-the-uart-using-the-LTC1114-CPU/m-p/534068#M3908</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by NXP_Europe on Thu Feb 23 07:56:25 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello js and guillaume,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fhttp%3A%2F%2Fsupport.code-red-tech.com%2FCodeRedWiki%2FUartPrintf" rel="nofollow" target="_blank"&gt;Code Red's site&lt;/A&gt;&lt;SPAN&gt; clearly explains how to override the semihosting target for printf and also contains a link to an &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fhttp%3A%2F%2Fsupport.code-red-tech.com%2FCodeRedWiki%2FRDB1768cmsisExampleProjects%3Faction%3DAttachFile%26do%3Dget%26target%3DRDB1768cmsis2.zip" rel="nofollow" target="_blank"&gt;example for the LPC1768&lt;/A&gt;&lt;SPAN&gt;. Attached is a simple example how to do it on the LPC1114.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 02:58:44 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T02:58:44Z</dc:date>
    <item>
      <title>Display a string on via the uart (using the LTC1114 CPU)</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Display-a-string-on-via-the-uart-using-the-LTC1114-CPU/m-p/534065#M3905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by guillaume_arveni on Thu Feb 16 06:53:04 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the UART example and I would like to display "Hello" via the uart.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;==&amp;gt; How can I do it? I am using the printf("hello") function but it does not work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please let me know about that&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;guillaume&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:58:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Display-a-string-on-via-the-uart-using-the-LTC1114-CPU/m-p/534065#M3905</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Display a string on via the uart (using the LTC1114 CPU)</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Display-a-string-on-via-the-uart-using-the-LTC1114-CPU/m-p/534066#M3906</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 Feb 16 07:32:26 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;As described in &lt;/SPAN&gt;&lt;A href="http://" rel="nofollow noopener noreferrer" target="_blank"&gt;http://support.code-red-tech.com/CodeRedWiki/UartPrintf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;printf can be used for console output in semihosting projects.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For UART output you have to provide a __sys_write function to output buffered data to UART:&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 "stdio.h"
...
//use UART for printf
int __sys_write(int iFileHandle, char *pcBuffer, int iLength)
{
 UARTSend(pcBuffer,iLength);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //send data buffer to UART
 return iLength;
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;Now printf is using this function to write its data to UART via UARTSend() function, which is hopefully included in uart.c of your project :rolleyes:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's all &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:58:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Display-a-string-on-via-the-uart-using-the-LTC1114-CPU/m-p/534066#M3906</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Display a string on via the uart (using the LTC1114 CPU)</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Display-a-string-on-via-the-uart-using-the-LTC1114-CPU/m-p/534067#M3907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by js-nxp on Thu Feb 16 15:11:55 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;guillaume I have given up on using printf and the uart as everyone will tell you what to do or point you to some useless information rather than giving you a working example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I say useless because, even though it may be easy enough for someone who uses the IDE and processor all the time, it's pretty overwhelming for someone just starting out with the NXP chips or the IDE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And then there are those people who will tell you that printf should not be used in a small processor or the world will end...so just be careful or you may destroy the planet. :D&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:58:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Display-a-string-on-via-the-uart-using-the-LTC1114-CPU/m-p/534067#M3907</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Display a string on via the uart (using the LTC1114 CPU)</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Display-a-string-on-via-the-uart-using-the-LTC1114-CPU/m-p/534068#M3908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by NXP_Europe on Thu Feb 23 07:56:25 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello js and guillaume,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fhttp%3A%2F%2Fsupport.code-red-tech.com%2FCodeRedWiki%2FUartPrintf" rel="nofollow" target="_blank"&gt;Code Red's site&lt;/A&gt;&lt;SPAN&gt; clearly explains how to override the semihosting target for printf and also contains a link to an &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fhttp%3A%2F%2Fsupport.code-red-tech.com%2FCodeRedWiki%2FRDB1768cmsisExampleProjects%3Faction%3DAttachFile%26do%3Dget%26target%3DRDB1768cmsis2.zip" rel="nofollow" target="_blank"&gt;example for the LPC1768&lt;/A&gt;&lt;SPAN&gt;. Attached is a simple example how to do it on the LPC1114.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:58:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Display-a-string-on-via-the-uart-using-the-LTC1114-CPU/m-p/534068#M3908</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Display a string on via the uart (using the LTC1114 CPU)</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Display-a-string-on-via-the-uart-using-the-LTC1114-CPU/m-p/534069#M3909</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 Feb 23 08:47:50 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;It's still carnival :)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Obviously it's very difficult to start with project wizard and post an actual sample with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#1 CMSIS 2.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#2 small 8K version (with 'CR_INTEGER_PRINTF' symbol to reduce code size)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#3 Managed linker script&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:58:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Display-a-string-on-via-the-uart-using-the-LTC1114-CPU/m-p/534069#M3909</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Display a string on via the uart (using the LTC1114 CPU)</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Display-a-string-on-via-the-uart-using-the-LTC1114-CPU/m-p/534070#M3910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by js-nxp on Thu Feb 23 16:15:58 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;:eek: OMG I have been asking for this since December &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2F" rel="nofollow" target="_blank"&gt;http://knowledgebase.nxp.com/showthread.php?t=2696&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and now I get not one but 2 examples the same day? Quick someone get me the smelling salts, I feel faint. :D&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Zero's example worked right away, all in one folder and [B]I THINK[/B] I can understand what's going on and maybe able to start using printf in some of my projects. It's bigger than what I'm used to with AVRs but smaller than the NXP's example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The NXP's example compiles fine but I cannot run it on the LPCXpresso, see screenshot.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:58:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Display-a-string-on-via-the-uart-using-the-LTC1114-CPU/m-p/534070#M3910</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:58:45Z</dc:date>
    </item>
  </channel>
</rss>

