-
Notifications
You must be signed in to change notification settings - Fork 2
Getting Started
We highly recommend using our Virtual Machine. It contains all of the packages and dependencies to develop and flash the canary board.
If you want to have your own linux environment then continue reading.
To get started, you will need the following hardware and software tools:
- Canary
- CC2650 SensorTag
- CC2531 USB Dongle
- CC Debugger
- 536-30102B JTAG Adapter
- Micro USB cable, FTDI cable, Ribbon Cable
sudo apt-get install git bridge-utils libncurses5
Download the ARM Toolchain.
Extract the contents to wherever you want. You will need the path to the bin directory located in the extracted directory.
Add the path variable
export PATH=$PATH:/location/to/bin/directory
Download and unzip SRecord.
For simplicity add the srec_cat, srec_cmp, and srec_info files into the ARM Toolchain bin folder.
Download UniFlash.
In the downloaded directory
chmod +x [filename].run
sudo ./[filename].run
Open Uniflash, if uniflash doesn’t open, follow the troubleshooting section on the wiki in step (UniFlash requires libudev.so.0)
git clone https://github.com/PureEngineering/contiki.git
cd contiki
git submodule update –init --recursive
6lbr Installation located here.
After installation and running (computer reset may be needed) the configuration file will need to be changed located at /etc/6lbr/6lbr.conf (if file doesnt exist create it).
Open the configuration file using the command sudo nano /etc/6lbr/6blr.confand set the following parameters like so, NOTE that DEV_ETH and DEV_RADIO will be different depending on the computer network and its USB devices:
- RAW_ETH=0
- BRIDGE=1
- DEV_BRIDGE=br0
- DEV_TAP=tap0
- DEV_ETH=enp6s0
- RAQ_ETH_FCS=0
- DEV_RADIO=/dev/ttyACM0
To check ethernet connection use ifconfig
To check USB device name use cat /dev. Here is a trick to help find the name. Unplug the device, ls /dev > unplugged, plug device in, ls /dev >> plugged, then diff unplugged plugged should show what the device name is.
Restart 6LBR
sudo service 6lbr restart
sudo apt-get install mosquitto mosquitto-clients bridge-utils libncurses5-dev
restart Mosquitto (computer reset may be needed)
sudo service mosquitto restart
The CC2531 dongle will need to be flashed once, using the CC debugger.
-
Download and install TI’s (Smart RF Flash Programmer)[http://www.ti.com/tool/FLASH-PROGRAMMER] from (note: not v2, Download version 1.12.8)
-
Download “cc2531-slip-radio_contikimac.zip” from the 2.4GHz section on the web page.
-
Extract the above zip file’s .hex file to a known location
-
Connect the computer via USB to the CC2531 (uses one USB port) and connect the CC2531 itself to the computer (another USB port)
-
Open Smart RF Flash Programmer, select “Program CCxxxx SoC or MSP430” under “What do you want to program?”
-
In the “Flash image:” area, select the file extracted in step “c.”
-
Select “Erase, program and verify” under “Actions”, then press “Perform actions”
-
If flashing succeeds, the box above the blue progress bar will indicate “CC2531....:Erase, Program and verify OK”
-
CC2531 has been flashed