<?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: Problem USB Massstorage</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-USB-Massstorage/m-p/582845#M20754</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Patrick_W on Wed Dec 30 07:12:06 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to solve the Problem by using the function &lt;/SPAN&gt;&lt;I&gt;Endpoint_Streaming&lt;/I&gt;&lt;SPAN&gt;. The result is nearly the same (Device shows up, files look okay), but now i stuck in the following while loop:&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;while(!Endpoint_IsReadWriteAllowed());&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So i checked the Endpoint defines. For the IN Endpoint there is nr. 5 defined (Bulk In, manual page 224).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The OUT Endpoint is defined as nr. 2 (Interrupt Out, manual page 224).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this the right configuration? Or must the OUT EP also be an Bulk EP (for example Nr. 4).&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 20:23:41 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T20:23:41Z</dc:date>
    <item>
      <title>Problem USB Massstorage</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-USB-Massstorage/m-p/582841#M20750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Patrick_W on Wed Dec 30 02:05:20 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hey Guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;first to the specs: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i am working on Win 7 with LPCXpresso V7.6.2. The used processor is a LPC1769. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For the USB communication i use the LPCUSBLib v.098.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My target is to generate a "virtuel" Massstorage Device on the internal RAM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This works so far that the Device shows up under Windows. If i open the Device it also shows the three files i generated on the device.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The files got a Size of 512B (which is although correct).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Problem is when i open the Device it runs into an endless loop. The while-loop is located in &lt;/SPAN&gt;&lt;I&gt;Endpoint_Read_Stream_LE&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think this topic is about the same problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://"&gt;https://www.lpcware.com/content/forum/lpc1769-usb-cannot-write&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has somebody an idea what could be the problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wish a happy New Year.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Patrick&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:23:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-USB-Massstorage/m-p/582841#M20750</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem USB Massstorage</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-USB-Massstorage/m-p/582842#M20751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Patrick_W on Wed Dec 30 02:20:06 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know why i cannot format the code, but the snippet shows the &lt;/SPAN&gt;&lt;I&gt;Endpoint_Read_Stream_LE&lt;/I&gt;&lt;SPAN&gt; function&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;
uint16_t i;
if (endpointselected==ENDPOINT_CONTROLEP){
if(usb_data_buffer_size == 0) return ENDPOINT_RWSTREAM_IncompleteTransfer;
}else
if(usb_data_buffer_OUT_size == 0) return ENDPOINT_RWSTREAM_IncompleteTransfer;

for(i=0;i&amp;lt;Length;i++)
{
#if defined(__LPC17XX__) || defined(__LPC177X_8X__)
if (endpointselected!=ENDPOINT_CONTROLEP)
while(usb_data_buffer_OUT_size == 0); // Current Fix for LPC17xx, havent checked for others
#endif
((uint8_t*)Buffer)&lt;I&gt; = Endpoint_Read_8();
}
return ENDPOINT_RWSTREAM_NoError;
&lt;/I&gt;&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:23:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-USB-Massstorage/m-p/582842#M20751</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem USB Massstorage</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-USB-Massstorage/m-p/582843#M20752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Wed Dec 30 04:40:57 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;An lpc1769 has 64k of internal ram. That is going to be reduced by the data, heap and stack used by your application. So how can you have files of size 512k?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:23:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-USB-Massstorage/m-p/582843#M20752</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem USB Massstorage</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-USB-Massstorage/m-p/582844#M20753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Patrick_W on Wed Dec 30 07:02:17 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Ah is an error from my side. This should be 512 Bytes (size of a sector and a cluster). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The whole device has an capacity of 8kB.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry my fault. I will edit this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:23:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-USB-Massstorage/m-p/582844#M20753</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem USB Massstorage</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-USB-Massstorage/m-p/582845#M20754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Patrick_W on Wed Dec 30 07:12:06 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to solve the Problem by using the function &lt;/SPAN&gt;&lt;I&gt;Endpoint_Streaming&lt;/I&gt;&lt;SPAN&gt;. The result is nearly the same (Device shows up, files look okay), but now i stuck in the following while loop:&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;while(!Endpoint_IsReadWriteAllowed());&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So i checked the Endpoint defines. For the IN Endpoint there is nr. 5 defined (Bulk In, manual page 224).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The OUT Endpoint is defined as nr. 2 (Interrupt Out, manual page 224).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this the right configuration? Or must the OUT EP also be an Bulk EP (for example Nr. 4).&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:23:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-USB-Massstorage/m-p/582845#M20754</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem USB Massstorage</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-USB-Massstorage/m-p/582846#M20755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Patrick_W on Tue Jan 12 00:55:11 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Update: This hasn't solved the problem. The defined 2 is correct because it defines the logical &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EP. The physical is then calculated in the configuration function.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:23:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-USB-Massstorage/m-p/582846#M20755</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:23:42Z</dc:date>
    </item>
  </channel>
</rss>

