USB Host example errors for LPC17xx

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

USB Host example errors for LPC17xx

1,847 次查看
felipeavila
Contributor I

Hello, i'm trying to run USB Host code example provided by NXP for LPC17xx.
I have LPC1768 and I'm using the mass storage example.
I already check my board, it doesn't matter what I do I always get an error returning from "USBH_MSC_DriveGetMediaStatus" function.
USBH_Initialize returns OK.

The USB led works great, when I put a pendrive it blinks and thn stays On, and the opposite when flashdrive is removed.
Does anyone have an idea?

0 项奖励
回复
3 回复数

1,501 次查看
jeremyzhou
NXP Employee
NXP Employee
Thank you for your interest in NXP Semiconductor products and 
for the opportunity to serve you.
I was wondering if you can share compile-able demo, then I can replicate the issue on my site.
I'm looking forward to your reply.

Have a great day,
TIC

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

1,501 次查看
felipeavila
Contributor I

Hi jeremyzhou‌ !

The example I've tested is exactly the same provided in Keil MDK5 (can be found in this software pack MDK5 - Keil MCB1700 ).

I found online another code, from uVision 4, and this one works better, what eliminates any hardware issue possibilities.

Thank you!

0 项奖励
回复

1,501 次查看
felipeavila
Contributor I

The error is 33 : usbDeviceError

But the USB Led is ON! Indicating that the device is detected!

0 项奖励
回复