Skip to main content
deepak2399
Visitor II
October 31, 2013
Question

fatfs f_mkfs usb

  • October 31, 2013
  • 0 replies
  • 645 views
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
This topic has been closed for replies.