Hi Olivier, I did what you suggest. The result is that FAT16 with 32Mbyte card works but 128Mbyte or 1Gbyte cards don't work at all!
Did you succeed in using big CF cards?
In particular with 128Mbyte card, I get an error in getting volume information (but device parameters are read correctly).
With 1Gbyte card, device parameters are not read correctly at all.
Do you have any idea?
Thank you,
Davide
--- Quote Start ---
originally posted by odespont@Jun 29 2006, 02:49 PM
hello,
i just found how to implement fat file system on my compact flash
without any os, on the 1c20 evaluation kit
and i think anybody is interresed by this subject.
sorry for my english, i'm french.... http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/biggrin.gif
you need to download:
* compact flash hardware & software examples for nios ii 5.0 (http://forum.niosforum.com/downloads/cflash/cf5_0.zip) from jesse in tested ip from this forum.
* (the dosfs distribution archive (http://www.zws.com/products/dosfs/index.html))
you need to modify the dosfs distribution archive:
delete "dosemu.h" and "dosemu.c".
in "dosfs.h" add an include to "cddiskutils.h"
add :
#define dfs_readsector(unit,buffer,sector,count) readlogicalsector(( unsigned long) sector, (unsigned long) count,
(unsigned short *)buffer);# define dfs_writesector(unit,buffer,sector,count) writelogicalsector(( unsigned long) sector, (unsigned long) count,
(unsigned short *)buffer);
compile and look at the error :
replace all type define in dosfs distribution archive by the equivalent alt_u8, alt_u16 and alt_u32, for all the type.
it's ok for me, fat 12, fat 16 and fat 32 in chs and lba.
if anybody want some details, you can contact me....
@+
olivier http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/blink.gif
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=16526)
--- quote end ---
--- Quote End ---