AnsweredAssumed Answered

STM32F4 SPI SD Card Problem

Question asked by ingenerator.emsila on Oct 11, 2014
Latest reply on Oct 11, 2014 by Clive One
Hello!
I use STM32F4 Discovery and SD Card (library ChaN: https://github.com/devthrash/STM32F4-workarea/tree/master/Project/FatFS).
I complied program from example (main.c in Project) and SD card not work.
In debug mode program stop on 228 line in file diskio.c
228: (SPI_receive(SPI1, buf, 2); // receive two byte CRC

Connection:
CS -> PC4
SDI (MOSI) -> PA7
SDO (MISO) -> PA6
CLK -> PA5








Outcomes