Mass Storage class over V-USB

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

Re: Mass Storage class over V-USB

Post by Guest » Fri Dec 24, 2010 8:59 pm

Now I have fully working source code for USB MassStorage device with v-usb!!!. My project is for samsung nand flash 1024 mb. But my code easy to change for mmc or other storage. If any one is interesting in it, I can post links to my source code!

Saimon

Re: Mass Storage class over V-USB

Post by Saimon » Fri Dec 24, 2010 9:02 pm

Sorry for GUEST! My nik is Saimon

maxi
Rank 3
Rank 3
Posts: 122
Joined: Fri Jul 24, 2009 6:13 pm

Re: Mass Storage class over V-USB

Post by maxi » Sat Dec 25, 2010 12:02 am

Hi Saimon, welcome back that is great news!
I for one would love to see what you have done and i'm sure I can speak for others. 8)

Saimon

Re: Mass Storage class over V-USB

Post by Saimon » Sat Dec 25, 2010 8:46 pm

I share my source code today at depositfiles.com. If any one would have problems with this host, I can to upload to other file host server

fh_
Posts: 1
Joined: Mon Feb 14, 2011 8:24 pm

Re: Mass Storage class over V-USB

Post by fh_ » Mon Feb 14, 2011 8:29 pm

Saimon wrote:I share my source code today at depositfiles.com. If any one would have problems with this host, I can to upload to other file host server

Hi Saimon,
I'm interested in your MassStorage Emulation. Where can I found the link for the source?
Best regards,
FH

lleeloo
Posts: 3
Joined: Wed Sep 15, 2010 1:07 pm

Re: Mass Storage class over V-USB

Post by lleeloo » Thu Mar 03, 2011 8:55 am

Second try!) Fully worked project on mega8 and mmc card. If anyone intresting, can show my device photo and video.
http://depositfiles.com/files/yh1xo40wh

ulao
Rank 4
Rank 4
Posts: 481
Joined: Mon Aug 25, 2008 8:45 pm

Re: Mass Storage class over V-USB

Post by ulao » Tue May 03, 2011 2:25 am

Can anyone help me on this source? Saimon has not done this in the same means most examples are. I see he has a few cpp files, but I dont have a cpp avr compiler. I only have winavr. I'm sure I could convert all of this to c as I know both languages well but I was hopping I'm just over looking something simple here.

For example, where is the heck is the descriptor? This is an example of a usb mass storage hid device no? That is to say, if I flash and compile this and plug it in to the usb port it shows up as a mass storage device? If so, then a descriptor is required. I sure hope its not this .balign 256 usbCrcTableLow: ASM stuff.

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

Re: Mass Storage class over V-USB

Post by christian » Tue May 03, 2011 11:18 am

I have not looked at the code so far, but I can probably answer to questions:
(1) As far as I know, WinAVR supports C++. Simply pass it a .cpp file.
(2) The .balign 256 usbCrcTableLow: stuff is for a table-driven (and thus faster) CRC algorithm.

ulao
Rank 4
Rank 4
Posts: 481
Joined: Mon Aug 25, 2008 8:45 pm

Re: Mass Storage class over V-USB

Post by ulao » Tue May 03, 2011 2:36 pm

Thx christian. I had a lot of luck just analyzing the code its self. Its quite straight forward what he is doing here. I never did find a descriptor but I can more then likely get that with usbLyzer. I see what you mean by a look up table but was not sure what the data in the table is for, it that a descriptor?

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

Re: Mass Storage class over V-USB

Post by christian » Tue May 03, 2011 2:38 pm

No, that's not a descriptor. The table contains pre-computed CRC sum values for the CRC checksum used.

ulao
Rank 4
Rank 4
Posts: 481
Joined: Mon Aug 25, 2008 8:45 pm

Re: Mass Storage class over V-USB

Post by ulao » Tue May 03, 2011 4:24 pm

Ah error correction I got you. Thx for the info.
Last edited by ulao on Fri May 06, 2011 4:48 pm, edited 2 times in total.

ulao
Rank 4
Rank 4
Posts: 481
Joined: Mon Aug 25, 2008 8:45 pm

Re: Mass Storage class over V-USB

Post by ulao » Tue May 03, 2011 8:11 pm

decided to start a new topic

Post Reply