LCP54628 USB-FS Mass Storage MCUXpresso Configuration

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LCP54628 USB-FS Mass Storage MCUXpresso Configuration

ソリューションへジャンプ
1,781件の閲覧回数
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,749件の閲覧回数
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,763件の閲覧回数
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,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 件の賞賛
返信
1,696件の閲覧回数
PawanNXP
Contributor II

Thanks for the article ZhangJennie,

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

Thanks,

Pawan

0 件の賞賛
返信
1,676件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Which sample code?

0 件の賞賛
返信
1,672件の閲覧回数
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,666件の閲覧回数
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,627件の閲覧回数
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,622件の閲覧回数
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,619件の閲覧回数
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,770件の閲覧回数
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 件の賞賛
返信