cancel
Showing results for 
Search instead for 
Did you mean: 

SD_WriteMultiBlock (MMC_SD.C)

esiqueira
Associate II
Posted on June 21, 2013 at 18:47

Is possible to create a file in the SDCARD using only this function?

Consider that the SDCARD was recognized. Mode SPI.

SD_CD        => PB7

SPI1_MOSI => PA7

SPI1_SCK   => PA5

SPI1_MISO => PA6

#spi-sd-card-mmc-stm32f103
3 REPLIES 3
Posted on June 21, 2013 at 20:32

Well it's NOT going to be a FILE

You can write runs of linear data any way you want, it won't be generally readable by anyone else.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
esiqueira
Associate II
Posted on July 04, 2013 at 02:03

Thanks Clive,

Then I need to use 

Generic FAT File System Module

[

http://elm-chan.org/fsw/ff/00index_e.html

]

Posted on July 04, 2013 at 02:11

Yes, you'll need to layer something like FatFs on top of the block IO routines to support a FAT12/FAT16/FAT32 partitioned drive.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..