LCP54628 USB-FS Mass Storage MCUXpresso Configuration

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

LCP54628 USB-FS Mass Storage MCUXpresso Configuration

跳至解决方案
1,782 次查看
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,

 

标签 (2)
0 项奖励
回复
1 解答
1,750 次查看
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 项奖励
回复
10 回复数
1,764 次查看
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 项奖励
回复
1,751 次查看
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 项奖励
回复
1,697 次查看
PawanNXP
Contributor II

Thanks for the article ZhangJennie,

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

Thanks,

Pawan

0 项奖励
回复
1,677 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

Which sample code?

0 项奖励
回复
1,673 次查看
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 项奖励
回复
1,667 次查看
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 项奖励
回复
1,628 次查看
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

 

标记 (1)
0 项奖励
回复
1,623 次查看
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 项奖励
回复
1,620 次查看
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 项奖励
回复
1,771 次查看
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 项奖励
回复