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?
Sorry, I forgot to write which error: usbDeviceError
Running Keyboard example I get the same thing.
Can you explain me how works the USB led pin in LPC17xx? Because it blinks when I insert some device in USB port.
So Have you looked-up the meaning of that error in the documentation?
Have you traced through the code to find the possible cause(s) of that error?
"explain me how works the USB led pin in LPC17xx?"
Again, what does the documentation tell you?
There is a poor documentation about it. It says nothing otherwise I would not be here.;