cancel
Showing results for 
Search instead for 
Did you mean: 

USB flash drive detection not working

Bkris.2
Associate II

Hi,

I am using STM32F205RET6 customized board and trying to mount the USB flash drive like below, but am getting FRESULT value as 11 (FR_INVALID_DRIVE, /* (11) The logical drive number is invalid */)

 FRESULT fr;

FATFS fs0, fs1; 

fr = f_mount(&fs1, "1:", 0);

could any one please let me know if am missing anything

Thanks

Bala

1 REPLY 1

Lot of material to work with here..

Has any of your custom board and software been tested or validated? What works currently? Got any means of outputting diagnostic information or debugging?

Make sure your DISKIO layers is functional and supportive of the drive/unit/lun you are actually passing in.

Use the debugger,

Instrument the code and test it, as if the lower level code doesn't function correctly, the upper level code has no hope.

Check your USB MSC Host implementation.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..