Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


energia last won the day on August 6

energia had the most liked content!

About energia

  • Rank
    Level 4

Contact Methods

  • Website URL

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. energia

    MSP432 Black suddenly gone from Energia

    This board is indeed obsoleted. It was replaced by the RED board many years ago. The TI-RTOS version it was based on no longer receives updates. Hence, it was time to retire this. If you still like access to this board then do the following: Open Energia's preferences (File->Preferences or on macOS Energia->Preferences) Located "Additional Boards Manager URLs" and paste the following link into that field: https://energia.nu/packages/package_msp432_black_index.json Go to the board manager and you should see the black board appear again. Good luck with your Robot project. Robert
  2. energia

    i2c communication not working on msp430fr5969 rev 2.0

    I just ran a quick test with the Sketch below. This is using MSP430 core version 1.0.3. Note that as per pinmap I2C lines, by default, are on pins 9 (SCL) and 10 (SDA) http://energia.nu/pinmaps/msp-exp430fr5969/. Also make sure that you have GND connected from the device to the LaunchPad. What type of device are you trying to talk to? #include <Wire.h> void setup() { Wire.begin(); // join i2c bus (address optional for master) Serial.begin(115200); // start serial for output } uint16_t x = 0; void loop() { /* Read from device #2 */ Wire.requestFrom(2, 6); // request 6 bytes from slave device #2 while(Wire.available()) // slave may send less than requested { char c = Wire.read(); // receive a byte as character Serial.print(c); // print the character } Serial.println(); /* Write to device #2 */ Wire.beginTransmission(2); // transmit to device #2 Wire.write("x is "); // sends five bytes Wire.write(x); // sends one byte Wire.endTransmission(); // stop transmitting x++; delay(500); }
  3. energia

    Energia Library in CCS

    You can. Simply #include the library you wish to use in your Sketch. All libraries that are in the Energia library folder can be used. To find out where your Energia libraries are stored, go to the Energia preferences and note the "Sketchbook location" directory. The libraries are stored in the Sketchbook Location folder / libraries. Robert
  4. All you need to know is in the datasheet: http://www.ti.com/lit/gpn/msp430g2453
  5. Same for the "Positive-going input threshold voltage"
  6. Please specify which MSP430. The attached is from the datasheet for the F5529. You should be able to find something similar in the datasheet for the MSP430 you are using.
  7. energia

    MSP430 Serial Monitor not working

    You might have one of those LaunchPads that comes out of the box configured to use software uart. On a Rev 1.5 LaunchPad, J3's RX and TX jumpers need to be set to the horizontal position to work with Serial. Also make sure that you match the baudrate set in the Sketch in the Serial monitor. In your test Sketch, you might want to add a small delay (e.g. delay(200)) at the end of the loop to not flood the Serial monitor. Please see the pinmap:
  8. energia

    MSP430FR6989: Serial port monitor is not working

    You should be using COM16. What baudrate do you have set in the Sketch (the number in Serial.begin(....)) and does that match the baudrate in the Serial monitor (lower right corner). Can you please try the Sketch "File->Examples->04.Communication->ASCIITable". The baudrate is set to 9600 so make sure that it matches the baudrate set in the Serial monitor. Robert
  9. energia

    MSP430FR6989: Serial port monitor is not working

    Tools->Board->Boards Manager... Not that this is only available in Energia 18 and later.
  10. energia

    MSP430 GPS

    Thank you for reporting back that you got it solved. You probably suffered from out of heap memory. If the library makes extensive use of the String library or does malloc() (Both not recommended for small memory micros).
  11. You'll have to be a bit more specific about what "energy" you would like to monitor / measure.
  12. You are using Energia API's mixed with setting registers. Energia API's assume exclusive access to registers without user interference. We can however make this work with one small modification to wiring_analog.c In wiring_analog.c on line 61 just under the first if defined(__MSP430_HAS_ADC12_B__) change #define REF_MAP(x) (x & 0x31) to #define REF_MAP(x) (x & 0x33). You can find the msp430 core in: Linux: ~/.energia15/packages/energia/hardware/ Windows: %LOCALAPPDATA%\Energia15\packages\energia\hardware\ macOS: ~/Library/Energia15/packages/energia/hardware/ wiring_analog.c is under cores/msp430/ Then use the Sketch below. #define MY_INTERNAL2V0 (ADC12VRSEL_1 | REFON | REFVSEL_0 | REFOUT) #define ANALOG_RES 12 void setup() { analogReadResolution(ANALOG_RES); analogReference(MY_INTERNAL2V0); Serial.begin(115200); } void loop() { int val = analogRead(A11); /* * Note that the default resolution for the FR6989 is 12 bit. * This can be changed with analogReadResolution(resolution in bits) */ float voltage = val * (1.2 / (1 << ANALOG_RES)); Serial.print(voltage * 1000); Serial.println(" mV"); delay(500); }
  13. analogRead() will overwrite whatever you have written into REFCTL0 and therefor you are getting 0 as the REFOUT bit is not set. To work-around this do the following: `#define MY_INTERNAL2V0 (ADC12VRSEL_1 | REFON | REFVSEL_0 | REFOUT)` Then in setup call analogReference(MY_INTERNAL2V0) in setup() and do not call your function Vref_ON().
  14. No need to file a github issue. It has already been done.
  15. You are right about the offset. It needs to be 0x20. Please github issue here: https://github.com/energia/msp430-lg-core/issues/65. Same for the I2C module. This is indeed also an error in the pins file.