cancel
Showing results for 
Search instead for 
Did you mean: 

Olimexino-STM32 SD-Card access using SPI and DMA

bernhard
Associate II
Posted on December 02, 2013 at 10:39

Hey Folks,

after several hours of trying I stil wasn't able to find out, why it doesn't work. Google and Forum search didn't help either.

Problem: SdCard access doesnt work with the built in SD-Card-Mount using SPI via DMA.

But SD-Card access  works in ALL following configurations:

- SPI, DMA and an

http://www.adafruit.com/products/254

 (=> DMA is allright)

- SPI and an external SD-breakoutboard

- SPI with the built in SD-Card-Mount (=> wiring is allright, SPI is allright)

Plus: When I disconnect the SD-Card and connect MISO to MOSI, a sent Byte is received just fine. With a SD-Card connected always 0xFF is returned.

Did anybody encounter the same problem? Or might know what to do?

Thanks a lot in advance,

Best regards

#sd #stm32 #dma #spi #fatfs
2 REPLIES 2
frankmeyer9
Associate II
Posted on December 02, 2013 at 11:12

I guess you have checked that no other external peripheral is using the same pin for something else.

Did you check the wiring on the PCB, from the MCU pin to the SD connector pin ?

Did you check the pullup resistors (hoping they are there) ?

Did you try with reduced SPI clock rate ?

Did you try with another SD card ?

sarath
Associate
Posted on November 04, 2014 at 09:31

hi,

can u upload the code for spi+sd card +dma ?