FR_DISK_ERR issue in f_write() for chan's FATFs

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

FR_DISK_ERR issue in f_write() for chan's FATFs

903件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by arvind.k08 on Fri Aug 28 06:16:34 MST 2015
Hello,



I am using chan's FatFs for writing my logs on sdcard (Sandisk ultra 8gb, class 10). Interface used is SD card interface.

I am getting around 900 float values to write on sd card.



I am writing logs to the sd card each second(each second 900 float values are being received).



Before doing f_write(), I am doing sprintf() for the float values and converting the float values to char string.

I am converting 90 float values to char string at a time in a for loop and the char string is being passed to f_write() to write on sdcard.

It is writing to sdcard also but sometime f_write is failing with FR_DISK_ERR putting me vulnerable to miss data.



Please suggest why this FR_DISK_ERR is happening and how can i avoid it to get proper writing on sdcard without missing data.
ラベル(1)
0 件の賞賛
0 返答(返信)