CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

USB mass storage

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Rayk
Guest







USB mass storage
PostPosted: Wed Jun 04, 2003 5:11 am     Reply with quote

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

View user's profile Send private message

Re: USB mass storage
PostPosted: Wed Jan 05, 2005 10:50 am     Reply with quote

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

View user's profile Send private message Send e-mail

PostPosted: Wed Jan 05, 2005 12:58 pm     Reply with quote

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

View user's profile Send private message Visit poster's website

PIC CCS FAT16 code
PostPosted: Mon Jan 10, 2005 6:31 am     Reply with quote

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

View user's profile Send private message Visit poster's website

PostPosted: Mon Jan 10, 2005 9:29 am     Reply with quote

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








PostPosted: Mon Jan 10, 2005 9:39 am     Reply with quote

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 Smile
Where is that code lib?
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Mon Jan 10, 2005 9:42 am     Reply with quote

http://www.ccsinfo.com/forum/viewforum.php?f=2
Darren Rook



Joined: 06 Sep 2003
Posts: 287
Location: Milwaukee, WI

View user's profile Send private message Send e-mail

PostPosted: Mon Jan 10, 2005 11:08 am     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group