C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old May 8th, 2003, 10:51 AM
magnetic magnetic is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 4 magnetic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
  #2  
Old May 8th, 2003, 02:04 PM
dwise1_aol's Avatar
dwise1_aol dwise1_aol is offline
Contributing User
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jan 2003
Location: USA
Posts: 3,793 dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 1 Month 6 h 53 m 57 sec
Reputation Power: 434
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?

Reply With Quote
  #3  
Old May 9th, 2003, 07:23 AM
magnetic magnetic is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 4 magnetic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
  #4  
Old May 9th, 2003, 09:56 AM
dwise1_aol's Avatar
dwise1_aol dwise1_aol is offline
Contributing User
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jan 2003
Location: USA
Posts: 3,793 dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 1 Month 6 h 53 m 57 sec
Reputation Power: 434
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.

Reply With Quote
  #5  
Old May 13th, 2003, 02:25 PM
dwise1_aol's Avatar
dwise1_aol dwise1_aol is offline
Contributing User
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jan 2003
Location: USA
Posts: 3,793 dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 1 Month 6 h 53 m 57 sec
Reputation Power: 434
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > accessing FAT16 disc on chip


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway