2014-01-09 06:32 PM
when i try to write data into a file use SD_WriteMultiBlocks function then some blocks didnt fill the data i want, the block looks filled with old deleted file data and all this blocks start with XXXXXe00 end with XXXXXX000, i used fatfs as my file system attached file is my scheme of sd card, i tried some examples but all this problem so i thing maybe its my board problem?
2014-01-09 07:37 PM
Hard to say, I've been using MicroSD cards, running them at 2.8V and 3.0V, and had pull-up's real close to the socket in the 33K/47K range.
When writing pay very careful attention to when the DMA completes, and the SD FIFO clears. It's important the previous write completes before starting the next. Be sure you know what your SDIO clocks and divisors are, there is an errata in the BYPASS mode. Evaluate some known good hardware, STM32F4-DISCO + STM32F4-DIS-BB would be a relatively cheap cross-check.2014-01-10 12:06 AM
Hi, i am so confuse why single block is fine but multiblock didnt work and there is check transfer end after DMA trnasfer everything return OK but shit happen. I checked this for 1 week still didnt get ant idea
2014-01-10 01:43 AM
Have you tired a different SD card from, from a different manufacturer?
It is well known that different SD devices (even from the same manufacturer) can behave differently.2014-01-10 03:57 AM