AVR Only HID Mass Storage Device

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
Steve

AVR Only HID Mass Storage Device

Post by Steve » Tue Sep 04, 2007 2:07 am

I've been researching this, and it seems possible. Can anyone provide information regarding the possibility of implementing this device.

I want to use an ATmega168, or similar device, to act as a "flash drive" and store one (1) file in the SRAM portion of the uP.

It seems like you could do this via several combinations.

I.e. Full speed, HID Mass Storage device using Bulk transfer.
or Low speed, HID Mass Storage device using control or interrupt transfer.
or Low speed, HID (Insert device here) using control or interrupt transfer.

Again, it seems entirely possible. Looking for any "gotchas" people might see that I haven't yet.

Steve

Post by Steve » Tue Sep 04, 2007 5:35 am

I think I may need to clarify my last post.

The examples should have read.

Full Speed, Mass storage device using bulk transfer.
Low Speed, HID device using control or interrupt transfer.

TIA.

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Post by christian » Sat Sep 08, 2007 8:37 pm

AVR-USB can't do full speed, only low speed. However, if you implement the same functionality (bulk endpoints) in low speed, most operating systems accept them as if it were full speed.

I don't see how you can implement a mass storage device as HID, though, without custom drivers. As far as I know, the HID spec has no such option.

Post Reply