I'm trying to run USBMem code example on my MCB2300 board, but my PC doesn't recognize it as usb mass storage. I have windows 7 professional, could be problem with driver on my windows?
Did you set up the jumpers on the MCB2300, as follows?
Jumper Descriptions www.keil.com/.../mcb2300_su_jumpers.htm
D-: USB Line: (J4) - When the jumper is positioned away from the LCD, it connects the D- pin of the USB B (device) connector to P0.30.
D+: USB Line: (J12) - When the jumper is positioned away from the LCD, it connects the D+ pin of the USB B (device) connector to P0.29.
UMODE: USB Device Mode: (J5) - Positioning this jumper toward the LCD display allows soft-connect of the USB device by issuing a software restart via P2.9.
> USBMem code example
There are a couple of "USBMem" examples, Where does it come from?
- C:\Keil_v4\ARM\Boards\Keil\MCB2300\USBMem - Keil v5 pack
- On the Keil Download site, http://www.keil.com/download/docs/336.asp
- LPCWare www.lpcware.com/.../sample-code-bundle-lpc23xxlpc24xx-peripherals-using-keils-μvision
etc.
Tsuneo
Thank you a lot, that was problem :)
Another question, when I connect it my PC see only txt file, README, but I don't have idea where to change content and name of that file...
As you don’t reply to my question, where your "USBMem" comes from, I assume you are talking about this version, - C:\Keil_v4\ARM\Boards\Keil\MCB2300\USBMem
In this version, the MSC code doesn’t set write protect on ModeSense(6) The "README.TXT" is assigned to Read-Only on its property (on directory entry) You may change it using OS function of your PC.
But when the board restarts, the "disk image" (DiskImg.c) is written to the RAM disk, again. If you would like to change the contents at the start up, you have to modify the binary on this file.
It was discussed on this topic, http://www.keil.com/forum/58409/
This example on above topic is ported one from USBMem C:\Keil\ARM\Boards\Atmel\AT91SAM7X-EK\USB\Memory These examples share the same DiskImg.c contents.