MSP_EXP430G2 compiling problems

I tried to see if it is possible to use some MSP-EXP430G2 boards rev 1.4 (the old one) I was having. The first test was to have a led blinking, result OK.
Then I have added an LCD display with I2C, result the following:
Verbose mode can be enabled via -v, --verbose` option
CONFIGURATION: Redirecting...
PLATFORM: TI MSP430 (2.4.0) > TI LaunchPad MSP-EXP430G2553LP
HARDWARE: MSP430G2553 16MHz, 512B RAM, 16KB Flash
DEBUG: Current (mspdebug) On-board (mspdebug)
PACKAGES:

  • framework-energiamsp430 @ 1.10810.210219 (1.8.10)
  • toolchain-timsp430 @ 1.40603.210219 (4.6.3)
    LDF: Library Dependency Finder → Library Dependency Finder (LDF) — PlatformIO latest documentation
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Found 19 compatible libraries
    Scanning dependencies…
    Dependency Graph
    |-- LiquidCrystal_I2C
    |-- Wire @ 1.0.1
    Building in release mode
    Compiling .pio\build\lpmsp430g2553\src\main.cpp.o
    Compiling .pio\build\lpmsp430g2553\libdd6\Wire\utility\twi.c.o
    C:\Users\gsrad.platformio\packages\framework-energiamsp430\libraries\Wire\utility\twi.c: In function ‘twi_disable’:
    C:\Users\gsrad.platformio\packages\framework-energiamsp430\libraries\Wire\utility\twi.c:443:5: error: ‘UCBzCTLW0’ undeclared (first use in this function)
    C:\Users\gsrad.platformio\packages\framework-energiamsp430\libraries\Wire\utility\twi.c:443:5: note: each undeclared identifier is reported only once for each function it appears in
    Compiling .pio\build\lpmsp430g2553\FrameworkEnergia\Stream.cpp.o
    *** [.pio\build\lpmsp430g2553\libdd6\Wire\utility\twi.c.o] Error 1``
    type or paste code here
Win 11 this the code
``#include <Arduino.h>
#include <LiquidCrystal_I2C.h>
//#include <Wire.h>

LiquidCrystal_I2C lcd(0x27,16,2);  

void setup() {
  pinMode(P1_6, OUTPUT);
  digitalWrite(P1_6, LOW);
  lcd.init();
  lcd.backlight(); 
  lcd.setCursor(0, 0);
  lcd.print ("HALLO WORLD 1234"); 
  lcd.setCursor(0, 1);
  lcd.print ("  1234567890  AB"); 
}
void loop() { 
  digitalWrite(P1_6, HIGH);
  delayMicroseconds(500);
  digitalWrite(P1_6, LOW);
  delayMicroseconds(500);
}

PlatformIoìO ini
[env:lpmsp430g2553]
platform = timsp430
board = lpmsp430g2553
framework = arduino

Which LiquidCrystal_I2C library do you use?
I’m missing it in the lib_dep.

(I have to admit that I have no clue about TIMSP430 platform.)

Hi
Let me say some thing before I am not a soft man I am an electromechanical one. I started in playing with 8080, machine language then I passed on Freescale starting with CPU 12VCC. When I retired I try to use PIC and TI, but at the end I discover that Nano and Mega boards was more than enough for the needs of today. This speech is just to say I put in a box MSP-EXP430G2, MSP430F5529LP and EK-LM4F120XL and I forgot them. As Platformio seems to be able to work with my old boards I said let me check

Fist board first check

void setup() {
  pinMode(P1_6, OUTPUT);
  digitalWrite(P1_6, LOW);
}
void loop() { 
  digitalWrite(P1_6, HIGH);
  delayMicroseconds(500);
  digitalWrite(P1_6, LOW);
  delayMicroseconds(500);
}

Result is working but compiling

Compiling .pio\build\lpmsp430g2452\FrameworkEnergia\main.cpp.o
C:\Users\gsrad\.platformio\packages\framework-energiamsp430\cores\msp430\atof.c: In function 'atof':
C:\Users\gsrad\.platformio\packages\framework-energiamsp430\cores\msp430\atof.c:71:9: warning: floating constant exceeds range of 'double' [-Woverflow]

Second test same as before plus LCD

#include <Arduino.h>
#include <LiquidCrystal.h>

// initialize the library by associating any needed LCD interface pin
// with the arduino pin number it is connected to
const int rs = P1_4, en = P1_5, d4 = P1_3, d5 = P1_2, d6 = P1_1, d7 = P1_0;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);

void setup() {
  pinMode(P1_6, OUTPUT);
  digitalWrite(P1_6, LOW);
  lcd.begin(16, 2); 
  lcd.print("hello, world!");
}

void loop() {
  digitalWrite(P1_6, HIGH);
  delayMicroseconds(500);
  digitalWrite(P1_6, LOW);
  delayMicroseconds(500);

[env:lpmsp430g2452]
platform = timsp430
board = lpmsp430g2452
framework = arduino
lib_deps = arduino-libraries/LiquidCrystal@^1.0.7

Result is compiling and uploading but LDC display not working an port P1.6 no more working.

CHANGED BOARD AND CPU G2553
Test with just loop of port P1.6 compiling loading Working
added LCD via I2C

#include <Arduino.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27,16,2);     

void setup() {
  pinMode(P1_0, OUTPUT);
  digitalWrite(P1_0, LOW);
  lcd.init(P1_7, P1_6);
  lcd.backlight(); 
  lcd.setCursor(0, 0);
  lcd.print ("PIPPO POLDO");
}

void loop() {
  digitalWrite(P1_0, HIGH);
  delayMicroseconds(500);
  digitalWrite(P1_0, LOW);
  delayMicroseconds(500);
}

env:lpmsp430g2553]
platform = timsp430
board = lpmsp430g2553
framework = arduino
lib_deps = tonykambo/LiquidCrystal_I2C@0.0.0-alpha+sha.3aa702a291
C:\Users\gsrad\.platformio\packages\framework-energiamsp430\libraries\Wire\utility\twi.c: In function 'twi_disable':
C:\Users\gsrad\.platformio\packages\framework-energiamsp430\libraries\Wire\utility\twi.c:443:5: error: 'UCBzCTLW0' undeclared (first use in this function)
C:\Users\gsrad\.platformio\packages\framework-energiamsp430\libraries\Wire\utility\twi.c:443:5: note: each undeclared identifier is reported only once for each function it appears in
Compiling .pio\build\lpmsp430g2553\FrameworkEnergia\Stream.cpp.o
*** [.pio\build\lpmsp430g2553\libdd6\Wire\utility\twi.c.o] Error 1
.pio\libdeps\lpmsp430g2553\LiquidCrystal_I2C\LiquidCrystal_I2C.cpp: In member function 'void LiquidCrystal_I2C::init_priv(uint8_t, uint8_t)':
.pio\libdeps\lpmsp430g2553\LiquidCrystal_I2C\LiquidCrystal_I2C.cpp:61:30: error: no matching function for call to 'TwoWire::begin(uint8_t&, uint8_t&)'
.pio\libdeps\lpmsp430g2553\LiquidCrystal_I2C\LiquidCrystal_I2C.cpp:61:30: note: candidates are:
C:\Users\gsrad\.platformio\packages\framework-energiamsp430\libraries\Wire/Wire.h:65:10: note: void TwoWire::begin()
C:\Users\gsrad\.platformio\packages\framework-energiamsp430\libraries\Wire/Wire.h:65:10: note:   candidate expects 0 arguments, 2 provided
C:\Users\gsrad\.platformio\packages\framework-energiamsp430\libraries\Wire/Wire.h:66:10: note: void TwoWire::begin(uint8_t)
C:\Users\gsrad\.platformio\packages\framework-energiamsp430\libraries\Wire/Wire.h:66:10: note:   candidate expects 1 argument, 2 provided
C:\Users\gsrad\.platformio\packages\framework-energiamsp430\libraries\Wire/Wire.h:67:10: note: void TwoWire::begin(int)
C:\Users\gsrad\.platformio\packages\framework-energiamsp430\libraries\Wire/Wire.h:67:10: note:   candidate expects 1 argument, 2 provided
*** [.pio\build\lpmsp430g2553\libe14\LiquidCrystal_I2C\LiquidCrystal_I2C.cpp.o] Error 1

TESTING SAME BOARD OF BEFORE DIFFERENT LIB

#include <Arduino.h>
#include <Wire.h>
#include <hd44780.h>
#include <hd44780ioClass/hd44780_HC1627_I2C.h>

hd44780_HC1627_I2C lcd(0x27);

const int LCD_COLS = 16;
const int LCD_ROWS = 2;


void setup() {
  pinMode(P1_0, OUTPUT);
  digitalWrite(P1_0, LOW);
  int status;
  lcd.print("Hello, World!");
}

void loop() { 
  digitalWrite(P1_0, HIGH);
  delayMicroseconds(500);
  digitalWrite(P1_0, LOW);
  delayMicroseconds(500);
}
[env:lpmsp430g2553]
platform = timsp430
board = lpmsp430g2553
framework = arduino
lib_deps = duinowitchery/hd44780@^1.3.2
Compiling .pio\build\lpmsp430g2553\FrameworkEnergia\MACAddress.cpp.o
C:\Users\gsrad\.platformio\packages\framework-energiamsp430\libraries\Wire\utility\twi.c: In function 'twi_disable':
C:\Users\gsrad\.platformio\packages\framework-energiamsp430\libraries\Wire\utility\twi.c:443:5: error: 'UCBzCTLW0' undeclared (first use in this function)
C:\Users\gsrad\.platformio\packages\framework-energiamsp430\libraries\Wire\utility\twi.c:443:5: note: each undeclared identifier is reported only once for each function it appears in
*** [.pio\build\lpmsp430g2553\libdd6\Wire\utility\twi.c.o] Error 1

Your suggestion may be also “put again in the box”