<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>USB CDC on LPC17XX</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/39148/usb-cdc-on-lpc17xx</link><description> 
Hello! 

 
I need to send arrays of data over the USB to PC with use of
USB-CDC example offered by KEIL (LPC1768). The code goes something
like that: 

 
unsigned char dataToSend[] = {&amp;#39;L&amp;#39;,&amp;#39;E&amp;#39;,&amp;#39;O&amp;#39;,&amp;#39;S&amp;#39;,&amp;#39;S&amp;#39;,&amp;#39;\n&amp;#39;,&amp;#39;\r&amp;#39;};
while(Cnt &amp;lt; 5)
{
 USB_WriteEP (CDC_DEP_IN</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: USB CDC on LPC17XX</title><link>https://community.arm.com/thread/104573?ContentTypeID=1</link><pubDate>Wed, 09 Feb 2011 03:02:00 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f1dbaa55-48b1-4e2a-a112-2ed1382bec71</guid><dc:creator>Tamiryan Michael</dc:creator><description>&lt;p&gt;&lt;p&gt;
Make sure you don&amp;#39;t exceed the size of the hardware buffer. Check
you&amp;#39;re user manual for additonal exceptions associated with USB.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB CDC on LPC17XX</title><link>https://community.arm.com/thread/79013?ContentTypeID=1</link><pubDate>Wed, 09 Feb 2011 02:44:56 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:74290798-26c9-4a3a-b15d-b19beb6e5064</guid><dc:creator>Karl B.</dc:creator><description>&lt;p&gt;&lt;p&gt;
Ok,&lt;/p&gt;

&lt;p&gt;
Upper code was just an example... This is not THE problem which
I&amp;#39;m facing... :) :)&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB CDC on LPC17XX</title><link>https://community.arm.com/thread/66262?ContentTypeID=1</link><pubDate>Wed, 09 Feb 2011 00:04:35 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:af1048e9-f5ea-41fe-bb75-a5666c65b492</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
Just an aside:&lt;/p&gt;

&lt;pre&gt;
unsigned char dataToSend[] = {&amp;#39;L&amp;#39;,&amp;#39;E&amp;#39;,&amp;#39;O&amp;#39;,&amp;#39;S&amp;#39;,&amp;#39;S&amp;#39;,&amp;#39;\n&amp;#39;,&amp;#39;\r&amp;#39;};
&lt;/pre&gt;

&lt;p&gt;
Why not:&lt;/p&gt;

&lt;pre&gt;
unsigned char dataToSend[] = &amp;quot;LEOSS\n\r&amp;quot;;
&lt;/pre&gt;

&lt;p&gt;
Also note that the &amp;quot;normal&amp;quot; sequence is \r before \n; ie,
&amp;quot;CRLF&amp;quot;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>