We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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?
Hi I have the same problem .. there is nobody to say something???