AnsweredAssumed Answered

STM32F4 USB to SD interface

Question asked by on Jan 4, 2016
Latest reply on Feb 7, 2018 by Clive One

Dear Community

I tried CLIVE1‘ example (

to connect a SD card via STM32F407 eval board to USB. I ported the files into a KEIL project which was setup using the latest drivers provided by ST. I used following preprocessor symbols:


I checked the CLOCK setting using MCO and a scope and found everything appeared to be clocked correctly. However (I expected something similar) the example does not work (I don’t see anything detected by the USB master PC).

I started with troubleshooting and ended up here:

int8_t STORAGE_Init (uint8_t lun)

which appears to be  part of a state machine -  however it seems to be not toggled and I don’t know why.

While trialling and erroring I would be very happy if someone could support me by giving a hint were to start with troubleshooting e.g. something like a state machine diagram or a flow chart of what happens inside the example in general.