Wednesday, July 18, 2012

Energia Setup

There is a link in the "issues" section of the github site for energia.

Setup
Extract to a folder on your computer, inside that folder go to hardware/tools/mspgcc-4.6


Swap to super user. (may not be necessary but for sure need to use SUDO).

Then finally run bash ./build-mspgcc
A while later when it's done, you can navigate up a level to the same folder as mspdebug.

Make sure to set the execute bit on this file. This will require use of CHMOD. I just used 777 to be quick, but be careful as this isn't always the best choice of permissions.

Plug your launchpad board to the computer.

Now navigate to the main folder and run (at a minimum sudo) ./energia as super user.

This is the screen you get when you first start.

Ensure your board is communicating:
Select tools->serial port make sure something is there and selected.

Select tools->Board make sure your launchpad is listed and selected.

Select tools -> Programmer mine says AVRISP mkII not 100% if yours should be but these should already be selected automatically.

Test Program A.K.A Hello World
Select file-> examples -> 1. Basics -> Blink


Finally you get the above. Now if you hover over the second button from the left, you see it says Upload.

Click this button your board's led2 should be blinking (this is the led near the bottom of the board, opposite the USB cable, near a button and pair of jumpers).

You should be good to go, have fun and good luck, oh and,

HELLO BACK