cancel
Showing results for 
Search instead for 
Did you mean: 

stm32f407 write data into sd card problem

jimmjimmshen
Associate III
Posted on January 07, 2014 at 08:36

I use fatfs as file system and use sdio_sdcard.c as sd card driver write data into sd card

but i found a problem when i use SD_ReadMultiBlocks function sometimes there will some sectors didnt fill the data, there are some my deleted file data in it(if i format all sd card it will be all 0x00),the sector always occur at 0xXXXXXe00 and end with 0xXXXXXX00 which means there is whole 512 bytes sector fail

what makes this problem? when i try simplest program which just fill same data into a file and stop all interrupts and any another function

the problem still occur, please someone help
3 REPLIES 3
Posted on January 07, 2014 at 10:12

Perhaps you could describe your board, interface and clocking scheme?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
jimmjimmshen
Associate III
Posted on January 08, 2014 at 02:00

attach file is my scheme of sd card part i use

* @file stm324xg_eval_sdio_sd.c

* @author MCD Application Team

* @version V1.0.0

* @date 30-September-2011

as my lowlevel interface to control sd card.

I cant figure out why this problem happen

________________

Attachments :

QQ__20140108085403.jpg : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HzmW&d=%2Fa%2F0X0000000bPg%2F.rg9UGEAEsthnVKAXrI_br6HU3YYMsg.Sm8AzGOJu60&asPdf=false

QQ__20140108085441.jpg : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hzlt&d=%2Fa%2F0X0000000bPh%2FbKu12N8goajdTyZddwueixMRNzXysCWPCGnM9WwPT8A&asPdf=false
jimmjimmshen
Associate III
Posted on January 08, 2014 at 07:04

one more question is how to extend address to make sdio can use more than 4g space?