problem with fatfs

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

problem with fatfs

663件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by eplant_lab on Mon Sep 28 07:41:00 MST 2015
Hi all,
I have this problem:
after divide physical drive with f_fdisk, and mounting two partitions apparentely
without problems ( I get FR_OK as result value for every used fs function), I create a file

static  FIL fil;

rc = f_open(&fil, "0:myfile.bin", FA_WRITE | FA_CREATE_ALWAYS);   ( rc =FR_OK)
rc = f_write(&fil,"abcdefg",7,&nwritten);                                                   ( rc =FR_OK)
rc = f_close(&fil);                                                                                    ( rc =FR_OK)

now, when I check

rc = f_stat("0:myfile.bin", &fno);

I get rc = FR_NO_FILE.

Any suggestions?   :~
ラベル(1)
0 件の賞賛
返信
0 返答(返信)