cancel
Showing results for 
Search instead for 
Did you mean: 

FAT system and SD Card, ARM STM32F103RBT

vinicius_acvasconcelos
Associate II
Posted on January 29, 2009 at 16:14

FAT system and SD Card, ARM STM32F103RBT

13 REPLIES 13
gabrielbonato
Associate II
Posted on May 17, 2011 at 12:58

I'm using msd library st (UM435 - STM3210B-EVAL demonstration software), to adapt for spi2.

it does not function.

I'm problem .

function MSD_ReadByte() not response.

/* Check if response is got or a timeout is happen */

while ((MSD_ReadByte() != Response) && Count)

{

Count--;

}

if (Count == 0) /// count = 0 not response

{

/* After time out */

return MSD_RESPONSE_FAILURE; //always

}

else

{

/* Right response got */

return MSD_RESPONSE_NO_ERROR;

}

dennisvanelteren
Associate II
Posted on May 08, 2012 at 21:43

Dear Vinicius

I read you were able to read and write raw data with your STM32 and sdcard. I am desperately trying to get this to work (I use the std_peripheral lib) but it dont succeed. Can you please post or send your code?

Many tnx

Dennis

alok472
Associate II
Posted on May 09, 2012 at 05:38

My experience with <2GB card is good. FW lib works good. What is your card capacity & manufacturer ?

dennisvanelteren
Associate II
Posted on May 09, 2012 at 09:38

I have one that is no good for anything but this task: 32Mb, brand unknown I think it might be Sandisk

If you know how this raw data write works please tell me! I now assume that I have to write data in blocks of 512 bytes, If i write to address 0x00000000 then I assume I place there a complete set of 512 bytes, if I write to address 0x00000001then there will be written another block of 512 bytes, is that correct?