This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

RL-FlashFs doesn't support fflush() for SD card.

I tried many times fflush function for sd card , then i saw these codes on internet .These codes belongs to old keil version .

/* * R T L - F l a s h F i l e S y s t e m * *
Name: _FS_FLUSHBUF.C *
Purpose: Low level File Flush Buffer Function *
Rev.: V3.22 * *
This code is part of the RealView Run-Time Library. *
Copyright (c) 2004-2008 KEIL - An ARM Company. All rights reserved. **/

#include "File_Config.h"
int __flushbuf (int handle) { /* Low level file flush function. */ FALLOC alloc; IOB *fcb;

fcb = &_iob[handle]; if (!(fcb->flags & _IOWRT)) { /* File not opened for write */ fcb->flags |= _IOERR; return (-1); } if (fcb->drive == DRV_MCARD) { return (0);
. .
.

It seems nothing changed since old versions . Fflush has not implemented yet for sd card.

m i right?

0