SD Card Interfacing with MSP430

Hi, I’m using MSP430F5438 to interface with a microSD card and using the code provided by TI Application Note for the purpose. I’m actually using a microSD card plugged in to a SD adapter.

There is a particular macro function in the code

#define CS_HIGH() while(!halSPITXDONE); MMC_CS_PxOUT |= MMC_CS

the program gets stuck when this statement is encountered, that is, the while loop doesnt evaluate to true and hence keeps on in an infinite loop.

Anyone who has used the code might be able to point me in the right direction. Any ideas?

anasimtiaz,

I am trying to do the exact same task with a different MSP430.

Have you had any luck interfacing the microSD with the MSP430?

I have a few other questions for you:

  1. How big is your microSD card?

  2. How fast are your or attempting to write to the microSD card?

Thanks!

The Ti code works with SPI interface mode (which is the simplest choice of the three SD interface modes) which is not required to be supported by microSD cards.

Try a standard size SD card?

Can I have the TI’s code for SDcard and FAT-32