Hi,
I am new to SD card. I want to write the data to SD card using MSP430F5529 LP using USCB1 for SPI. I plan to use the 8 GB card hence the initiallization is different for that rather than the one given in the driver code through SLAU281. I changed the init sequence to CMD0, CMD55, CMD41, CMD58, CMD 55 and CMD41 together form ACMD41. Now this would mean that i need to write my data in the block of 512 bytes:
My questions:
1. If i get data in form of 32 byte block and I write the 32 bytes that i receive - what happens to the balance 480 byte of the block?
2. How to pick up the address for writing the blocks of 32?
These questions may sound trivial but being new to this they are foxing me. Any help with a sample code would be appreciated.
Also as a next step I want to put data in FAT format. what kind of glue-code should be written for integrating Elm-Chan's FatFs program, a sample code would be of great help.
Regards
Viney Chaddha