cancel
Showing results for 
Search instead for 
Did you mean: 

fatfs f_mkfs usb

deepak2399
Associate
Posted on October 31, 2013 at 09:26

formatting usb f_mkfs return only FR_MKFS_ABORTED,

changed in file usbh_msc_fatfs.c -->disk_ioctl function

 ////////////////////////////////////////////////////

case GET_BLOCK_SIZE : /* Get erase block size in unit of sector (DWORD) */

    

    *(DWORD*)buff = 512;

    res = RES_OK; 

    break;

//////////////////////////////////////////////////////////

res = RES_OK;  was not there i have edited it so the f_mkfs works fine

f_mkfs(0,0,0);

#usb #fatfs #otg #fs #stm32
0 REPLIES 0