This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SPI3 and SD Card

Hi Does anybody have a working example of an STM32F407VG reading and or writing an SD card using SPI3.

I have tried everything but always fails on mount with fsMediaError am at my wits end, i have even tried to follow example http://www.keil.com/appnotes/files/apnt_273.pdf and still not working.

Parents
  • GPIO_PinAFConfig(GPIOB, GPIO_PinSource3, GPIO_AF_SPI3);
    GPIO_PinAFConfig(GPIOB, GPIO_PinSource4, GPIO_AF_SPI3);
    GPIO_PinAFConfig(GPIOB, GPIO_PinSource5, GPIO_AF_SPI3);
    

    Pins for SPI3 are also for JTAG.

Reply
  • GPIO_PinAFConfig(GPIOB, GPIO_PinSource3, GPIO_AF_SPI3);
    GPIO_PinAFConfig(GPIOB, GPIO_PinSource4, GPIO_AF_SPI3);
    GPIO_PinAFConfig(GPIOB, GPIO_PinSource5, GPIO_AF_SPI3);
    

    Pins for SPI3 are also for JTAG.

Children