FRESULT f_result;
FIL fil;
char buf[256];
f_result = f_open(&fil, "0:/c_1.bin",FA_READ);
UINT br;
f_result = f_read(&fil, buf, 256, &br);
f_close(&fil);
f_result = f_open(&fil, "0:/R5F10.bin",FA_CREATE_ALWAYS | FA_WRITE);
UINT bw;
f_result = f_write(&fil, buf, br, &bw);
f_close(&fil);
//自己再写一次
FRESULT f_result;
FIL *fil;
char buf[256];
uint32_t br;
f_result = f_open(fil,"0:/c_1.bin",FA_READ);
f_read(fil,buf,256,&br);
f_close(fil);
uint32_t bw;
f_result = f_open(fil,"0:/R5F10.bin",FA_CREATE_ALWAYS | FA_WRITE);
f_write(fil,buf,br,&bw);
f_close(fil);