|
|
# DPP2 CC430 ComBoard
|
|
|
|
|
|
![dpp_cc430_comboard](uploads/6f25735daf8c6f089f76acfbfb5441ff/dpp_cc430_comboard.jpg)
|
|
|
|
|
|
## Documentation
|
|
|
|
|
|
User Guide: https://gitlab.ethz.ch/tec/public/dpp/blob/master/docs/dpp2_user_guide.pdf
|
|
|
|
|
|
## Software
|
|
|
|
|
|
* [LWB](https://github.com/ETHZ-TEC/LWB)
|
|
|
* [LWB baseline](https://github.com/ETHZ-TEC/LWB-Baseline)
|
|
|
|
|
|
|
|
|
## Compile and program
|
|
|
|
|
|
1. If you haven't done so already, install the msp430 gcc toolchain:
|
|
|
|
|
|
```
|
|
|
sudo apt-get install msp430-libc binutils-msp430 gcc-msp430 msp430mcu mspdebug tinyos-tools
|
|
|
```
|
|
|
|
|
|
1. In order to flash the code directly from the command line, you will need to install a TI tool that comes with the library file `libmsp430.so` (e.g. the [MSP430 Flasher](http://www.ti.com/tool/MSP430-FLASHER)). Install it to the `ti` folder within your home directory. Add the path to the `.bashrc` file:
|
|
|
|
|
|
```
|
|
|
echo "export LD_LIBRARY_PATH=$HOME/ti/MSPFlasher_1.3.18/" >> ~/.bashrc
|
|
|
```
|
|
|
|
|
|
1. Checkout the latest version of our code for the CC430 from the [github repo](https://github.com/ETHZ-TEC/LWB/tree/dpp). Make sure you are on the branch `dpp`.
|
|
|
1. Go into the directory of the application that you want to compile, e.g. `apps/elwb-dev`
|
|
|
1. Open config.h and check all parameters. If you want to compile the code for a host node, then uncomment `#define NODE_ID HOST_ID`. If you want to compile the code for a source node, then make sure `NODE_ID` stays commented out.
|
|
|
1. Run `make` or `make target=dpp2` to compile the code for the DPP2 (blue board). For the first revision of the DPP (green board), use `target=dpp`.
|
|
|
1. Connect an [MSP-FET](http://www.ti.com/tool/MSP-FET) debugger to the COM_JTAG header and download / flash the code onto the target with `make upload` or `make upload node_id=[id]`. Note that you can set the node ID for source nodes only. For the host, the node ID has to be fixed at compile time. |
|
|
\ No newline at end of file |