Dear,
I'm new to USB and learning USB by reading and trying to get the usb host lite source up and running on my EA LPC2478 board.
So far, I was able to read and write data from a usb stick. I'm now trying to send commands like in "USBCmdCode = 0x00D00500; // CMD_CODE=0xD0, CMD_PHASE=0x05(Command)" (from the lpc manual pp363).
I've noticed that the firmware crashes/hangs when I write such a command to USBCmdCode.
For your information, I'm using Red Suite 3 and USBCmdCode is CMD_CODE in the lpc24xx header of Red Suite.
Any idea where I should start looking to solve this? Your comments are appreciated!
With much regards, Bart
For your information, This is the Keil forum, and Red Suite is not a Keil product!
USBCmdCode is a USB Device register, not for Host. This register has nothing to do with NXP USBHostLite.
LPC2478 has two USB port. Which configuration are you working on? a) One USB port for Host, another for Device b) OTG on single port
Tsuneo
Dear Tsuneo,
Thanks for your reply, got it running yesterday after reading some more chapters of Axelson :)
Thanks! Bart