cancel
Showing results for 
Search instead for 
Did you mean: 

SD card reading erroraneous data while using DMA

hariprasad
Associate III
Posted on March 11, 2015 at 02:55

I'm using the FAT file system for STM32F4 provided by

http://stm32f4-discovery.com/2014/07/library-21-read-sd-card-fatfs-stm32f4xx-devices/

, This code implements simple SPI transaction for data, which I was able to do successfully.

I tried implementing DMA for writing/reading chunk of data (sector read/write has 512 bytes), I was able to write to the SD card using DMA method, But while trying to read data from SD card using DMA , I'm getting the data where some bytes are missing (erroneously) .

My DMA code is working fine since I tested it for another interface so that might not be the issue..

What is causing this kind of behavior?

#stm32f4 #discovery #spi #device
0 REPLIES 0