<?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>LPC MicrocontrollersのトピックRe: basic USB project</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/basic-USB-project/m-p/573841#M18903</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by L.simon on Fri Mar 28 05:58:53 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Found it!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in the function CDC_Device_SendData() the parameter CDCInterfaceInfo-&amp;gt;State.LineEncoding.BaudRateBPS is needed, if it is deleted out of the function, the program works!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My CDC program now runs without using the serial part and only the bulking part!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:56:41 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:56:41Z</dc:date>
    <item>
      <title>basic USB project</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/basic-USB-project/m-p/573838#M18900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by L.simon on Fri Feb 28 09:24:38 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Dear,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to find a basic USB example project to simply be able to transfer a bit from the PC to the LPC4357 for example to set a byte to a GPIO port.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;I found some examples to do so (LPCopen) but they were not compatible to CMSIS, i need one that is so i can afterwards run it on freeRtos. I also found an example that only works on keil (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fproject%2Flpc43xx-dual-core-examples" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/project/lpc43xx-dual-core-examples&lt;/A&gt;&lt;SPAN&gt;), the project is a .uvproj file and i work with redsuite/LPCXpresso. after trying to make a new project in red suite and adding the files manually there seem to be lots of problems.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does someone know an easy way to convert .uvproj files to .cproject files?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or even better, a USB project that runs on red suite (or LPCXpresso) for my LPC4357FET256?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your time,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Greetings,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Simon&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:56:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/basic-USB-project/m-p/573838#M18900</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: basic USB project</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/basic-USB-project/m-p/573839#M18901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by rocketdawg on Fri Feb 28 10:57:16 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to decide what type of USB device you want to implement.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;all OS provide class drivers for HID, CDC, and some others, but you are most likely going to choose HID or CDC.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;HID might be preferred, it is used for keyboard, mouse, and indicators (send a byte to a GPIO)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CDC is a serial port emulator class, but you could define your own protocol and write a parser on the LPC side that operates the protocol&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:56:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/basic-USB-project/m-p/573839#M18901</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: basic USB project</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/basic-USB-project/m-p/573840#M18902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by L.simon on Fri Mar 28 02:57:36 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you for your reply,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am now using the nxpUSBlibV0.98b and got the HID working but after some time working with it i realized i needed bulking tranfers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So i started using the CDC example and tested it with a hyperterminal and it works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that i want to use the pyUSB project to communicate with the program,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sending bulk transfers to the device works perfectly and i can send multiple transfers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But from the moment i start to try to read something out, the python program gives me a timeout error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a usb sniffer Beagle USB480 which tells me that i do send a read request to my device but the device doesn't seem to give the data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried constantly sending data from the device(it works with the hyperterminal) and reading it with the python program, the same thing happens, i do get the read request in beagle but they give "IN-NACK", the pyUSB uses an other driver (libUSB-win32) than the hyperterminal. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But i don't think that is a problem because the write command does work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is there something specific i need to do before reading? maybe some sort of configuration or setup?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i dont think so for i have no specific one with the hyperterminal.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i think it might because the read command and the command to put data on the bus are not synchronized?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That does happen with a write command&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if(CDC_Device_BytesReceived(&amp;amp;VirtualSerial_CDC_Interface))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;recv_byte[0] = CDC_Device_ReceiveByte(&amp;amp;VirtualSerial_CDC_Interface);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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; CDC_Device_SendData(&amp;amp;VirtualSerial_CDC_Interface, (char *)recv_byte, 1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in python i read directly after the write command.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;basically the serial connection is not needed but i do need bulking to work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is anyone able to help me?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you for your time,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Greetings,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Simon&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:56:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/basic-USB-project/m-p/573840#M18902</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: basic USB project</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/basic-USB-project/m-p/573841#M18903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by L.simon on Fri Mar 28 05:58:53 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Found it!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in the function CDC_Device_SendData() the parameter CDCInterfaceInfo-&amp;gt;State.LineEncoding.BaudRateBPS is needed, if it is deleted out of the function, the program works!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My CDC program now runs without using the serial part and only the bulking part!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:56:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/basic-USB-project/m-p/573841#M18903</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:56:41Z</dc:date>
    </item>
  </channel>
</rss>

