USB Mass storage class + SPI
I've been working with USB Mass Storage Class to create an SD Card reader with STM32L1 using SPI.
I added the SDCard_SPI library and filled the missing functions in the "usbd_storage_if.c" file.
What I've got is that my project works fine with SD Cards that have the boot sector at the address 0.
But in other cases windows keeps sending commends repeatedly to read sector 0 and returns "please insert disk" error.
Is this a library limitation ? or should I add something to make windows recognize that the boot sector isn't at the address 0?