Giter Club home page Giter Club logo

msp-exp430g2et-energia's Introduction

Energia Support for MSP-EXP430G2ET

Update

The MSP-EXP430G2ET LaunchPads are now supported by Energia version 1.8.7E20 (released October 2, 2018). Energia 20 includes version 1.0.4 of the MSP430 boards package. It includes an 8.x version of dslite and a boards.txt file which allows the selection of the MSP-EXP430G2ET LaunchPads from the Tools->Board... menu.

The procedure below can be used with Energia 18.

Original Writeup (for use with Energia 18)#

Texas Instruments has released an updated version of the MSP430G2 LaunchPad: MSP-EXP430G2ET. The updated LaunchPad supports the same DIP-package G2 processors as the old LaunchPad, along with adding an RGB LED to the existing RED and GREEN LEDs. Most significantly, however, is an update to the emulation section to TI's eZ-FET debugger, including EnergyTrace support (hence the "ET" in the Launchpad name). This brings the G2 debugging and emulation interface to be on-par with newer LaunchPad products.

Unfortunately, the current version of Energia (18) and the MSP430 boards package (1.0.3) does not support the LaunchPad, since it assumes that the older emulation interface is used when programming MSP430G2 chips.

This repo contains a somewhat hacked method of supporting the new G2ET LaunchPad in Energia. Hopefully, full support for the new LaunchPad will be available in an upcoming MSP430 board package update.

As of now, this repo only supports Windows. See the Background section below for hints on how to support other OSes.

Installing (Windows)

  1. Close all Energia windows (completely shut down the program).

  2. Download all the files in this repo.

  3. Create a new directory called uniflash at %LOCALAPPDATA%\Energia15\packages\energia\tools:

     C:\> mkdir %LOCALAPPDATA%\Energia15\packages\energia\tools\uniflash
    
  4. Copy the files boards.txt, platform.txt, and programmers.txt to %LOCALAPPDATA%\Energia15\packages\energia\hardware\msp430\1.0.3

  5. Re-start Energia. You should now have MSP-EXP430G2ET w/ MSP430G2553 (16 MHz) available in the Tools->Board menu.

Usage Notes

As with the older G2 LaunchPad, it is necessary to place the RXD and TXD jumpers on J101 in a horizontal position in order to uses the hardware UART.

If you have made any changes to boards.txt, platform.txt, or programmers.txt, then you will need to manually merge in the changes to those files.

Re-installing version 1.0.3 of the MSP430 board package will replace the updated versions of boards.txt, platform.txt, and programmers.txt with the default versions, so they will need to be re-installed again, too.

An updated version of the MSP430 board package may or may not include support for the G2ET LaunchPad, and the changes described here may or may not work with the new package.

In addition to adding support for the G2ET LaunchPad, the boards.txt file also adds support for programming the G2553 processor at 8 MHz instead of the default 16 MHz clock speed (for both the old and new LaunchPads). The 8 MHz clock speed is needed when running the G2 at a lower supply voltage (such as when using a coin cell battery).

Background

Energia uses a tool called mspdebug for flashing the older MSP-EXP430G2 LaunchPads. This tool does not work with the eZ-FET debugger included with the newer G2ET LaunchPads. All the other MSP430 LaunchPads use the dslite tool. However, the version of dslite included with Energia 18 (7.4.0.1099) does not support the eZ-FET version on the G2ET LauchPads. The newer version of dslite included with CCS 8.x and UniFlash 4.x is required.

UniFlash includes a feature to export a standalone command line package. This package includes all the executables, libraries, and configuration files to flash a device. The 4.4.0.2009 directory in this repo was created from UniFlash 4.4 using an MSP430G2 configuration, and contains version 8.1.0.1365 of dslite.

For MacOS or Linux support, a similar procedure could be used to create the necessary executables by running the Standalone Command Line package export from the OS-specific version of UniFlash, then following a similar procedure as outlined in the Installing section above.

Energia should be able to officially support the G2ET LaunchPad in the future with an updated MSP430 board package which includes the latest version of the dslite tool.

License

The 4.4.0.2009 directory is a package exported from TI's UniFlash tool and is distributed per the UniFlash license agreement. The UniFlash license agreement file was manually added to the directory after it was exported from UniFlash.

boards.txt, platform.txt, or programmers.txt are modified versions of files included in Energia, and are distributed per the Energia license.

References

msp-exp430g2et-energia's People

Contributors

andy4495 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.