The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Programming Languages
> C Programming
|
accessing FAT16 disc on chip
Discuss accessing FAT16 disc on chip in the C Programming forum on Dev Shed. accessing FAT16 disc on chip C programming forum discussing all C derivatives, including C#, C++, Object-C, and even plain old vanilla C. These languages are low level languages, and used on projects such as device drivers, compilers, and even whole computer operating systems.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

May 8th, 2003, 10:51 AM
|
|
Junior Member
|
|
Join Date: May 2003
Posts: 4
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
accessing FAT16 disc on chip
help this n00b please
http://forums.devshed.com/showthread.php?s=&postid=261091#post261091
|

May 8th, 2003, 02:04 PM
|
 |
Contributing User
|
|
Join Date: Jan 2003
Location: USA
|
|
|
Re: accessing FAT16 disc on chip
Quote: Originally posted by magnetic
FAT16 access
I'm wanting to access a FAT16 disc on chip using C. Can anybody give me some pointers for reading and writing files, or any good URL's for info on FAT. Is there any source code that has already been written that i might include?
Thanks |
FAT16 is just the 16-bit File Allocation Table filesystem that was used by MS-DOS. I think that it's up to 32 bits now, but I stopped keeping track long ago.
Anyway, you are apparently doing an embedded C project that uses RAM disk or flash disk support. As such, I would think that your RTOS (real-time OS) would have to support that filesystem or be able to use the drivers/libraries that support that filesystem.
In other words, it should be transparent to your application. You should be able to traverse the directories and perform your file operations as you normally would. Just be sure of the required format of the file name string in the open or fopen function (ie, UNIX/Linux format with forward slash or DOS format with backslashes, which would then need to be doubled-up to work).
Does that address your question?
|

May 9th, 2003, 07:23 AM
|
|
Junior Member
|
|
Join Date: May 2003
Posts: 4
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
thanks for answering
1/ The flash disc on chip was designed for use with a PC104 micro PC and so is set up with a FAT16 file system.
2/ The OS was written 'in-house' and all drivers and libraries were created here and runs on a 16bit micro
3/ I don't have a driver or library for the task and this is what i need to write here...hence asking on here 'cos I was wanting some direction.
4/ I don't believe in re-inventing the wheel so if something has already been written and is available out there then please point me the right direction.
again thanks but i need more specific info and i can't find what i need on m/soft developer or anywhere on the net
|

May 9th, 2003, 09:56 AM
|
 |
Contributing User
|
|
Join Date: Jan 2003
Location: USA
|
|
Ouch!
Doesn't the "flash disc on chip" manufacturer or vendor have anything you could use? Maybe design notes or application notes or white papers? Or mention of projects their chip has been used in? Or mention of third-party suppliers of drivers? And if their site doesn't have anything, then talk with the sales rep; he has a vested interest in your success if he wants to sell more of these chips.
I don't know if this will help, but there's a book company that specializes in embedded design, Annabooks at http://www.annabooks.com/ . They might have something that would help.
Good luck. The info is out there and I sincerely hope you find it.
Last edited by dwise1_aol : May 9th, 2003 at 10:00 AM.
|

May 13th, 2003, 02:25 PM
|
 |
Contributing User
|
|
Join Date: Jan 2003
Location: USA
|
|
|
I've just come across the term "Flash Translation Layer" (FTL), which is used in reference to creating and using filesystems on flash memory devices.
This might help you find the resources you need.
Good luck.
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|