<?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: read and write in pendriver through USB communication in lpc 54018</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/read-and-write-in-pendriver-through-USB-communication-in-lpc/m-p/1594658#M51547</link>
    <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206649"&gt;@RaRo&lt;/a&gt;&amp;nbsp; yes i have done all the procedure in&amp;nbsp;lpc 54018 with the help&amp;nbsp;&lt;SPAN&gt;MCUXpresso IDE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;example code generated&amp;nbsp;MCUXpresso IDE. read and write function is not created, kindly help me the steps to read and write in&amp;nbsp;pendriver through USB communication in lpc 54018 iam using USB1 HOST.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Feb 2023 10:42:03 GMT</pubDate>
    <dc:creator>Arularasan</dc:creator>
    <dc:date>2023-02-07T10:42:03Z</dc:date>
    <item>
      <title>read and write in pendriver through USB communication in lpc 54018</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/read-and-write-in-pendriver-through-USB-communication-in-lpc/m-p/1592275#M51499</link>
      <description>&lt;P&gt;how to write and read in&amp;nbsp;pendriver through USB communication in lpc 54018&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;iam using USB1 host ?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 11:23:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/read-and-write-in-pendriver-through-USB-communication-in-lpc/m-p/1592275#M51499</guid>
      <dc:creator>Arularasan</dc:creator>
      <dc:date>2023-02-02T11:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: read and write in pendriver through USB communication in lpc 54018</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/read-and-write-in-pendriver-through-USB-communication-in-lpc/m-p/1593282#M51526</link>
      <description>&lt;P class="lia-align-justify"&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/211801"&gt;@Arularasan&lt;/a&gt;,&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Could you please check the following thread with a similar issue? &lt;A href="https://community.nxp.com/t5/LPC-Microcontrollers/I-want-to-use-USB-conection-to-read-files-from-pendrive-using/m-p/794613" target="_blank"&gt;Solved: I want to use USB conection to read files from pen... - NXP Community&lt;/A&gt;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Also, you could try using the USB examples from LPC54018 SDK, if you are using MCUXpresso IDE, click on Import SDK examples… and search for USB. You can download the SDK trough the IDE, or through the following link: &lt;A href="https://mcuxpresso.nxp.com/en/welcome" target="_blank"&gt;MCUXpresso SDK Builder&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RaulRomero_0-1675443213979.png" style="width: 427px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/209558i4D5A02243E9F1FB1/image-dimensions/427x106?v=v2" width="427" height="106" role="button" title="RaulRomero_0-1675443213979.png" alt="RaulRomero_0-1675443213979.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;[MCUXpresso IDE Quickstart Panel and SDK Import Wizard]&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;It may be necessary to define which USB are you going to use: USB1 or USB0.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Best regards, Raul.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 16:55:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/read-and-write-in-pendriver-through-USB-communication-in-lpc/m-p/1593282#M51526</guid>
      <dc:creator>RaRo</dc:creator>
      <dc:date>2023-02-03T16:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: read and write in pendriver through USB communication in lpc 54018</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/read-and-write-in-pendriver-through-USB-communication-in-lpc/m-p/1594658#M51547</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206649"&gt;@RaRo&lt;/a&gt;&amp;nbsp; yes i have done all the procedure in&amp;nbsp;lpc 54018 with the help&amp;nbsp;&lt;SPAN&gt;MCUXpresso IDE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;example code generated&amp;nbsp;MCUXpresso IDE. read and write function is not created, kindly help me the steps to read and write in&amp;nbsp;pendriver through USB communication in lpc 54018 iam using USB1 HOST.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 10:42:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/read-and-write-in-pendriver-through-USB-communication-in-lpc/m-p/1594658#M51547</guid>
      <dc:creator>Arularasan</dc:creator>
      <dc:date>2023-02-07T10:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: read and write in pendriver through USB communication in lpc 54018</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/read-and-write-in-pendriver-through-USB-communication-in-lpc/m-p/1594900#M51549</link>
      <description>&lt;P class="lia-align-justify"&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/211801"&gt;@Arularasan&lt;/a&gt;,&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Have you tried out the host_msd_fatfs_bm example? The example seems to use f_write() and f_read(), which are used for writing and reading trough FATFS and USB.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Could you please check the following reference manuals for more information in USB + FATFS applications?&lt;/P&gt;
&lt;UL class="lia-align-justify"&gt;
&lt;LI&gt;&lt;A href="https://www.nxp.com/docs/en/reference-manual/MSDFATFSAPIRM.pdf" target="_blank"&gt;MSDFATFSAPIRM, Freescale MSD FATFS API - Reference Manual&lt;/A&gt;, and&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;&lt;A href="https://www.nxp.com/docs/en/reference-manual/USBHOSTAPIRM.pdf" target="_blank"&gt;USBHOSTAPIRM, Freescale USB Stack Host API - Reference Manual&lt;/A&gt;.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P class="lia-align-justify"&gt;Best regards, Raul.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 17:15:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/read-and-write-in-pendriver-through-USB-communication-in-lpc/m-p/1594900#M51549</guid>
      <dc:creator>RaRo</dc:creator>
      <dc:date>2023-02-07T17:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: read and write in pendriver through USB communication in lpc 54018</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/read-and-write-in-pendriver-through-USB-communication-in-lpc/m-p/1605773#M51729</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206649"&gt;@RaRo&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;USB HOST demo under SDK example code ("host_msd_fatfs_bm") I&amp;nbsp;have download&amp;nbsp; but its not working !&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I&lt;SPAN&gt;&amp;nbsp;want to read and write in pen drive&amp;nbsp;through usb communication iam using USB1.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;kindly help me&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206649"&gt;@RaRo&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 04:57:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/read-and-write-in-pendriver-through-USB-communication-in-lpc/m-p/1605773#M51729</guid>
      <dc:creator>Arularasan</dc:creator>
      <dc:date>2023-02-27T04:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: read and write in pendriver through USB communication in lpc 54018</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/read-and-write-in-pendriver-through-USB-communication-in-lpc/m-p/1606290#M51738</link>
      <description>&lt;P&gt;You need a JTAG debugger to launch and debug your code running on the NXP LPC54018 board. FreeRTOS was tested using an OM40006 IoT Module. For more information about supported debuggers, see the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;User Manual for NXP LPC54018 IoT Module&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;that is available from the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/general-purpose-mcus/lpc54018-iot-module-for-the-lpc540xx-family-of-mcus:OM40007" target="_blank" rel="noopener noreferrer"&gt;&lt;SPAN&gt;OM40007 LPC54018 IoT Module&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;product page.&lt;/P&gt;&lt;H6&gt;&lt;FONT color="#FFFFFF"&gt;If you're using an OM40006 IoT Module debugger, use a converter cable to connect the 20-pin connector from the debugger to the 10-pin connector on the NXP IoT module.&lt;/FONT&gt;&lt;/H6&gt;&lt;H6&gt;&lt;FONT color="#FFFFFF"&gt;Connect the NXP LPC54018 and the OM40006 IoT Module Debugger to the USB ports on your computer using mini-USB to USB cables.&lt;/FONT&gt;&lt;/H6&gt;&lt;H6&gt;&amp;nbsp;&lt;/H6&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://filmplusapk.info/" target="_self"&gt;&lt;FONT size="1 2 3 4 5 6 7" color="#FFFFFF"&gt;filmplus app&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 18:07:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/read-and-write-in-pendriver-through-USB-communication-in-lpc/m-p/1606290#M51738</guid>
      <dc:creator>kiwisbrown</dc:creator>
      <dc:date>2023-02-27T18:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: read and write in pendriver through USB communication in lpc 54018</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/read-and-write-in-pendriver-through-USB-communication-in-lpc/m-p/1606327#M51740</link>
      <description>&lt;P class="lia-align-justify"&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/211801"&gt;@Arularasan&lt;/a&gt;,&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Just for double check, could you please check that your USB1 port is working? You could try using it like a &lt;EM&gt;device&lt;/EM&gt; with one of the USB examples.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Also, could you please check your pendrive? When you enter the pendrive to a computer, does the computer detect it? Could you please try the USB Host example with another pendrive or USB device?&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Finally, could you please test another USB Host example with the pendrive? It might be useful to try it with examples:&amp;nbsp;&lt;EM&gt;usb_host_cdc&lt;/EM&gt; and/or&amp;nbsp;&lt;EM&gt;usb_host_msd_command&lt;/EM&gt;.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Best regards, Raul.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 19:37:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/read-and-write-in-pendriver-through-USB-communication-in-lpc/m-p/1606327#M51740</guid>
      <dc:creator>RaRo</dc:creator>
      <dc:date>2023-02-27T19:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: read and write in pendriver through USB communication in lpc 54018</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/read-and-write-in-pendriver-through-USB-communication-in-lpc/m-p/2055315#M57810</link>
      <description>&lt;P&gt;usb communication in pendriver is quite difficult to use.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 07:49:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/read-and-write-in-pendriver-through-USB-communication-in-lpc/m-p/2055315#M57810</guid>
      <dc:creator>butmanufacturer</dc:creator>
      <dc:date>2025-03-04T07:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: read and write in pendriver through USB communication in lpc 54018</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/read-and-write-in-pendriver-through-USB-communication-in-lpc/m-p/2056869#M57845</link>
      <description>&lt;P&gt;The movie viewing app&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://hdoboxplus.com/" target="_self"&gt;HDO Box movies&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;I manage uses this method and it works fine,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 08:46:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/read-and-write-in-pendriver-through-USB-communication-in-lpc/m-p/2056869#M57845</guid>
      <dc:creator>butmanufacturer</dc:creator>
      <dc:date>2025-03-06T08:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: read and write in pendriver through USB communication in lpc 54018</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/read-and-write-in-pendriver-through-USB-communication-in-lpc/m-p/2270632#M59126</link>
      <description>&lt;P&gt;the microcontroller must work in &lt;STRONG&gt;USB Host mode&lt;/STRONG&gt;, because a pen drive is a &lt;STRONG&gt;USB Mass Storage Class (MSC) device&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;The LPC54018 supports &lt;STRONG&gt;USB 2.0 Full-Speed Host&lt;/STRONG&gt;, which is sufficient for standard pen drives.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Implementation overview:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Hardware requirements&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;USB Type-A connector&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;External &lt;STRONG&gt;5V VBUS supply&lt;/STRONG&gt; for the pen drive&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Proper D+ and D− connections&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;VBUS sensing recommended&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;USB Host stack&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Use &lt;STRONG&gt;NXP MCUXpresso SDK&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Enable USB Host + MSC class drivers&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Use &lt;STRONG&gt;FATFS&lt;/STRONG&gt; for file system handling&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Enumeration&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;On insertion, the USB Host enumerates the pen drive&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;The device is identified as a Mass Storage device&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Bulk-Only Transport is used for data transfer&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;File system access&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Most pen drives are formatted as &lt;STRONG&gt;FAT32&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;After mounting, standard file operations can be performed&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;APIs like f_open(), f_read(), and f_write() are used&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Use case example&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Such USB storage access is commonly used in embedded systems to store logs, media files, or cached data.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;For example, an embedded media box that streams content from platforms like &lt;A href="https://www.hdoboxappplus.com/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;HDOBOX&lt;/STRONG&gt;&lt;/A&gt; could store configuration files, subtitles, or playback logs on a USB pen drive using this method.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;Important notes:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;exFAT and NTFS are not supported by default&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;USB Host + FATFS requires sufficient RAM&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Add delay after device attachment before mounting&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 01 Jan 2026 20:31:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/read-and-write-in-pendriver-through-USB-communication-in-lpc/m-p/2270632#M59126</guid>
      <dc:creator>Tony889</dc:creator>
      <dc:date>2026-01-01T20:31:45Z</dc:date>
    </item>
  </channel>
</rss>

