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.

CCS/MSP430FR5994: Using the on-board microSD card reader for the MSP430FR5994 Launchpad

Part Number: MSP430FR5994
Other Parts Discussed in Thread: MSP-EXP430FR5994

Tool/software: Code Composer Studio

Hey all

This is my first time using the TI MSP430 series chips so excuse my lack of knowledge, but I've got the MSP430FR5994 Launchpad, and the plan is to interface two sensors (an accelerometer and a temp sensor) running in SPI, logging data. Now I'm trying to tackle the problem of storing this data on a microSD card, or basically how I'd go about coding of it. I looked at the code that came with the 'Out of the box' experience, however that uses ADC's and other stuff which I won't need. The sensors haven't been fully interfaced yet, but I'm just trying to start tackling this SD card issue. Any and all help would be greatly appreciated.

Regards

Viv

  • Hey Vivek,

    The OutOfBox experience code is still your greatest resource as it has the SDCardLogMode.c/h files and FatFs, HAL, and SDCardLib folders required for SD card communication through SPI. You will just need to remove the additional functionality from the main application and adjust it for your needs.

    Regards,
    Ryan
  • Hey Ryan

    Cheers for the speedy reply! So the FatFs, HAL, and SDCardLib folders, are they just the necessary config files needed for SD card communication through SPI? I think what I'm trying to get at is, would I just be modifying the SDCardLogMode.c/h code for my needs, and leaving the other files as is?

    Regards

    Vivek

  • Also does the current code (or FatFs for that matter) have any restrictions on how large of an SD card I use? I've got a 32gb one with me, so is there anything in the code I'll need to change?

    Regards

    Vivek 

  • Hey Vivek,

    My knowledge of this OutOfBox code and SD card funcitonality is limited. Both the SD card hardware and Software Example description are covered in Sections 2.2.5 and 3.1.1, respectively, of the MSP-EXP430FR5994 User's Guide (SLAU678). It agree that SDCardLogMode.c would be the main change, other SD card resources pertain to initialization and file structure organization. 32 GB should be supported but you should research FatFs further to know for sure.

    www.ti.com/.../slau678a.pdf
    elm-chan.org/.../00index_e.html

    Regards,
    Ryan

**Attention** This is a public forum