Quantcast
Channel: MSP430 Technical Forums
Viewing all articles
Browse latest Browse all 2077

Using the CC430 Experimenters Board in Energia

$
0
0

Yesterday my CC430 experimenters board arrived, so this afternoon I had a play to see if I could get Energia talking to it.  After editing the boards.txt, and creating new variants for both boards (the satellite and the base board), and modifying the relevant pins_energia.h files, and a quick and dirty tweak to the hal_lcd files that came with the source-code to the CC430's pre-loaded app,  I have finally managed to compile & upload some basic sketches to both the base-board & satellite board.

 

At the moment this is the state of my playing:

 

Working:

1. Turning on/off the onboard LED's

2. Reading the onboard pushbuttons

3. Using the LCD screen with the hal_lcd library that was included with the source-code for the pre-loaded app.

4. Uploading sketches from Windows.

 

Not Working:

1. delay() takes about 10x longer than it should - presumably millis() is also running slow, so it seems the clocks aren't getting configured correctly.

2. serial doesn't work - I'm not sure if this is a clocking issue related to the above problem, or if it is a more serious problem.

3. Uploading from Mac OSX - I'm using 10.9 and getting errors about there being no free FET.

 

Not Tested:

Pretty much everything else that energia is capable of doing 

 

No attempt made to try to get working:

SPI, I2C - I haven't touched the 5529 configuration for these, so they are pointing to the wrong pins. The default pins for these functions aren't exposed on the satellite board, and on the base-board they are shared with the LCD, so to use these functions will require mapping - I haven't looked into how feasible that is yet.

Radio - I haven't made any attempt at porting this yet.

I haven't tried to enable the use of the pins that are used for the LCD as GPIO ports. I haven't studied the board in enough depth to know if this is possible.

 

I'm quite happy with my progress thus far. Although ultimately I'd like to get the board completely up and running in Energia, I don't know if that will be even possible, but it is giving me a good challenge.  I welcome feedback and especially welcome any hints on how to fix the problems listed above. 

 

Attached is a zip with some of the files I've been tinkering with. In the zip file you'll find the following:

Energia folder containing simple test sketches and the hal_lcd library - this goes in your Energia user directory.

boards.txt file - this goes into the ./hardware/msp430 folder of your Energia installation.

variants folder - put the contents of this into the ../hardware/msp430/variants folder of your Energia installation.

Attached File  CC430Experimenters Board.zip   13.77KB   0 downloads


Viewing all articles
Browse latest Browse all 2077

Trending Articles