Mass Storage class over V-USB
Re: Mass Storage class over V-USB
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
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.
I for one would love to see what you have done and i'm sure I can speak for others.
Re: Mass Storage class over V-USB
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
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
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
http://depositfiles.com/files/yh1xo40wh
Re: Mass Storage class over V-USB
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.
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
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.
(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
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
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
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.
Re: Mass Storage class over V-USB
decided to start a new topic