The Card Reader SDCard BoosterPack

From The 43oh Library
Jump to: navigation, search
TheCardReader SDCard BoosterPack Populated 43oh.PNG

The Card Reader is an SDCard BoosterPack for the MSP430 Launchpad. Although the Card Reader supports the standard SDCard form factor, it can be used with mini and mico SDCards with an adaptor. The BoosterPack comes with breakouts for standard SDCard signals and also an LED to indicate that a card has been inserted.

ID The Card Reader
Forum 43oh Forum Thread
Versions v1.0, v1.1, v1.2
Buy @The 43oh Store, Assembled
Buy @The 43oh Store, PCB


  • Fits the MSP430 Launchpad.
  • Separate breakout pins for SDCard SPI signals.
  • LED indicator for SDCard insert.
  • Solder jumpers to disconnect BoosterPack signals.

Hardware revisions

Hardware Changelog
  • Initial Revision.
  • Wire SD Card Pin6 to GND
  • Shorted jumpers for off-the-shelf USCI.
  • Label changes JP to J.
  • Support for 40 pin BoosterPacks.
  • Remove LED CD indicator as not used alot.


Hardware Software
v1.0 v0.3
v1.1 v0.3
v1.2 v0.3
v1.3 v0.3

Connecting the SDCard BoosterPack

The SDCard can easily be connected to an MSP430 Launchpad. The MSP430 SDCard firmware is based on the Elm-Chan Petite FatFS code. We use the Petite FatFS version as the MSP40G2553 Value Line micro-controller is limited in RAM memory. The only disadvantage of this is that the user will have to create a file on the SDcard before using it on the Launchpad.

Step 1

Make sure you have the UART jumpers setup on the Launchpad correctly. We are using P1.1 and P1.2 as TX and RX to talk to a PC via software serial.

Jumper positions for serial communication

Step 2

Format your SDCard to FAT16 or FAT32 and create a file test.txt on it and add some content to it. We will open this file using our Launchpad later.

Step 3

Download the appropriate firmware from the "Download" section in this page. Program your firmware to the Launchpad. Here we use Code Composer Studio which is free for the Launchpad.

Step 4

  • Now create a file test.txt on your card in your PC. Add a line "This is a test." in the file.
  • Remove it from your PC and insert the SDCard into the socket on the BoosterPack. You will notice the LED next to the socket light up.

Step 5

Fire up your terminal software. We will use Tera-Term for this example. Set it up at 9600, 8-bit, no parity and no flow control. Also, it would be good if you could enable local echo. Press the Reset button on the Launchpad. You should see the following on your terminal.

Serial Terminal

Step 6

You need to run disk initialize first, followed by file initialize as shown below. You should get a return code of 0 or FR_OK. If not, then something is not right. Press enter after each command.

Serial Terminal

Command Desc Return Code
di Disk Initialize rc=0 FR_OK
fi File Initialize rc=0 FR_OK
fl File List Lists files in the SDCard
fo test.txt File Open Opens test.txt
fd File Dump Dumps content of open file