read and write in pendriver through USB communication in lpc 54018

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

read and write in pendriver through USB communication in lpc 54018

2,220 Views
Arularasan
Contributor II

how to write and read in pendriver through USB communication in lpc 54018.

iam using USB1 host ?

Labels (1)
0 Kudos
Reply
8 Replies

844 Views
butmanufacturer
Contributor II

usb communication in pendriver is quite difficult to use.

0 Kudos
Reply

830 Views
butmanufacturer
Contributor II

The movie viewing app HDO Box movies I manage uses this method and it works fine,

0 Kudos
Reply

2,006 Views
kiwisbrown
Contributor I

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.

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.
Connect the NXP LPC54018 and the OM40006 IoT Module Debugger to the USB ports on your computer using mini-USB to USB cables.
 

 

 

filmplus app

0 Kudos
Reply

2,199 Views
RaRo
NXP TechSupport
NXP TechSupport

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.

RaulRomero_0-1675443213979.png

[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.

0 Kudos
Reply

2,179 Views
Arularasan
Contributor II

@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.

0 Kudos
Reply

2,169 Views
RaRo
NXP TechSupport
NXP TechSupport

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.

0 Kudos
Reply

2,015 Views
Arularasan
Contributor II

 @RaRo   thanks for your reply.

USB HOST demo under SDK example code ("host_msd_fatfs_bm") I have download  but its not working !

I want to read and write in pen drive through usb communication iam using USB1. 

kindly help me @RaRo 

0 Kudos
Reply

2,002 Views
RaRo
NXP TechSupport
NXP TechSupport

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.

0 Kudos
Reply