I want to develop mass storage device using LPC2148.I am just referring code from Keil for USBMem. My problem is - I get Get_descriptor command from PC to which I respond with device descriptor. On receiving 8th byte it generates Reset. Then I get Set_address command. On response to it, I execute Set Address command in protocol engine. Then again I get Get_descriptor command (It should actually have index field of 18 but I receive with 64). Again after 8th byte it generates Reset and again gives Set_address command instead of Get_descriptor command for Configuration descriptor. What can be the problem?
Tsuneo,
Sorry....Out of topic:
You should write a book about USB specifically in MCUs.
I know there are some good books about General USB, like: "USB Complete". But I think that your knowledge and excellent communication skills could produce a really good book.
Didn't you think about it?
Tsuneo, I agree! Bradford
http://www.keil.com/forum/docs/thread16320.asp