platformio / platformio-examples

PlatformIO Project Examples
Apache License 2.0
590 stars 175 forks source link

lpmsp430fr6989 detection error #5

Closed vbabiy closed 7 years ago

vbabiy commented 7 years ago

I am trying to get this board http://www.ti.com/tool/msp-exp430fr6989 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
vbabiy commented 7 years ago

wrong repo