This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to store real-time data from MSP430 to SD Card

Other Parts Discussed in Thread: MSP430G2231, MSP430G2211, MSP430F1611

Hi,

I am a complete novice to the MSP430 and only recieved my Launchpad development kit last week (with MSP430g2231 and MSP430g2211). For my project I need to collect data and analyse it using the MSP430 before storing it onto some sort of external storage device.

Basically my question is how to store data (in a text file) onto an external SD Card using the MSP430.

Many Thanks,

Ali

  • Accessing an SD card is possible through the SPI interface available on most MSPs (or by doing bit-banging an simulating an SPI).

    The LaunchPad processors, however, don't have enough ram to even buffer a single flash sector (which is 512 bytes), and the MSP has no built-in filesystem driver. There are some filesystem drivers available as libraries or source code, but they are much too large for the LaunchPad.

    Storing data with the LaunchPad can almost only be done by sending it with a serial connection to some external device (usually a PC) where it is captured and stored.

    Some time ago I implemented a datalogger on the MSP430F1611 which has 10k Ram and 48k Flash. I did not add a filesystem, I just calculated a position on teh flash based on the current time. It was good enough for logging 1 year on an 1GB SD card. Of course for reding the data from the card, I needed a special software, as there was no file system on this card at all (and no partition table or whatever). It was the fastest way to do it. and the least resource-consuming.

     

**Attention** This is a public forum