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?