Lpmsp430fr6989 unknow MCU HEader

Hey guys, I am trying to get this board MSP-EXP430FR6989 Development kit | TI.com working with platformio. Below is my code:

[env:lpmsp430fr6989]
platform = timsp430
board = lpmsp430fr6989
framework = energia
#include <Energia.h>

void setup() {
    pinMode(RED_LED, OUTPUT);     // set pin as output
}

void loop() {
    digitalWrite(RED_LED, HIGH);  // set the LED on
    delay(1000);                  // wait for a second
    digitalWrite(RED_LED, LOW);   // set the LED off
    delay(1000);                  // wait for a second
}

I this when I try to build:

"/Users/vbabiy/Library/Application Support/JetBrains/Toolbox/apps/CLion/ch-0/163.7743.47/CLion.app/Contents/bin/cmake/bin/cmake" --build /Users/vbabiy/Projects/platformio/ti/cmake-build-debug --target PLATFORMIO_BUILD -- -j 8
[Fri Dec  2 12:54:04 2016] Processing lpmsp430fr6989 (platform: timsp430, board: lpmsp430fr6989, framework: energia)
--------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
Collected 25 compatible libraries
Looking for dependencies...
Project does not have dependencies
Compiling .pioenvs/lpmsp430fr6989/src/main.o
Compiling .pioenvs/lpmsp430fr6989/FrameworkEnergia/HardwareSerial.o
Compiling .pioenvs/lpmsp430fr6989/FrameworkEnergia/IPAddress.o
Compiling .pioenvs/lpmsp430fr6989/FrameworkEnergia/MACAddress.o
Compiling .pioenvs/lpmsp430fr6989/FrameworkEnergia/Print.o
In file included from /Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Energia.h:4:0,
from src/main.cpp:1:
/Users/vbabiy/.platformio/packages/toolchain-timsp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/include/msp430.h:813:2: warning: #warning Unable to identify and include MCU header, use -mmcu=MCU [-Wcpp]
In file included from /Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Energia.h:4:0,
from /Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Arduino.h:3,
from /Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/IPAddress.cpp:2:
/Users/vbabiy/.platformio/packages/toolchain-timsp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/include/msp430.h:813:2: warning: #warning Unable to identify and include MCU header, use -mmcu=MCU [-Wcpp]
In file included from /Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Energia.h:4:0,
from /Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/HardwareSerial.cpp:36:
/Users/vbabiy/.platformio/packages/toolchain-timsp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/include/msp430.h:813:2: warning: #warning Unable to identify and include MCU header, use -mmcu=MCU [-Wcpp]
Compiling .pioenvs/lpmsp430fr6989/FrameworkEnergia/Stream.o
In file included from /Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Energia.h:4:0,
from /Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Arduino.h:3,
from /Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/MACAddress.cpp:2:
/Users/vbabiy/.platformio/packages/toolchain-timsp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/include/msp430.h:813:2: warning: #warning Unable to identify and include MCU header, use -mmcu=MCU [-Wcpp]
Compiling .pioenvs/lpmsp430fr6989/FrameworkEnergia/TimerSerial.o
In file included from /Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Energia.h:4:0,
from /Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Print.cpp:27:
/Users/vbabiy/.platformio/packages/toolchain-timsp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/include/msp430.h:813:2: warning: #warning Unable to identify and include MCU header, use -mmcu=MCU [-Wcpp]
In file included from /Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Energia.h:4:0,
from /Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Arduino.h:3,
from /Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Stream.cpp:23:
/Users/vbabiy/.platformio/packages/toolchain-timsp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/include/msp430.h:813:2: warning: #warning Unable to identify and include MCU header, use -mmcu=MCU [-Wcpp]
Compiling .pioenvs/lpmsp430fr6989/FrameworkEnergia/Tone.o
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Stream.cpp: In member function 'bool Stream::find(char*)':
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Stream.cpp:78:30: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
In file included from /Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Energia.h:4:0,
from /Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:32:
/Users/vbabiy/.platformio/packages/toolchain-timsp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/include/msp430.h:813:2: warning: #warning Unable to identify and include MCU header, use -mmcu=MCU [-Wcpp]
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp: In member function 'void TimerSerial::begin(long unsigned int)':
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:100:14: error: 'DEBUG_UARTRXD' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:100:29: error: 'DEBUG_UARTRXD_SET_MODE' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:101:14: error: 'DEBUG_UARTTXD' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:101:29: error: 'DEBUG_UARTTXD_SET_MODE' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:103:5: error: 'TA0CCTL0' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:103:16: error: 'OUT' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:104:5: error: 'TA0CCTL1' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:104:16: error: 'SCS' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:104:22: error: 'CM1' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:104:28: error: 'CAP' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:104:34: error: 'CCIE' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:105:5: error: 'TA0CTL' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:105:14: error: 'TASSEL_2' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:105:25: error: 'MC_2' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:105:32: error: 'TACLR' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp: In member function 'void TimerSerial::end()':
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:117:12: error: 'TA0CCTL0' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:117:23: error: 'CCIE' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:120:10: error: 'DEBUG_UARTTXD' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp: In member function 'virtual void TimerSerial::flush()':
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:146:12: error: 'TA0CCTL0' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:146:23: error: 'CCIE' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp: In member function 'virtual size_t TimerSerial::write(uint8_t)':
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:168:12: error: 'TA0CCTL0' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:168:23: error: 'CCIE' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:175:5: error: 'TA0CCR0' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:175:15: error: 'TA0R' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:177:5: error: 'TA0CCTL0' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:177:16: error: 'OUTMOD0' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:177:26: error: 'CCIE' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp: At global scope:
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:209:26: error: 'TIMER0_A0_VECTOR' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp: In function 'void TimerSerial__TxIsr()':
Compiling .pioenvs/lpmsp430fr6989/FrameworkEnergia/WInterrupts.o
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:212:13: error: interrupt vector offset must be an even non-negative integer constant
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:214:5: error: 'TA0CCR0' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:216:5: error: 'TA0CCTL0' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:216:17: error: 'OUTMOD2' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:222:22: error: 'CCIE' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp: At global scope:
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:244:26: error: 'TIMER0_A1_VECTOR' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp: In function 'void TimerSerial__RxIsr()':
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:247:13: error: interrupt vector offset must be an even non-negative integer constant
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:251:18: error: 'TA0IV' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:253:32: error: 'TA0CCTL1' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:255:5: error: 'TA0CCR1' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:257:20: error: 'CAP' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/TimerSerial.cpp:263:24: error: 'SCCI' was not declared in this scope
In file included from /Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Energia.h:4:0,
from /Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/wiring_private.h:37,
from /Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Tone.cpp:40:
/Users/vbabiy/.platformio/packages/toolchain-timsp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/include/msp430.h:813:2: warning: #warning Unable to identify and include MCU header, use -mmcu=MCU [-Wcpp]
Compiling .pioenvs/lpmsp430fr6989/FrameworkEnergia/WMath.o
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Tone.cpp: In function 'void initTimers()':
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Tone.cpp:135:3: error: 'TA0CCTL0' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Tone.cpp:136:3: error: 'TA0CCTL1' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Tone.cpp:140:3: error: 'TA0CTL' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Tone.cpp:140:12: error: 'TACLR' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Tone.cpp:140:20: error: 'TASSEL_2' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Tone.cpp:140:32: error: 'ID_3' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Tone.cpp:140:39: error: 'MC_2' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Tone.cpp: In function 'void setTimer(uint8_t, unsigned int, long unsigned int)':
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Tone.cpp:164:15: error: 'TA0CCTL0' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Tone.cpp:164:26: error: 'CCIE' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Tone.cpp:164:34: error: 'TA0CCR0' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Tone.cpp:164:44: error: 'TA0R' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Tone.cpp:165:7: error: 'TA0CCTL0' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Tone.cpp:165:18: error: 'CCIE' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Tone.cpp:168:14: error: 'TA0CCTL1' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Tone.cpp:168:33: error: 'TA0CCR1' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Tone.cpp:168:43: error: 'TA0R' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Tone.cpp:169:7: error: 'TA0CCTL1' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Tone.cpp: In function 'void stopTimer(uint8_t)':
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Tone.cpp:185:13: error: 'TA0CCTL0' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Tone.cpp:186:13: error: 'TA0CCTL1' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Tone.cpp: At global scope:
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Tone.cpp:206:26: error: 'TIMER0_A0_VECTOR' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Tone.cpp: In function 'void TIMER0_A0_ISR()':
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Tone.cpp:207:6: error: interrupt vector offset must be an even non-negative integer constant
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Tone.cpp:209:3: error: 'TA0CCR0' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Tone.cpp: At global scope:
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Tone.cpp:213:26: error: 'TIMER0_A1_VECTOR' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Tone.cpp: In function 'void TIMER0_A1_ISR()':
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Tone.cpp:214:6: error: interrupt vector offset must be an even non-negative integer constant
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Tone.cpp:216:12: error: 'TA0IV' was not declared in this scope
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Tone.cpp:218:15: error: 'TA0CCR1' was not declared in this scope
*** [.pioenvs/lpmsp430fr6989/FrameworkEnergia/TimerSerial.o] Error 1
*** [.pioenvs/lpmsp430fr6989/FrameworkEnergia/Tone.o] Error 1
In file included from /Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/Energia.h:4:0,
from /Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/wiring_private.h:37,
from /Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/WInterrupts.c:38:
/Users/vbabiy/.platformio/packages/toolchain-timsp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/include/msp430.h:813:2: warning: #warning Unable to identify and include MCU header, use -mmcu=MCU [-Wcpp]
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/WInterrupts.c: In function 'attachInterrupt':
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/WInterrupts.c:81:4: error: 'P1IES' undeclared (first use in this function)
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/WInterrupts.c:81:4: note: each undeclared identifier is reported only once for each function it appears in
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/WInterrupts.c:84:13: error: 'P1IN' undeclared (first use in this function)
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/WInterrupts.c:86:3: error: 'P1IFG' undeclared (first use in this function)
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/WInterrupts.c:88:3: error: 'P1IE' undeclared (first use in this function)
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/WInterrupts.c: In function 'detachInterrupt':
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/WInterrupts.c:144:3: error: 'P1IE' undeclared (first use in this function)
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/WInterrupts.c: In function 'Port_1':
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/WInterrupts.c:175:6: error: interrupt vector offset 'PORT1_VECTOR' is not an integer constant
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/WInterrupts.c:181:7: error: 'P1IFG' undeclared (first use in this function)
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/WInterrupts.c:184:5: error: 'P1IES' undeclared (first use in this function)
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/WInterrupts.c:185:15: error: 'P1IN' undeclared (first use in this function)
/Users/vbabiy/.platformio/packages/framework-energiamsp430/cores/msp430/WInterrupts.c:194:29: error: 'LPM4_bits' undeclared (first use in this function)
*** [.pioenvs/lpmsp430fr6989/FrameworkEnergia/WInterrupts.o] Error 1
========================== [ERROR] Took 0.82 seconds ==========================
make[3]: *** [CMakeFiles/PLATFORMIO_BUILD] Error 1
make[2]: *** [CMakeFiles/PLATFORMIO_BUILD.dir/all] Error 2
make[1]: *** [CMakeFiles/PLATFORMIO_BUILD.dir/rule] Error 2
make: *** [PLATFORMIO_BUILD] Error 2

I am not sure what I am missing.

Please report this issue to Issues · platformio/platform-timsp430 · GitHub

1 Like

Added ticket: lpmsp430fr6989 detection error · Issue #3 · platformio/platform-timsp430 · GitHub.

Ivan can you help me understand what the problem is, it seems like the msp430.h has no idea about the 6989.

MSP430 development platfrom is obsolate. We haven’t updated it since 2014 year. Need to re-test all boards and remove which don’t work.

PlatformIO is Free and Open Source project. You can improve it. See GitHub - platformio/platform-timsp430: TI MSP430: development platform for PlatformIO

Currently, we are focused on https://pioplus.com

Hey Ivan, I can’t seem to find the repo for the toolchain so I can update where is this?

I would need to start with updating platform-timsp430/platform.json at develop · platformio/platform-timsp430 · GitHub to the latest version right?

Could you check your example with http://energia.nu?

Yeah it works fine there. I have updated my toolchain and framework-energiamsp430 locally (based on what’s included in the latest Energia package), and have it almost building. But for some odd reason its not picking up pins_energia.h even though I have modified the cmake file to include the correct variant.

What do you mean? We don’t use CMake or etc.

So I am using CLion as my editor, I guess I need to update something else then

What is your OS? I’ve just downlaoded Energia and see that they use the same version of toolchain as PIO.

I am running mac osx.

After updating:

.platformio/platforms/timsp430/boards/lpmsp430fr6989.json with the new variant name

copying the content to framework-energiamsp430 and toolchain-timsp430 from Energiamsp430. I can now build the project.

I am getting this error when I try to upload tilib: can't find libmsp430.so: dlopen(libmsp430.so, 1): image not found But I think the fix in the blog post in the docs.

I’m working on it. Will reply here later.

Wow thanks Ivan.

Really appreciate your hard work.

Would be thankful if you support us via https://pioplus.com

1 Like

Thanks a lot that you have supported us!!! That is very important for the further development :moneybag:

1 Like

Fixed in new development version 1.2.0

1 Like

Thanks the build works :thumbsup:

I can’t seem to get around this libmsp430.so issue

ti » echo $LD_LIBRARY_PATH                                                                                                                                                          Vitalys-MBP@~/Projects/platformio/ti 17:14:37 1 ↵
/Users/vbabiy/.platformio/packages/tool-mspdebug/
ti » platformio run --target upload                                                                                                                                                    Vitalys-MBP@~/Projects/platformio/ti 17:14:38
[Fri Dec  2 17:14:43 2016] Processing lpmsp430fr6989 (platform: timsp430, board: lpmsp430fr6989, framework: energia)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
Collected 29 compatible libraries
Looking for dependencies...
Project does not have dependencies
Uploading .pioenvs/lpmsp430fr6989/firmware.hex
MSPDebug version 0.20 - debugging tool for MSP430 MCUs
Copyright (C) 2009-2012 Daniel Beer <dlbeer@gmail.com>
This is free software; see the source for copying conditions.  There is NO
tilib: can't find libmsp430.so: dlopen(libmsp430.so, 1): image not found
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

*** [upload] Error 255
====================================================================================================== [ERROR] Took 0.62 seconds ======================================================================================================
ti » ls -al $LD_LIBRARY_PATH                                                                                                                                                        Vitalys-MBP@~/Projects/platformio/ti 17:15:25 1 ↵
total 31408
drwx------  6 vbabiy  staff       204 Dec  2 17:13 .
drwxr-xr-x  7 vbabiy  staff       238 Dec  2 17:13 ..
-rwxr-xr-x  1 vbabiy  staff  15704296 Mar  4  2014 libmsp430.so
-rwxr-xr-x  1 vbabiy  staff    330856 Mar  4  2014 mspdebug
-rw-r--r--  1 vbabiy  staff     33938 Sep 23  2012 mspdebug.man
-rw-rw-r--  1 vbabiy  staff       204 Apr  1  2016 package.json

Any idea why it still can’t find it