- Flashing the firmware on the CC2531 USB stick | zigbee2mqtt.io
- dashesy/cc-tool: Mirror of cc-tool from SourceForge
- compiling - What is the correct syntax to add CFLAGS and LDFLAGS to "configure"? - Unix & Linux Stack Exchange
- Compiling Boost with GCC or Clang on macOS | Solarian Programmer
Following 1 :
brew install autoconf automake libusb boost pkgconfig libtool ##install needed tools to compile the tool :-D
git clone https://github.com/dashesy/cc-tool.git
cd cc-tool\
Then, be sure to use clang++
instead g++
from macport or wathever you have in path.
Include boost (c++) library from system (homebrew automagically symlink them under /opt/local/{bin,include}
) like:
CC=/opt/local/bin/clang \
CXX=/opt/local/bin/clang++ \
LDFLAGS=-I/usr/local/include \
CPPFLAGS=-I/usr/local/include \
./bootstrap
CC=/opt/local/bin/clang \
CXX=/opt/local/bin/clang++ \
LDFLAGS=-I/usr/local/include \
CPPFLAGS=-I/usr/local/include \
./configure
make
## now test the executable
./cc-tool --help
Texas Instruments 8051-based System-On-Chip device programmer
Version: 0.26
Command line options:
-h [ --help ] produce help message
--log arg create log of all operations
-d [ --device ] arg set programmer deivce usb address 'bus:device'
-f [ --fast ] set fast debug interface speed (by default:
slow)
-n [ --name ] arg specify target name e.g. CC2530 etc.
--allow-overlapping-records allow overlapping records in hex files, the
last one wins (by default: they are
disallowed)
-i [ --read-info-page ] arg read info pages
-a [ --read-mac-address ] read mac address(es)
-b [ --write-mac-address ] arg write (secondary) mac address
-p [ --preserve-mac-address ] preserve (secondary) mac address across
writing
-r [ --read ] arg read flash memory
-e [ --erase ] erase flash memory
-w [ --write ] arg write flash memory.
-v [ --verify ] arg verify flash after write, method '(r)ead' or
'(c)cr' (used by default)
--reset perform target reset
-t [ --test ] search for programmer and target
-l [ --lock ] arg specify lock data in hex numbers or by string:
debug[;pages:xx]
-s [ --flash-size ] arg specify target flash size in KB
Supported targets:
CC2530 CC2531 CC2533 CC2540 CC2541 CC2543 CC2544 CC2545 CC2510 CC2511 CC1111 CC1110 CC2430 CC2431
Supported programmers:
VID: 0x0451 PID: 0x16a2 Description: CC Debugger
VID: 0x11a0 PID: 0xdb20 Description: SmartRF04 Evaluation Board
VID: 0x11a0 PID: 0xeb20 Description: SmartRF04 Evaluation Board (Chinese)
VID: 0x0451 PID: 0x16a0 Description: SmartRF05 Evaluation Board
Hi, I'm not understanding how can I flash my CC2531 Zigbee2MQTT.
I'm trying to follow this with terminal but I'm not understanding nothing for what to do!!!
Any chances to get helpd?
Thanks mate