LCP54628 USB-FS Mass Storage MCUXpresso Configuration

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

LCP54628 USB-FS Mass Storage MCUXpresso Configuration

Jump to solution
1,044 Views
PawanNXP
Contributor II

Hello,

I am new to the NXP Family. I am trying to interface a pen-drive with the LCP54628 USB0-FS.

I went through the example project, host_msd_fatfs_bm, in which the pen-drive interface is demonstrated for USB HS.

I seek help in:

1) The changes required with the example project host_msd_fatfs_bm, to make it work with USB0-FS.

2) Guidance with MCUXpresso Configuration for a new project for USB0-FS-Host mode - to interface with the pen drive.

Thanks,

 

Labels (2)
0 Kudos
1 Solution
1,012 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi 

To work with USB FS host, please make sure JP10 installed to provide vbus to USB0

ZhangJennie_0-1678173361794.png

ZhangJennie_1-1678173665438.png

We don't have guide of configurate pen drive. 

I ever wrote article of Using ConfigTool to create USB Project From Start. You can refer it to play your own application.

https://community.nxp.com/t5/LPC-Microcontrollers-Knowledge/Using-ConfigTool-to-create-USB-Project-F...

Jun Zhang

 

View solution in original post

0 Kudos
10 Replies
1,026 Views
PawanNXP
Contributor II

Hello ZhangJennie,

Thanks for your reply. I tried the steps mentioned by Soledad but as observed by the user, I also see "host init done" with Pen drive connected to J3 (USB0 FS) and JP9 connected towards USB FS.

 

However, on doing the following changes:

1) Pen Drive Connected to USB HS

2) JP 9 connected towards USB HS 

3) in usb_host_config.h, make

      a) #define USB_HOST_CONFIG_OHCI (0U)

      b) #define USB_HOST_CONFIG_IP3516HS (1U)

I observe that the pen drive is detected and test runs successfully.

 

I request you to try it out on your end.

I need:

1) host_msd_fatfs_bm or host_msd_fatfs_freertos working in USB0-FS Mode

2) Tutorial / steps to configure pen drive interface through MCUXpresso Configurator.

Please suggest.

Thanks.

0 Kudos
1,013 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi 

To work with USB FS host, please make sure JP10 installed to provide vbus to USB0

ZhangJennie_0-1678173361794.png

ZhangJennie_1-1678173665438.png

We don't have guide of configurate pen drive. 

I ever wrote article of Using ConfigTool to create USB Project From Start. You can refer it to play your own application.

https://community.nxp.com/t5/LPC-Microcontrollers-Knowledge/Using-ConfigTool-to-create-USB-Project-F...

Jun Zhang

 

0 Kudos
959 Views
PawanNXP
Contributor II

Thanks for the article ZhangJennie,

Any luck with running the example code in USB-FS mode?

Thanks,

Pawan

0 Kudos
939 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Which sample code?

0 Kudos
935 Views
PawanNXP
Contributor II

Hi ZhangJennie,

 

host_msd_fatfs_bm or host_msd_fatfs_freertos working in USB0-FS Mode.

 

I had tried the above examples in usb hs mode. But need to make it work in fs mode. See the thread above.. 

0 Kudos
929 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

The defalut demo code is for USB0 ( FS USB)

To switch to USB1 (HS USB), follow this article

https://community.nxp.com/t5/LPC-Microcontrollers-Knowledge/LPC-ALL-Summary-of-Switching-USB-demo-fr...

"

2.2   Update USB host demo: USB0->USB1

"

Thanks

Jun Zhang

 

 

0 Kudos
890 Views
PawanNXP
Contributor II

Hi, 

I have double checked. on flashing the default demo code, the control is stuck at host init done.

Can you please check at your end?

 

Pawan

 

Tags (1)
0 Kudos
885 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

I alreay tested.

With a correct demo board setting (as I showed in previous photo), I can see the same output as readme.pdf file shows.

If the jumper setting is not correct, it's possiable only see host init.

The demo code has no issue, please check your board jumper setting, or test it with another demo board.

Thanks

Jun Zhang

0 Kudos
882 Views
PawanNXP
Contributor II

Thanks ZhangJennie,

 

I was missing the JP10 connection. As you said, the NXP example works perfectly, as it is.

I overlooked your suggestion, which was provided long back. Appreciate your support!

 

Thanks,

Pawan

0 Kudos
1,033 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi PawanNXP 

please check soledad answer of this thread. It includes photos of board setting. Please make sure your board settings are the same.

https://community.nxp.com/t5/MCUXpresso-IDE/Can-t-run-lpcxpresso54608-usb-examples-usb-host-msd-fatf...

If the problem persists, please let me know. I can get a board and test it tomorrow.

Thanks,

Jun Zhang

0 Kudos