MSP430F5438 SD card using an SPI interface

2019-08-12 03:47发布

问题:

I want to connect an SD card using the SPI interface of MSP430F5438. The hardware part is correct in my design, however I could not send any data to the SD card. The source code I use is from Secure Digital Card Interface for the MSP430.

For debugging, how could I send data to the SD card? The data should be received from the ADC12MEM registers and just need to be written in the SD card. From this source code above, there is no process, when I debug and I could not send any user input to the SD card.

回答1:

The code in the linked PDF works only for SD cards <= 2 GB and not for SDHC cards (4 GB and bigger). If you can not find such a small card as full size SD, just use a microSD with an adapter - they are electrically the same.