cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4 : Usb flash drive and fatfs

mikael2399
Associate
Posted on March 03, 2016 at 10:49

Hello,

My 4GB usb flash drive works perfectly fine with FATFS and STM32Cube. However, my program is not able to make a read/write operation on the other usb keys.

Actually, f_mount function returns ''FR_OK'' and I can create a directory on my drive. The problem occurs when my program tries a write operation. The error code is ''FR_NOT_READY'' and it comes from disk_initialize which returns ''STA_NOINIT''.

I have tested my program with 6 different pen drives of 2, 4, 8 and 16 GB but the only ones which work are the 4GB ones. I can't say there is a link but I have currently no idea to solve this issue.

Any help would be appreciated.

Mikael

#stm32 #fr_not_ready #fatfs #usb
0 REPLIES 0