<?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: USBCDC print string</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/USBCDC-print-string/m-p/573815#M21616</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by gbm on Wed Apr 18 03:25:33 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to modify VCOM_putchar so that it will wait for a free place in FIFO instead of exiting with EOF. Be warned that this is not the only problem with CDC sample.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, remove that strlen from your code. Check for NUL character instead before printing each char.:rolleyes:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 01:05:06 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T01:05:06Z</dc:date>
    <item>
      <title>USBCDC print string</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/USBCDC-print-string/m-p/573814#M21615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by james on Wed Apr 18 03:08:40 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi guy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I modified the example in USBCDC to printstring instead of a single char by looping.&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;void VCOM_putstring(char *pcString)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; VCOM_putchar(13);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //return carriage
&amp;nbsp;&amp;nbsp;&amp;nbsp; long i = 0;
&amp;nbsp;&amp;nbsp;&amp;nbsp; // loop through until reach string's zero terminator
&amp;nbsp;&amp;nbsp;&amp;nbsp; for (i=0;i&amp;lt;strlen(pcString);i++)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VCOM_putchar(pcString&lt;I&gt;); // print each character
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
}
&lt;/I&gt;&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, this only prints up to 120chars into the teraterm. how can i modify it to print a lot more??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:05:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/USBCDC-print-string/m-p/573814#M21615</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: USBCDC print string</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/USBCDC-print-string/m-p/573815#M21616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by gbm on Wed Apr 18 03:25:33 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to modify VCOM_putchar so that it will wait for a free place in FIFO instead of exiting with EOF. Be warned that this is not the only problem with CDC sample.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, remove that strlen from your code. Check for NUL character instead before printing each char.:rolleyes:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:05:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/USBCDC-print-string/m-p/573815#M21616</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: USBCDC print string</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/USBCDC-print-string/m-p/573816#M21617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by james on Wed Apr 18 19:20:18 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Remove the strlen() works like a charm thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:05:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/USBCDC-print-string/m-p/573816#M21617</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:05:07Z</dc:date>
    </item>
  </channel>
</rss>

