FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > FPGA

FPGA comp.arch.fpga newsgroup (usenet)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-12-2006, 05:01 PM
Guest
 
Posts: n/a
Default Print FAT table in a compact flash ??????????

Hi
Im trying to access the FAT table in a compact flash.
from what i have understood

i have got sandisk 256mb compact flash

compact flash memory starts with

- a boot sector of 512 bytes
- then FAT 1 of 512 bytes
- FAT 2
- Data


i want to print the FAT table

how iam i doing that
is like this

Read a sector using LBA mode
set command register to 0x20
and then i need to give LBA logical block address
LBA usually starts from 0
so i assumed that LBA for FAT table is gonna be at address 1
so i gave LBA address as 1

this program is made of assumptions
and the program is not working

CAN ANYONE TELL ME HOW TO PRINT THE FAT TABLE FROM MY COMPACT FLASH
???????????????

Reply With Quote
  #2 (permalink)  
Old 04-12-2006, 07:38 PM
Alan Nishioka
Guest
 
Posts: n/a
Default Re: Print FAT table in a compact flash ??????????

[email protected] wrote:
> Im trying to access the FAT table in a compact flash.
> compact flash memory starts with
>
> - a boot sector of 512 bytes
> - then FAT 1 of 512 bytes
> - FAT 2
> - Data


> CAN ANYONE TELL ME HOW TO PRINT THE FAT TABLE FROM MY COMPACT FLASH
> ???????????????


There may be reserved sectors between the boot sector and fat1.
http://www.compuphase.com/mbr_fat.htm
has lots of good information.
I found it with google "compact flash partition table"

Alan Nishioka

Reply With Quote
  #3 (permalink)  
Old 04-13-2006, 01:01 AM
Ray Andraka
Guest
 
Posts: n/a
Default Re: Print FAT table in a compact flash ??????????

[email protected] wrote:
> Hi
> Im trying to access the FAT table in a compact flash.
> from what i have understood
>
> i have got sandisk 256mb compact flash
>
> compact flash memory starts with
>
> - a boot sector of 512 bytes
> - then FAT 1 of 512 bytes
> - FAT 2
> - Data
>
>
> i want to print the FAT table
>
> how iam i doing that
> is like this
>
> Read a sector using LBA mode
> set command register to 0x20
> and then i need to give LBA logical block address
> LBA usually starts from 0
> so i assumed that LBA for FAT table is gonna be at address 1
> so i gave LBA address as 1
>
> this program is made of assumptions
> and the program is not working
>
> CAN ANYONE TELL ME HOW TO PRINT THE FAT TABLE FROM MY COMPACT FLASH
> ???????????????
>


First off, you need to set the parameter registers (sector count, the
the LBA registers (aka cylinder lo, cylinder hi and sector, and the
drive/head register) BEFORE you issue the read sector command. The
command uses the values present in the registers at the time the command
is issued.

The location of the FAT table depends on the file system under which the
CF was formatted. The FAT is not an inherent characteristic of a CF
card, rather it is data written to the card when the card is formatted.

Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing compact flash????????? [email protected] FPGA 5 04-10-2006 12:33 AM
Accessing compact flash????????? [email protected] FPGA 3 04-07-2006 03:21 PM
C H S in a Compact flash [email protected] FPGA 2 04-07-2006 01:43 PM
Accessing compact flash????????? [email protected] FPGA 0 04-07-2006 05:27 AM
WIFI Compact Flash [email protected] FPGA 2 02-17-2006 02:09 AM


All times are GMT +1. The time now is 02:34 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved