Using USB communication How to interface usb driver with lpc 54018 controller ?
Please send the following steps ....
Solved! Go to Solution.
HI Arularasan
I tested host_msd_fatfs for both USB0 and USB1. They both work well.
Please check the jumper setting.
For USB0 (USB FS), board jumper settings are as below
J9 2-3 full speed mode; J10 shunt full speed; J11 2-3, J12 2-3, J13 2-3 , need provide external power through J1.
For USB1 (USB HS), board jumper settings are as below
J9 1-2 high speed mode; J10 open high speed; J11 2-3, J12 2-3, J13 2-3 , need provide external power through J1.
As the default code is for FS USB. To work with HS USB, revise source\usb_host_config.h macro as below :
Jun Zhang
@ZhangJennie thanks for your reply.
i am using USB1
there is no read and write function in mcuxpresso demo code .only initialization functions are there.
kindly help me to read and write in pendrive through usb communication in lpc54018.
have a nice day.
Hi @Arularasan
Do you use USB1 or USB0?
There are some USB demo codes under MCUXpresso SDK folder. By default, the demo code is for USB0 (FS USB). If you use USB1, please follow below article to switch to USB1 code:
For HW design, I suggest you refer EVK schematic:
https://www.nxp.com/downloads/en/schematics/LPCXpresso546xx-540xx.zip
Have a nice day,
Jun Zhang
@ZhangJennie 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 @ZhangJennie
in debug mode
it prints only " host init done "
when I plug in u disk in USB1 nothing is printed in terminal.
please reply @ZhangJennie
I tested host_msd_fatfs_bm demo with LPC55s69 demo board, it ran well.
While on LPC54018 board, I got the same as yours. I am checking the reason. Will let you know as soon as I find it out.
Thanks,
Jun Zhang
@ZhangJennie iam waiting for your reply..
thank you.
HI Arularasan
I tested host_msd_fatfs for both USB0 and USB1. They both work well.
Please check the jumper setting.
For USB0 (USB FS), board jumper settings are as below
J9 2-3 full speed mode; J10 shunt full speed; J11 2-3, J12 2-3, J13 2-3 , need provide external power through J1.
For USB1 (USB HS), board jumper settings are as below
J9 1-2 high speed mode; J10 open high speed; J11 2-3, J12 2-3, J13 2-3 , need provide external power through J1.
As the default code is for FS USB. To work with HS USB, revise source\usb_host_config.h macro as below :
Jun Zhang
@ZhangJennie thanks for your support.
After modify demo code macro definition in usb_host_config.h and jumpers to USB1 its working
thank you...
You are welcome.