how to write and read in pendriver through USB communication in lpc 54018.
iam using USB1 host ?
usb communication in pendriver is quite difficult to use.
The movie viewing app HDO Box movies I manage uses this method and it works fine,
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 User Manual for NXP LPC54018 IoT Module that is available from the OM40007 LPC54018 IoT Module product page.
Hello @Arularasan,
Could you please check the following thread with a similar issue? Solved: I want to use USB conection to read files from pen... - NXP Community
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: MCUXpresso SDK Builder.
[MCUXpresso IDE Quickstart Panel and SDK Import Wizard]
It may be necessary to define which USB are you going to use: USB1 or USB0.
Best regards, Raul.
@RaRo yes i have done all the procedure in lpc 54018 with the help MCUXpresso IDE.
example code generated MCUXpresso IDE. read and write function is not created, kindly help me the steps to read and write in pendriver through USB communication in lpc 54018 iam using USB1 HOST.
Hello @Arularasan,
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.
Could you please check the following reference manuals for more information in USB + FATFS applications?
Best regards, Raul.
Hello @Arularasan,
Just for double check, could you please check that your USB1 port is working? You could try using it like a device with one of the USB examples.
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?
Finally, could you please test another USB Host example with the pendrive? It might be useful to try it with examples: usb_host_cdc and/or usb_host_msd_command.
Best regards, Raul.