-
Notifications
You must be signed in to change notification settings - Fork 0
DPP2CC430
Reto Da Forno edited this page Oct 1, 2021
·
4 revisions
User Guide: https://gitlab.ethz.ch/tec/public/dpp/dpp/blob/master/docs/dpp2_user_guide.pdf
- 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
- 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 theti
folder within your home directory. Add the path to the.bashrc
file:
echo "export LD_LIBRARY_PATH=$HOME/ti/MSPFlasher_1.3.18/" >> ~/.bashrc
- Checkout the latest version of our code for the CC430 from the github repo. Make sure you are on the branch
dpp
. - Go into the directory of the application that you want to compile, e.g.
apps/elwb-dev
- 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 sureNODE_ID
stays commented out. - Run
make
ormake target=dpp2
to compile the code for the DPP2 (blue board). For the first revision of the DPP (green board), usetarget=dpp
. - Connect an MSP-FET debugger to the COM_JTAG header and download / flash the code onto the target with
make upload
ormake 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.