Hi everyone,
I just got a MSP430F5529 and I am trying to get it to log some data on an SD card.
I am trying to follow this guide here: http://43oh.com/2013/12/interfacing-the-launchpad-to-an-sd-card-a-walkthrough/
When trying to compile the included example code I get the following errors (I am compiling for 25MHz MSP430F5529)
[/home/iskender/Programs/energia-0101E0015/hardware/tools/msp430/bin/msp430-g++, -c, -Os, -w, -ffunction-sections, -fdata-sections, -mmcu=msp430f5529, -DF_CPU=25000000L, -MMD, -DARDUINO=101, -DENERGIA=15, -I/home/iskender/Programs/energia-0101E0015/hardware/msp430/cores/msp430, -I/home/iskender/Programs/energia-0101E0015/hardware/msp430/variants/launchpad_f5529, -I/home/iskender/Programs/energia-0101E0015/hardware/msp430/libraries/pFatFS, -I/home/iskender/Programs/energia-0101E0015/hardware/msp430/libraries/SPI, /tmp/build308404098845880812.tmp/SDCardTutorialWithEnergia.cpp, -o, /tmp/build308404098845880812.tmp/SDCardTutorialWithEnergia.cpp.o]
In file included from /home/iskender/Programs/energia-0101E0015/hardware/msp430/libraries/pFatFS/pfatfs.h:23:0,
from SDCardTutorialWithEnergia.ino:1:
/home/iskender/Programs/energia-0101E0015/hardware/msp430/libraries/pFatFS/utility/pff.h:57:3: error: expected unqualified-id before numeric constant
/home/iskender/Programs/energia-0101E0015/hardware/msp430/libraries/pFatFS/utility/pff.h:57:3: error: expected ')' before numeric constant
/home/iskender/Programs/energia-0101E0015/hardware/msp430/libraries/pFatFS/utility/pff.h:95:25: error: expected primary-expression before ',' token
/home/iskender/Programs/energia-0101E0015/hardware/msp430/libraries/pFatFS/utility/pff.h:95:27: error: expected primary-expression before 'const'
/home/iskender/Programs/energia-0101E0015/hardware/msp430/libraries/pFatFS/utility/pff.h:95:38: error: expression list treated as compound expression in initializer [-fpermissive]
/home/iskender/Programs/energia-0101E0015/hardware/msp430/libraries/pFatFS/utility/pff.h:96:25: error: expected primary-expression before ',' token
/home/iskender/Programs/energia-0101E0015/hardware/msp430/libraries/pFatFS/utility/pff.h:96:34: error: expected primary-expression before '*' token
/home/iskender/Programs/energia-0101E0015/hardware/msp430/libraries/pFatFS/utility/pff.h:96:35: error: expected primary-expression before ')' token
/home/iskender/Programs/energia-0101E0015/hardware/msp430/libraries/pFatFS/utility/pff.h:96:35: error: expression list treated as compound expression in initializer [-fpermissive]
In file included from SDCardTutorialWithEnergia.ino:1:0:
/home/iskender/Programs/energia-0101E0015/hardware/msp430/libraries/pFatFS/pfatfs.h:37:11: error: expected unqualified-id before numeric constant
/home/iskender/Programs/energia-0101E0015/hardware/msp430/libraries/pFatFS/pfatfs.h:37:11: error: expected ')' before numeric constant
/home/iskender/Programs/energia-0101E0015/hardware/msp430/libraries/pFatFS/pfatfs.h:81:19: error: expected identifier before '(' token
/home/iskender/Programs/energia-0101E0015/hardware/msp430/libraries/pFatFS/pfatfs.h:81:19: error: expected ')' before numeric constant
/home/iskender/Programs/energia-0101E0015/hardware/msp430/libraries/pFatFS/pfatfs.h:81:19: error: expected ')' before numeric constant
/home/iskender/Programs/energia-0101E0015/hardware/msp430/libraries/pFatFS/pfatfs.h:81:19: error: expected ';' at end of member declaration
/home/iskender/Programs/energia-0101E0015/hardware/msp430/libraries/pFatFS/pfatfs.h:81:19: error: expected unqualified-id before numeric constant
/home/iskender/Programs/energia-0101E0015/hardware/msp430/libraries/pFatFS/pfatfs.h:84:19: error: expected identifier before '(' token
/home/iskender/Programs/energia-0101E0015/hardware/msp430/libraries/pFatFS/pfatfs.h:84:19: error: expected ')' before numeric constant
/home/iskender/Programs/energia-0101E0015/hardware/msp430/libraries/pFatFS/pfatfs.h:84:19: error: expected ')' before numeric constant
/home/iskender/Programs/energia-0101E0015/hardware/msp430/libraries/pFatFS/pfatfs.h:84:19: error: expected ';' at end of member declaration
/home/iskender/Programs/energia-0101E0015/hardware/msp430/libraries/pFatFS/pfatfs.h:84:19: error: expected unqualified-id before numeric constant
SDCardTutorialWithEnergia.ino:30:1: error: expected unqualified-id before numeric constant
SDCardTutorialWithEnergia.ino:30:1: error: expected ')' before numeric constant
My understanding is that the code is written for msp430g2553 (and it indeed compiles with no errors when I select that board in the board menu). I was expecting that I would need to change some of the pin definitons so that the code works with the new MSP, but I cannot make sense of the above errors.
Has anyone have any suggesstions about how to get the petiteFS to work with MSP430F5529, or any alternative libraries to use?
Thanks!!
PS: I am running Energia 0101E0015 under 64-bit Ubuntu 14.04.