LPC55S69 USB host doesn't work

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

LPC55S69 USB host doesn't work

17,432 Views
kingchen-2024
Contributor I

LPC55S69 USB host doesn't work.

SW: SDK example(usb_host_msd_fatfs_bm).

HW: LPC55S69-EVK

HW setting USB0 FS host is as below.

Jumper J6 set to  FS.

Jumper J7 closed.

Connect P5 to power.

Connect device on P10 full speed micro AB connector

 

Then  make sure the following defines in usb_host_config.h  must be set like this

#define USB_HOST_CONFIG_KHCI (0U)

#define USB_HOST_CONFIG_EHCI (0U)

#define USB_HOST_CONFIG_OHCI (1U)

#define USB_HOST_CONFIG_IP3516HS (0U)

After running SW and inserting USB flash, there is no debug debug message output.

Just display "host init done".

Let me know if any suggestion.

Labels (1)
0 Kudos
Reply
26 Replies

7,178 Views
jedwards1
Contributor II

I'm experiencing the same problem with my LPC55S69-EVK Rev A2.
I've tried all the suggestions here but no luck.
Unmodified usb_host_msd_fatfs_bm, MCUXpresso IDE v11.8.1_1197, SDK v2_14_0 and hardware configured for FS.
I also have external power to P5.
As per above, I'm seeing "host init done".
It appears that there is no VBUS applied to the USB port.
Just wondering if there are any more things to try?
Thanks very much, John

 

0 Kudos
Reply

15,899 Views
jc_pacheco
NXP Employee
NXP Employee

Hi @yingbohu71. The project is default demo lpcxpressos59_host_msd_fatfs_bm from SDK 2.8.2.

EVK: LPCXpresso55S69 Rev A2.

IDE: MCUXpresso 11.2.0

I also used J-Link interface using LPCScrypt.

See image with jumper settings and video attached.

Note on image: NXP letters in board were colored by us, that's normally white.

0 Kudos
Reply

15,864 Views
yingbohu71
Contributor I

@jc_pacheco 
We tried three (3) different LPC55S69-EVK boards we ordered within one month from DigiKey. All are Rev A2 version. We are using the same IDE version 11.2.0. We deleted all the project and import the same project from SDK 2.8.2. We also tried different USB thumb drives, normally a few USB3 and at least one USB2. I got the same none-working situation. UART terminal only shows "host init done". After plugin the thumb drive, nothing on the terminal.

What is the brand of your USB thumb drive?

Could you just zip your project and post here. Maybe you are using some kind internal version? Also did you tried this on different LPC55S69-EVK?

0 Kudos
Reply

16,322 Views
jc_pacheco
NXP Employee
NXP Employee

@yingbohu71 , could you please provide a picture of your board and your setup?

Please make sure it's labeled as "Revision A2"

0 Kudos
Reply

16,300 Views
yingbohu71
Contributor I

Here are the pictures how I setup the board hardware and also the screen shot of the IDE and output

 

0 Kudos
Reply

16,285 Views
jc_pacheco
NXP Employee
NXP Employee

Basically, default configuration should work on this demo for FS USB. A few things to consider:

  • Make sure you are using the latest SDK and MCUXpresso IDE from MCUXpresso website 
  • Erase your project and start from scratch
  • Make sure your power supply is working well, please try other USB cables or other power source
  • Review all cables and USB dongle
  • Try another LPCXpresso55S69

If none of this work, please contact a local representative and try requesting another evaluation board.

0 Kudos
Reply

16,004 Views
yingbohu71
Contributor I

Here is the latest update.

1. We (I and co-worker) tested on 3 Rev A2 boards and 1 Rev A1 board with and without the 2 settings. We just bought 2 new RevA2 boards to test this.
2. Device mouse demo works fine on all 4 boards.
3. We use J-Link interface installed with LPCScrypt 2.1.1.15.
4. We notice in your video, the project has a "0" in the name, and ours doesn't.
nxp video: lpcxpresso55s69_0_host_msd_fatfs_bm
ours: lpcxpresso55s69_host_msd_fatfs_bm
5. We use latest IDE and SDK just downloaded from the website. Please (NXP) download and install both to test the same thing.
6. Try 3 boards.
7. If it works, export the working project and send to us. Send a photo of the board so we can check jumper settings.

0 Kudos
Reply

15,339 Views
yingbohu71
Contributor I

@jc_pacheco Do you have any chance to check this issue again? Three of our board have the same issue. Could you attach you project here so we can try? Did you try it on another board?

0 Kudos
Reply

15,320 Views
jc_pacheco
NXP Employee
NXP Employee

Hi @yingbohu71,

I tested this on 2 boards and also asked a colleague to test it on his board and it worked ok. I also tested with 4 different USB drives and it worked (2GB, 8GB and 32GB).

As mentioned before, I'm using the default settings on host_msd_fatfs_bm (USB FS) demo from SDK282_LPCXpresso55S69(2020-08-19). Project attached.

Have you tried also different USB OTG cable?

0 Kudos
Reply

14,842 Views
yingbohu71
Contributor I

Hi, @jc_pacheco 

Thanks very much for the reply and the efforts to validate the code. Sorry for the delay of my reply. I did download the project file and I and my colleague tried two of our boards. The problem is still there. nothing different.

We still want to try a few thing to resolve this issue.

1. are you using LPCScrypt 2.1.1.15 to prepare the board with the J-Link interface? if not, which version

2. What is the brand of your OTG cable and thumb drive so I can order them to compare the result again?

3. Can we ship one of our board to you so you can help us try the code again?

0 Kudos
Reply

16,417 Views
jc_pacheco
NXP Employee
NXP Employee

I could reproduce the issue using 0A silicon but it's not reproducible using production silicon (1B).

As stated here, it is recommended to replace Revision 0A silicon with 1B silicon on boards with older board revision than Revision A2.

0 Kudos
Reply

16,474 Views
yingbohu71
Contributor I

Hi,
I have a similar issue for the default SDK example (usb_host_msd_fatfs_bm). I am using SDK 2.8.2. my LPC55S69-EVK MCU is marked as "sSD19401B". I did not modify anything in the code, I also connect external power on P5, use P10 (USB0 FS) as host. J6 is 2-3, J7 shunt. 
I also tried the device mouse demo, it works. 

After that, I also tested the demo on HS port (I modified usb_host_config.h and enable the IP3516HS controller, changed the jumper on J6 and J7). it doesn't work either. Device demo works on that HS port.

0 Kudos
Reply

16,428 Views
yingbohu71
Contributor I

I also changed the clock to use 100MHz only. still same issue. 
I measured VBUS pin, there is no power on VBUS

0 Kudos
Reply

16,412 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

 

 I tested PLL0 100M on my side. this code can't run successful on my side.

ZhangJennie_1-1600408793482.png

 

by checking the the USB host clock init code, I change 

CLOCK_EnableUsbfs0HostClock(kCLOCK_UsbfsSrcPll1, 48000000U);

to 

CLOCK_EnableUsbfs0HostClock(kCLOCK_UsbfsSrcPll0, 48000000U);

fix the issue

ZhangJennie_0-1600408569840.png

the output on uart terminal is all successful.

 

Have a nice day,

Jun Zhang

0 Kudos
Reply

16,394 Views
yingbohu71
Contributor I

Hi,

I just tried your suggestion:
1. changed the clock to 100M

BOARD_InitPins();
BOARD_BootClockPLL100M();
BOARD_InitDebugConsole();


2. changed the USB FS clock to use kCLOCK_UsbfsSrcPll0

#if ((defined USB_HOST_CONFIG_OHCI) && (USB_HOST_CONFIG_OHCI > 0U))
CLOCK_EnableUsbfs0HostClock(kCLOCK_UsbfsSrcPll0, 48000000U);
#if ((defined FSL_FEATURE_USBFSH_USB_RAM) && (FSL_FEATURE_USBFSH_USB_RAM > 0U))
for (int i = 0; i < (FSL_FEATURE_USBFSH_USB_RAM >> 2); i++)
{
((uint32_t *)FSL_FEATURE_USBFSH_USB_RAM_BASE_ADDRESS)[i] = 0U;
}
#endif
#endif /* USB_HOST_CONFIG_OHCI */

 

I still have the same issue. I believe I am using '1B' version of the MCU. SYSCON->DIEID->REV_ID is 0x1

 

Could you share with me the log output on your side?

Also could you also check the HS port?

0 Kudos
Reply

16,339 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

my part is 1B as well.

Attached is my video.

FYI.

0 Kudos
Reply

16,332 Views
yingbohu71
Contributor I

This video is for a ScribeMotorController project. Could you double check it?

0 Kudos
Reply

16,325 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Please check again.

0 Kudos
Reply

16,297 Views
yingbohu71
Contributor I

The video is correct. Thanks

0 Kudos
Reply

16,484 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

The default SDK example(usb_host_msd_fatfs_bm) without any modification is for full speed mode.

just make sure J6 2-3 and J7 shunt for full speed mode.

Did you ever try the default project without modification?

0 Kudos
Reply