You would have to implement USB protocol for mass storage device. I have not found such data, and even if I had it would not be so easy.
If you need to store data much better is to use SD or mmc cards, for which you need spi communication, and have lot of examples, and is much easier.
Also you could try with Compact Flash.
you need firm ware for mass storage device class.
and you need hard ware for interface with
USB protocal (Called SIE = serial interface engine)
#not a good idear for develop SIE by yourself#
I suggest you use MCU that integrated SIE.
I suggest you have to understand the FAT16 or FAT32 format.If you want to write data to usb mass storage. you can use bulk transmit via usb to the endpoint.Then write the data into flash memory in FAT fromat. You maybe can get some example code from the cypress's web.Good luck for you.
The problem is not FAT, NTFS etc formats for various filesystems but is there is very little information on these devices.
I know how you can communicate with USB devices in particular there is a book also "USB by Example" but there is no coverage of USB mass storage devices in this book or any book I can think of.
Ok. Now I now that if I want to write data in a USB flash memory, I have to do this using the bulk mass storage protocol, and I have to understand the FAT16 or FAT32 format. But I have a few options for implemented this in a device:
1. By using a microcontroller with hardware implemented USB interface.
2. USB implementation into a microcontroller through emulation of the USB protocol in the microcontroller firmware.
3. Using some universal converter between USB and another interface like ft2232BM.
I'm a beginner in this (sorry for that), so the only possible choice is using a FT2232BM IC, but How can implemented the bulk mass storage protocol using this IC and a microcontroller whit a serial interface?. This chip does everything or what I have to do from the microcontroller?. Can I use this IC in a device and let it work like a host?
Ehhm...you want to attach a cheap USB storage device to your microcontroller????
If so -> forget it that it can be done in reasonable time and with reasonable effort..what you are talking here is connecting USB device with USB device which never works!!!!
You need to have a USB host on your microcontroller side...and there is no microcontroller with integrated USB host as far as I know.
Cheapest way would be to use the SL811 USB host chip from Cypress...next level would be some USB host chip from Philips.
And then comes the USB host driver part with all the enumeration process. No fun here...believe me (o;