Page 2 of 2

Re: Mass Storage class over V-USB

Posted: Fri Dec 24, 2010 8:59 pm
by Guest
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!

Re: Mass Storage class over V-USB

Posted: Fri Dec 24, 2010 9:02 pm
by Saimon
Sorry for GUEST! My nik is Saimon

Re: Mass Storage class over V-USB

Posted: Sat Dec 25, 2010 12:02 am
by maxi
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)

Re: Mass Storage class over V-USB

Posted: Sat Dec 25, 2010 8:46 pm
by Saimon
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

Re: Mass Storage class over V-USB

Posted: Mon Feb 14, 2011 8:29 pm
by fh_
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

Re: Mass Storage class over V-USB

Posted: Thu Mar 03, 2011 8:55 am
by lleeloo
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

Re: Mass Storage class over V-USB

Posted: Tue May 03, 2011 2:25 am
by ulao
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.

Re: Mass Storage class over V-USB

Posted: Tue May 03, 2011 11:18 am
by christian
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.

Re: Mass Storage class over V-USB

Posted: Tue May 03, 2011 2:36 pm
by ulao
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?

Re: Mass Storage class over V-USB

Posted: Tue May 03, 2011 2:38 pm
by christian
No, that's not a descriptor. The table contains pre-computed CRC sum values for the CRC checksum used.

Re: Mass Storage class over V-USB

Posted: Tue May 03, 2011 4:24 pm
by ulao
Ah error correction I got you. Thx for the info.

Re: Mass Storage class over V-USB

Posted: Tue May 03, 2011 8:11 pm
by ulao
decided to start a new topic