<?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>topic How do I get started with USB on lpc4370 (lpc link v2)? in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-do-I-get-started-with-USB-on-lpc4370-lpc-link-v2/m-p/586899#M21512</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by nmz787 on Sat Jan 18 16:48:25 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm looking to send lots of data from the ADC, I'd like error-correction (or at least something like a CRC and a packet re-send) so no streamed packets are dropped, and maybe a compression algorithm if the data throughput starts to get high enough.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've found some USB examples, but they don't mention anything about data streaming and making sure there's no dropped packets.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[1] mentions "LPCUSBLib, an open-source USB device and host stack", but clicking on "LPCUSBLib" [2] brings up a page with a download link along with a red banner stating: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"The nxpUSBlib software package is now obsoleted by the new LPCOpen Platform which can be found here." &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;clicking "here" just redirects back to [1]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;1. &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%2Flpcopen-platform-nxp-lpc-microcontrollers" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/project/lpcopen-platform-nxp-lpc-microcontrollers&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;2. &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%2Fnxpusblib" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/project/nxpusblib&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From there clicking "Click here to go to the LPCOpen product family download page"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and then clicking "LPCOpen v2.xx for LPC43xx family devices" finally takes me to:&lt;/SPAN&gt;&lt;BR /&gt;&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%2Fnxpfile%2Flpcopen-software-development-platform-lpc43xx-packages" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/nxpfile/lpcopen-software-development-platform-lpc43xx-packages&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;But downloading &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%2Fsystem%2Ffiles%2Flpcopen_2_04_lpcxpresso_nxp_lpclink2_4370.zip" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/system/files/lpcopen_2_04_lpcxpresso_nxp_lpclink2_4370.zip&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(LPC-Link 2 (LPC4370) board v2.04)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;doesn't actually seem to include a USB demo. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;:(&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:12:09 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:12:09Z</dc:date>
    <item>
      <title>How do I get started with USB on lpc4370 (lpc link v2)?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-do-I-get-started-with-USB-on-lpc4370-lpc-link-v2/m-p/586899#M21512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by nmz787 on Sat Jan 18 16:48:25 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm looking to send lots of data from the ADC, I'd like error-correction (or at least something like a CRC and a packet re-send) so no streamed packets are dropped, and maybe a compression algorithm if the data throughput starts to get high enough.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've found some USB examples, but they don't mention anything about data streaming and making sure there's no dropped packets.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[1] mentions "LPCUSBLib, an open-source USB device and host stack", but clicking on "LPCUSBLib" [2] brings up a page with a download link along with a red banner stating: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"The nxpUSBlib software package is now obsoleted by the new LPCOpen Platform which can be found here." &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;clicking "here" just redirects back to [1]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;1. &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%2Flpcopen-platform-nxp-lpc-microcontrollers" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/project/lpcopen-platform-nxp-lpc-microcontrollers&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;2. &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%2Fnxpusblib" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/project/nxpusblib&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From there clicking "Click here to go to the LPCOpen product family download page"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and then clicking "LPCOpen v2.xx for LPC43xx family devices" finally takes me to:&lt;/SPAN&gt;&lt;BR /&gt;&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%2Fnxpfile%2Flpcopen-software-development-platform-lpc43xx-packages" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/nxpfile/lpcopen-software-development-platform-lpc43xx-packages&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;But downloading &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%2Fsystem%2Ffiles%2Flpcopen_2_04_lpcxpresso_nxp_lpclink2_4370.zip" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/system/files/lpcopen_2_04_lpcxpresso_nxp_lpclink2_4370.zip&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(LPC-Link 2 (LPC4370) board v2.04)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;doesn't actually seem to include a USB demo. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;:(&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:12:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-do-I-get-started-with-USB-on-lpc4370-lpc-link-v2/m-p/586899#M21512</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get started with USB on lpc4370 (lpc link v2)?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-do-I-get-started-with-USB-on-lpc4370-lpc-link-v2/m-p/586900#M21513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by nmz787 on Sat Jan 18 16:57:47 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess I found this, will take a look now and try compiling it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2Fembeddedartists%2Flabtool" rel="nofollow" target="_blank"&gt;https://github.com/embeddedartists/labtool&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:12:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-do-I-get-started-with-USB-on-lpc4370-lpc-link-v2/m-p/586900#M21513</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get started with USB on lpc4370 (lpc link v2)?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-do-I-get-started-with-USB-on-lpc4370-lpc-link-v2/m-p/586901#M21514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by nmz787 on Sun Jan 19 03:28:33 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;well I found the Keil uVision project file in "labtool\fw\program\uVision"... using the LPC Link 2 config tool I flashed the CMSIS-DAP image, then installed JP1 and unplugged then replugged USB. I'd previously installed Keil&amp;nbsp; uVision MDK lite (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.keil.com%2Fdownload%2Fproduct%2F" rel="nofollow" target="_blank"&gt;https://www.keil.com/download/product/&lt;/A&gt;&lt;SPAN&gt;) so I opened the labtool uVision project file, clicked on the little sparkly magic wand (the Target Options button) to the right of where it said "Internal SRAM". When the option dialog came up I went to the Debug tab and changed the drop down menu to the right of "Use" to CMSIS-DAP Debugger, then clicked Settings and saw my debugger was detected.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But when I clicked build, it said the output was greater than the lite version compilation limit of 32kB.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.\Internal_SRAM\firmware.axf: error: L6050U: The code size of this image (37118 bytes) exceeds the maximum allowed for this version of the linker.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;Checking the labtool provided binary (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.embeddedartists.com%2Fsites%2Fdefault%2Ffiles%2Fsupport%2Fapp%2Flabtool%2Flabtool_binaries_2013-10-30.zip" rel="nofollow" target="_blank"&gt;http://www.embeddedartists.com/sites/default/files/support/app/labtool/labtool_binaries_2013-10-30.zip&lt;/A&gt;&lt;SPAN&gt;) firmware.bin in Windows 7 shows as 39.3KB (though I seem to have run into Windows reporting file size differently in the past).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;I installed the Labtool installer (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.embeddedartists.com%2Fsites%2Fdefault%2Ffiles%2Fsupport%2Fapp%2Flabtool%2FInstall%2520LabTool%25201.1.exe" rel="nofollow" target="_blank"&gt;http://www.embeddedartists.com/sites/default/files/support/app/labtool/Install%20LabTool%201.1.exe&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then opened the LPC Link2 Config Tool, and unlocked Link2 function from the File menu, then clicked Add Step, selected the Algo from the LPC Link2 Config Tool file directory programming_algos, set the File path to the Labtool firmware.bin, set the address to 0x14000000 to program the SPIFI, clicked "Region erase" and "Verify image after programming by reading it back", then finally clicked "Start". &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Programming went fine, and after removing USB and plugging back in, Windows was looking for Labtool drivers to install. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After that finished I opened the Labtool program and it found the device, and I started streaming data. Since I don't actually have a labtool, I don't have any analog front-end or pins for digital sensing, so I couldn't really see much but a little noise on the ADC channel.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess I'll try getting the uVision labtool project running in LPCXpresso next, since it seems like a decent platform to start from since it has the USB and ADCHS (used to be called VADC). I don't know if it's a multi-core project yet or not though.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:12:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-do-I-get-started-with-USB-on-lpc4370-lpc-link-v2/m-p/586901#M21514</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get started with USB on lpc4370 (lpc link v2)?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-do-I-get-started-with-USB-on-lpc4370-lpc-link-v2/m-p/586902#M21515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by nmz787 on Wed Jan 22 15:06:55 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Support? Can anyone comment?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:12:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-do-I-get-started-with-USB-on-lpc4370-lpc-link-v2/m-p/586902#M21515</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get started with USB on lpc4370 (lpc link v2)?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-do-I-get-started-with-USB-on-lpc4370-lpc-link-v2/m-p/586903#M21516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by r1200gs on Mon May 26 19:31:10 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Any further luck with this? I'm headed down the same path and ran into similar frustrations.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I really want reliable ADC sampling/transfer with a rate in the 'high speed' USB range.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I gave up on the LabTool path. Lots more stuff going on there than I want to try and understand (i.e. Qt). Turns out there is a USB stack in ROM on the LPC4370 which looks simpler to use than any USB stuff I have seen to date.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the USB examples in the 'usbd_rom_*' (in the example group with 'periph_blinky') are a pretty good place to start.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm wishing they'd just include a compiled version of LPCUsbTest.exe with the 'usbd_rom_bwtest' example and our question would be easily answered. Instead I'm off on a twisted path of trying to port that to the 4370 myself as I don't see a 4370 version.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm really tempted to start with the 'cypress ez-usb cocoa' app note as a base for the host side. Seems easier and more where I want to go anyway.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:12:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-do-I-get-started-with-USB-on-lpc4370-lpc-link-v2/m-p/586903#M21516</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:12:12Z</dc:date>
    </item>
  </channel>
</rss>

