<?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 LPC1769 USB cannot write. in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-USB-cannot-write/m-p/578787#M19892</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Mega on Mon Jun 29 11:22:31 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Im using nxpusblib 0.98 since lpcopen doesn't contain Massive Storage Device example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can read but cannot write.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is this loop on EndpointStream_LPC.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"#if defined(__LPC17XX__) || defined(__LPC177X_8X__)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if (endpointselected!=ENDPOINT_CONTROLEP)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;while(usb_data_buffer_OUT_size == 0); /* Current Fix for LPC17xx, havent checked for others */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#endif&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to remove the code in red zone and starts to write. But it damages sectors 8192(with CSD info). If I eject the device at the next time I connect the device Windows asks to format.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone got any idea?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Daniel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 20:19:21 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T20:19:21Z</dc:date>
    <item>
      <title>LPC1769 USB cannot write.</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-USB-cannot-write/m-p/578787#M19892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Mega on Mon Jun 29 11:22:31 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Im using nxpusblib 0.98 since lpcopen doesn't contain Massive Storage Device example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can read but cannot write.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is this loop on EndpointStream_LPC.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"#if defined(__LPC17XX__) || defined(__LPC177X_8X__)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if (endpointselected!=ENDPOINT_CONTROLEP)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;while(usb_data_buffer_OUT_size == 0); /* Current Fix for LPC17xx, havent checked for others */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#endif&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to remove the code in red zone and starts to write. But it damages sectors 8192(with CSD info). If I eject the device at the next time I connect the device Windows asks to format.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone got any idea?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Daniel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:19:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-USB-cannot-write/m-p/578787#M19892</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:19:21Z</dc:date>
    </item>
  </channel>
</rss>

