[email protected] wrote:
> Environment in which system works:
>
> Microblaze softcore processor on spartan 3 fpga board
> compact flash, acting as a mass storage.
>
> How to access the compact flash in embedded applications
> write to and read from the compact flash? how to access the FAT table?
> to which sector i need to write, which address?
>
> which mode of addressing is easy way out
> CHS or LBA??
>
> I got no clue how to access, it would be great help if i could
> understand in and out of doing tht becoz i need to write a code in C
>
> Thanks in advance
>
http://www.compactflash.org/faqs/faq.htm You can register for free and
download the CF3 spec from there.
If you are just using the CF for mass storage that does not have to be
read by a PC, then you needn't format it with a PC file structure. In
that case it is simply a matter of converting your address to a sector
and offset into the sector. There is a bit less bookkeeping if you use
LBA, but either one is relatively easy.