In order to flash the ZigBee stick we need the following hardware:
Name | Price | Picture |
---|---|---|
CC debugger | +-10$ on AliExpress | ![]() |
Downloader cable CC2531 | +-3.50$ on AliExpress | ![]() |
The CC2531 USB stick needs to be flashed with a custom firmware. The following instructions assume you have a CC Debugger. In case you don’t, see Alternative firmware flashing methods.
Install SmartRF Flash programmer (NOT V2). This software is free but requires a Texas Instruments account in order to download.
Install the CC debugger driver on your PC (Windows only). Before continuing, verify that the CC Debugger driver has been installed correctly. See Figure 1. Verify Correct Driver Installation @ Chapter 5.1. In case the CC Debugger is not recognized correctly install the driver manually.
Connect CC debugger --> Downloader cable CC2531 --> CC2531 USB stick
.
Connect BOTH the CC2531 USB stick
and the CC debugger
to your PC using USB.
If the light on the CC debugger is RED press set reset button on the CC debugger. The light on the CC debugger should now turn GREEN. If not use CC debugger user guide to troubleshoot your problem.
Download the firmware CC2531ZNP-2018090201.hex
Start SmartRF Flash Programmer, setup as shown below and press Perform actions
.
Ubuntu: libusb-1.0, libboost-all-dev
Fedora: boost-devel, libusb1-devel
Mac OS: libusb boost pkgconfig
git clone https://github.com/dashesy/cc-tool.git
cd cc-tool
./configure
make
Download the firmware CC2531ZNP-Pro-Secure_LinkKeyJoin.hex
sudo ./cc-tool -e -w CC2531ZNP-Prod.hex
TBD
This page is based on wiki from zigbee2mqtt project.