I wanted to share an example from Atmel ASF that shows how to implement a USB host mass storage on Arduino Due with USB module.
I have upload the .bin file in github for those interested to test it. If you want to move forward with this application, I'd recommend to install Atmel Studio 6 with ASF and build/compile the Arduino Due based example called "USB Host MSC FatFS example". I could write a sketch for Arduino IDE but you have to be patient.
For this application you will need:
- Arduino board
- Flash memory card (FAT or FAT32)
- A USB to mini-USB cable
- Bossac.exe in you computer
- Download my HOST_EXAMPLE21.bin file from github
Then, follow these steps:
1. Download the file HOST_EXAMPLE21.bin from this link:
https://github.com/downloads/Palliser/Arduino-DUE/HOST_EXAMPLE21.bin[font=Verdana]1.1. Download the file HOST_EXAMPLE21.bin attached to this post (EDITED: March-05-2014).[/font]2. Load HOST_EXAMPLE21.bin to Arduino Due using bossac.exe as follows:
bossac.exe --port=COM23 -U false -e -w -v -b HOST_EXAMPLE21.bin -R
Notice that I am using port 23 because that is the port in my laptop where my Due is connected.
3. After loading HOST_EXAMPLE21.bin in your Due, connect Due to a Flash Memory card (FAT/FAT32 are supported) using the USB-mini USB cable.
4. Finally disconnect the memory stick from Due and read it in your computer. The example creates in your memory card (stick) a file "uhi_msc_test.txt" that contains the text: Arduino Due Rocks!
If you want to create your own file and text you'll find the example in Atmel Studio 6 as follows:
File->New->Example Project from ASF->[Under Kit] Arduino Due X->USB Host MSC FatFS example
Regards!