I have a problem with USB MSC device on my stm32l152.
I take example from "STM32Cube_FW_L1_V1.8.0" of USB_Device - MSC_Standalone. In this example the sdcard use SDIO for connect is SD. So I have only change USB_Storage.c for use my SD card connected in SPI.
So my change are mainly STORAGE_Read and STORAGE_Write. For the rest of Middleware nothing are change.
But when a plug the USB to my PC (Windows 10). It recognize as "Device USB Mass Storage" but windows say :
- Insert Disk in lector
It not recognize my SDCARD.
The logic analizer see the packet of transfert bulk but I thing that the Host doesn't ACK the transfert and then ask a reset. This repeat and repeat. The step are :
- Reset USB
So do you think it's problem with my change USB_Storage.c or something else ?
Thanks a lot,