View previous topic :: View next topic |
Author |
Message |
Rayk Guest
|
USB mass storage |
Posted: Wed Jun 04, 2003 5:11 am |
|
|
Hello, for a new project i need the USB mass storage driver protocol in a PIC, but i can't find something in the web. Can someone help me?
___________________________
This message was ported from CCS's old forum
Original Post ID: 144515027 |
|
|
alexz
Joined: 17 Sep 2004 Posts: 133 Location: UK
|
Re: USB mass storage |
Posted: Wed Jan 05, 2005 10:50 am |
|
|
Rayk wrote: | Hello, for a new project i need the USB mass storage driver protocol in a PIC, but i can't find something in the web. Can someone help me?
___________________________
This message was ported from CCS's old forum
Original Post ID: 144515027 |
I am doing the same thing, would you like to share information? _________________ Alex |
|
|
Darren Rook
Joined: 06 Sep 2003 Posts: 287 Location: Milwaukee, WI
|
|
Posted: Wed Jan 05, 2005 12:58 pm |
|
|
This will require you to do two things. First, implement a FAT16 file system that is compatable with Windows (or whatever operating system you are using). Second, take a USB stack and if it doesn't have the mass storage class you will have to add it yourself. (The only class CCS's simple stack provides "out of the box" is HID)
You may be able to find a USB stack for free online somewhere, but I would bet money that you will not find a free embedded implementation of a FAT16 file system.
In conclusion, a good chunk of work which I'd be surprised if someone was just giving away. On second thought, I have seen a lot of homegrown MP3 players with schematics and firmware - do a search and see if you can steal some code from there. |
|
|
lucky
Joined: 12 Sep 2003 Posts: 46 Location: South Coast - England
|
PIC CCS FAT16 code |
Posted: Mon Jan 10, 2005 6:31 am |
|
|
Try www.mpic3.com. Look in the downloads area for the MPic3 (MP3) player code. This has my simple FAT16 PIC code written in CCS C. I only use reads from a Compact Flash but it would be quite easy to add writes as the FAT16 side of thing will be 90% the same. The CF I read from is written to using Windows. It works well as a work in progress MP3 player so could be a good starting point for you guys. _________________ Lucky
www.mpic3.com - MPIC3 player project, Forum, Downloads, Online Shop |
|
|
treitmey
Joined: 23 Jan 2004 Posts: 1094 Location: Appleton,WI USA
|
|
Posted: Mon Jan 10, 2005 9:29 am |
|
|
Ray/Alex, If you guys get a fat16 code working, post the results in the code library, if you can. I'm sure this will be used more and more as chips are getting bigger. |
|
|
Guest
|
|
Posted: Mon Jan 10, 2005 9:39 am |
|
|
treitmey wrote: | Ray/Alex, If you guys get a fat16 code working, post the results in the code library, if you can. I'm sure this will be used more and more as chips are getting bigger. |
Easy to say
Where is that code lib? |
|
|
treitmey
Joined: 23 Jan 2004 Posts: 1094 Location: Appleton,WI USA
|
|
|
Darren Rook
Joined: 06 Sep 2003 Posts: 287 Location: Milwaukee, WI
|
|
Posted: Mon Jan 10, 2005 11:08 am |
|
|
Instead of posting what is probably lots of code in the forum, it would probably be easier to just post a URL of the FAT16 code in the code library. It's your decision though. |
|
|
|