leinadrik 0 Posted February 3, 2017 Share Posted February 3, 2017 Hello I'm have two problem with the version 18 of energia. 1.- When I try to program my msp430g2553 the IDE show the message: exec: "C:\\Users\\CORE RIKMED\\Downloads\\energia-1.6.10E18\\hardware\\tools\\msp430/bin/msp430-g++": file does not exist Error compilaci Quote Link to post Share on other sites
energia 484 Posted February 10, 2017 Share Posted February 10, 2017 The current msp430 compiler does not deal well with spaces. Try putting energia-1.6.10E18 in c:\. For the MSP432 problem it would help if you could post the Sketch so that we can have a look at it. Quote Link to post Share on other sites
leinadrik 0 Posted February 16, 2017 Author Share Posted February 16, 2017 The current msp430 compiler does not deal well with spaces. Try putting energia-1.6.10E18 in c:\. For the MSP432 problem it would help if you could post the Sketch so that we can have a look at it. This is the code, it only run the setup not the loop #include <Wire.h> byte reg_battery; byte battery; void setup() { Wire.begin(); Wire.beginTransmission(0x6A); Wire.write(0x02); Wire.write(B11011101); Wire.endTransmission(); Serial.begin(9600); // comprobando cambios } void loop() { Wire.beginTransmission(0x6A); Wire.write(0x02); Wire.write(B11011101); Wire.endTransmission(); Wire.beginTransmission(0x6A); Wire.write(0x0E); Wire.endTransmission(); Wire.requestFrom(0x6A, 1); reg_battery = Wire.read(); battery = reg_battery & B01111111; battery = (battery*20) + 2304; if (battery <= 3104) { Wire.beginTransmission(0x6A); Wire.write(0x09); Wire.write(B01100100); Wire.endTransmission(); } Serial.print(battery); } Quote Link to post Share on other sites
KeithB 0 Posted February 16, 2017 Share Posted February 16, 2017 How do you know it is not working? Try putting a delay(1000) and Serial.println("Hello, World!") at the end of setup. Quote Link to post Share on other sites
energia 484 Posted February 16, 2017 Share Posted February 16, 2017 The Sketch looks OK. Usually the problem is with the pull-ups on the I2C lines. Also make sure you have a good ground connection between the I2C device and the LaunchPad. The Sketch works fine with my I2C tool (Aardvark). I suspect that you have an issue in the wiring between the I2C device and the LaunchPad. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.