<?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 Re: Porting nxpUSBlib to Rowley CrossStudio for LPC1788 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Porting-nxpUSBlib-to-Rowley-CrossStudio-for-LPC1788/m-p/524180#M6816</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CarlMle on Thu Apr 05 01:25:24 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I ran out of time trying to port nxpusblib, instead I used the simple usb host example in the cmsis library. This works and I had FAT16 formatted USB sticks mounted and writing files to them. Also as the name suggests is a lot simpler!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But most USB sticks are FAT32 formatted so I took this example : &lt;/SPAN&gt;&lt;BR /&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.siwawi.arubi.uni-kl.de%2Favr_projects%2Farm_projects%2Farm_memcards%2Findex.html" rel="nofollow" target="_blank"&gt;http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/arm_memcards/index.html&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ported Fatfs, modified the diskio and now have fat32 working with a usb stick.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;While porting the key thing to remember was to use the linker command "__attribute__ ((section(".bss2")));" to assign USB buffers to the correct memory space in the AHBSRAM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rowley have recently released an update to their "NXP LPC1000 CPU Support Package" that includes the fixed AHBSRAM memory maps I told them about :)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 16:48:20 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T16:48:20Z</dc:date>
    <item>
      <title>Porting nxpUSBlib to Rowley CrossStudio for LPC1788</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Porting-nxpUSBlib-to-Rowley-CrossStudio-for-LPC1788/m-p/524176#M6812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CarlMle on Thu Mar 22 02:18:39 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm working on porting the nxpUSBlib to work with Rowley, I thought I would share my experience/pain.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Specifically I need to get USB host working so my device can write to a USB Memory stick.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I created a new solution, imported the usblib files and latest CMSIS and for now the hosthid example. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I added the preprocessor defines : USB_HOST_ONLY , __LPC17XX__&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and hit build.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The first issue is CrossStudio doesn't like the __DATA(USBRAM_SECTION) statement that tells the linker to place the varibles in to AHBSRAM the Peripheral SRAM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To fix this ....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I looked at the flash_placement.xml file, I couldn't see AHBSRAM but there is a section called &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;MemorySegment name="$(RAM2_NAME:RAM2)"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but I could find no mention of RAM2 in the LPC1788_MemoryMap.xml, so I changed that line to :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"&amp;lt;MemorySegment name="AHBSRAM"&amp;gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I changed "__DATA(USBRAM_SECTION)" this to : "__attribute__ ((section(".bss2")))";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hit build and success it links, but examining the varible locations they were not in the correct place, AHBSRAM starts at 0x20000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking at the MemoryMap again the AHBSRAM start location is incorrect for the LPC1788, so I've changed it to :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;MemorySegment size="0x8000" access="Read/Write" start="0x20000000" name="AHBSRAM"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rebuilt and my variables are now correctly located in AHBSRAM. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I still have some work to do though as it hardfaults enabling clocks for the OTG/AHB, some my next job is to fix the peripheral initialisation I think.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:48:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Porting-nxpUSBlib-to-Rowley-CrossStudio-for-LPC1788/m-p/524176#M6812</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Porting nxpUSBlib to Rowley CrossStudio for LPC1788</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Porting-nxpUSBlib-to-Rowley-CrossStudio-for-LPC1788/m-p/524177#M6813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CarlMle on Thu Mar 22 02:27:47 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hrmm the forum stripped my xml chunks out and I can't see the ability to edit a post, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So heres the important bits, this time using the code tag&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;flash_placement.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;MemorySegment name="$(RAM2_NAME:RAM2)"&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Changed to :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;MemorySegment name="AHBSRAM"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC1788_MemoryMap.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;MemorySegment size="0x8000" access="Read/Write" start="0x2007C000" name="AHBSRAM"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Changed to :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;MemorySegment size="0x8000" access="Read/Write" start="0x20000000" name="AHBSRAM"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:48:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Porting-nxpUSBlib-to-Rowley-CrossStudio-for-LPC1788/m-p/524177#M6813</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Porting nxpUSBlib to Rowley CrossStudio for LPC1788</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Porting-nxpUSBlib-to-Rowley-CrossStudio-for-LPC1788/m-p/524178#M6814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by tuong on Mon Mar 26 21:48:19 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Dear CarlMIe,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is wonderfull!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How is your progress now? Any pain comes? :D&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FYI, the LPC1788 and LPC175x_6x have same USB core, but LPC1788 has 2 USB ports, so you may need to modify a bit to be able to switch between them or fixed to 1 port only under the HAL layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tuong Nguyen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:48:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Porting-nxpUSBlib-to-Rowley-CrossStudio-for-LPC1788/m-p/524178#M6814</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Porting nxpUSBlib to Rowley CrossStudio for LPC1788</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Porting-nxpUSBlib-to-Rowley-CrossStudio-for-LPC1788/m-p/524179#M6815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by cakmakmurat2000 on Wed Apr 04 07:16:44 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 use nxpUSBLib on HOST HID mode with LPC1768 and its working. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And now I want to use nxpUSBLib with LPC1788 and I modified Register Names and pins etc according to LPC1788. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Library can sense device connection but it cant get Writebackdonehead after Control Transfer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any sample with 1788 or &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;what can I do? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:48:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Porting-nxpUSBlib-to-Rowley-CrossStudio-for-LPC1788/m-p/524179#M6815</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Porting nxpUSBlib to Rowley CrossStudio for LPC1788</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Porting-nxpUSBlib-to-Rowley-CrossStudio-for-LPC1788/m-p/524180#M6816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CarlMle on Thu Apr 05 01:25:24 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I ran out of time trying to port nxpusblib, instead I used the simple usb host example in the cmsis library. This works and I had FAT16 formatted USB sticks mounted and writing files to them. Also as the name suggests is a lot simpler!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But most USB sticks are FAT32 formatted so I took this example : &lt;/SPAN&gt;&lt;BR /&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.siwawi.arubi.uni-kl.de%2Favr_projects%2Farm_projects%2Farm_memcards%2Findex.html" rel="nofollow" target="_blank"&gt;http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/arm_memcards/index.html&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ported Fatfs, modified the diskio and now have fat32 working with a usb stick.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;While porting the key thing to remember was to use the linker command "__attribute__ ((section(".bss2")));" to assign USB buffers to the correct memory space in the AHBSRAM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rowley have recently released an update to their "NXP LPC1000 CPU Support Package" that includes the fixed AHBSRAM memory maps I told them about :)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:48:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Porting-nxpUSBlib-to-Rowley-CrossStudio-for-LPC1788/m-p/524180#M6816</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Porting nxpUSBlib to Rowley CrossStudio for LPC1788</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Porting-nxpUSBlib-to-Rowley-CrossStudio-for-LPC1788/m-p/524181#M6817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by tuong on Tue Apr 10 20:49:17 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Dear Cakmakmurat2000,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems like you did prepare a control transfer but nothing is sent on USB bus. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Which environment are you running? LPCXpresso or Keil? Can you check the address of:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; - USB_ControlRequest&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; - ohci_data&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;These variables provide the buffer address for the TDs. As I know, the USB core requires&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;these address located on Peripheral RAM, ex. 0x20000000.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tuong Nguyen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:48:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Porting-nxpUSBlib-to-Rowley-CrossStudio-for-LPC1788/m-p/524181#M6817</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Porting nxpUSBlib to Rowley CrossStudio for LPC1788</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Porting-nxpUSBlib-to-Rowley-CrossStudio-for-LPC1788/m-p/524182#M6818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by DiBosco on Mon Jun 25 01:25:31 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to get the VCP example working with Crossworks. I have it working on Xpresso, but would really like to use Crossworks for a whole host of reasons. However, I am just getting loads of errors. I created a new project, put VirtualSerial.c and Descriptors.c as the source file and added paths for the headers. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get errors such as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;unknown type name ‘USB_CDC_Descriptor_FunctionalHeader_t’&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which you'd think would be a header issue, but I am sure the relevant file is in the include path. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would you mind giving more detail about how you got the projects in to Crossworks please? Would be most grateful for any help. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:48:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Porting-nxpUSBlib-to-Rowley-CrossStudio-for-LPC1788/m-p/524182#M6818</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:48:22Z</dc:date>
    </item>
  </channel>
</rss>

