Texas Instruments Energia IDE

From CNC Wiki
Jump to navigation Jump to search

Overview

A modified version of Arduino IDE for Texas Instruments MPS430 development boards.

Installation

Linux

Download the latest .tar.xz archive from the following page:

https://energia.nu/download/

Then unpack it somewhere such as ~/opt (it will create it's own subdirectory):

cd ~/opt
tar xf ~/Downloads/energia-1.8.10E23-linux64.tar.xz

Set up the udev rules, which allow normal users permission to use the USB in-circuit programmer which is integrated on the development board. The instructions are here:

https://energia.nu/guide/install/linux/

sudo wget https://s3.amazonaws.com/energiaUS/files/71-ti-permissions.rules -O /etc/udev/rules.d/71-ti-permissions.rules

From a fresh install, you might get error while attempting to upload a project to the board. You must first update the boards package:

Tools->Board->Boards Manager...->Energia MSP430 boards->Update

It's possible there will be an issue with the board updating the programmer's firmware, in which case it might need to be fixed using MSP430Flasher. You can download it here (but you need to an account):

https://www.ti.com/tool/MSP430-FLASHER

https://apps.industrialshields.com/main/openmote/tools/MSPFlasher-1_03_20_00-linux-x64-installer.zip (direct link)

Inside the ZIP there is a GUI installer in the form of a .run file:

7z x MSPFlasher-1_03_20_00-linux-x64-installer.zip
chmod a+x MSPFlasher-1.3.20-linux-x64-installer.run
./MSPFlasher-1.3.20-linux-x64-installer.run

To initiate a firmware recovery, run MSP430Flasher without any target board:

cd ~/opt/MSPFlasher_1.3.20
sudo LD_LIBRARY_PATH=. ./MSP430Flasher -n NO_TARGET

NOTE: it may be possible to perform the update without root permissions, but it probably isn't worth the trouble to set up for this one time application

Sample output of above command:

* -----/|-------------------------------------------------------------------- *
*     / |__                                                                   *
*    /_   /   MSP Flasher v1.3.20                                             *
*      | /                                                                    *
* -----|/-------------------------------------------------------------------- *
*
* Evaluating triggers...done
* Checking for available FET debuggers: 
* Found USB FET @ ttyACM0 <- Selected
* Initializing interface @ ttyACM0...done
* Checking firmware compatibility: 
* The firmware of your FET is outdated.
- Would you like to update it? (Y/N): y

*********************************************************
*                                                        
*  Initializing Update Bootloader.                       
*  Programming new firmware:                             
*  |||||||||||||||||||||||||||||||||||||||||||||||||| 100%
*********************************************************
*                                                        
*  Initializing Update Bootloader.                       
*  Programming new firmware:                             
*  |||||||||||||||||||||||||||||||||||||||||||||||||| 100%
*  Update was successfully finished.                   
*                                                        
*********************************************************

*  Exit Update Bootlader and reboot firmware.            
* FET firmware is up to date.
* 
* ----------------------------------------------------------------------------
* Driver      : closed (No error)
* ----------------------------------------------------------------------------
*/

Online Resources

Energia IDE

Resolved: Unable to upload anything to the EXP430 - Energia - MSP - 43oh