Skip to content

DPP2CC430

Reto Da Forno edited this page Oct 1, 2021 · 4 revisions

DPP2 CC430 ComBoard

dpp_cc430_comboard

Documentation

User Guide: https://gitlab.ethz.ch/tec/public/dpp/dpp/blob/master/docs/dpp2_user_guide.pdf

Software

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). 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. Make sure you are on the branch dpp.
  2. Go into the directory of the application that you want to compile, e.g. apps/elwb-dev
  3. 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.
  4. 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.
  5. Connect an 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.
Clone this wiki locally