1.下載CCLoader
2.準備Z-Stack Firmware
- 燒錄 CCLoader_Arduino.bin 到Wemos D1-mini(ESP8266)
- 下載CC2530_CC2591_20190523.zip
- 下載objcopy.exe, binutils-2.28-1-mingw32-bin.tar.xz
- 下載 libiconv ,並解壓縮到 \binutils-2.28-1-mingw32-bin\bin
objcopy.exe --gap-fill 0xFF --pad-to 0x040000 -I ihex CC2530ZNP-with-SBL.hex -O binary CC2530ZNP-with-SBL.bin
3.燒錄 CCLoader_Arduino.bin 到Wemos D1-mini(ESP8266)
- 使用Tasmotizer!, NodeMCU-pyflasher, esptool.py 燒錄 CCLoader_Arduino.bin 到ESP-8266
4.燒錄cc2530 + cc2591韌體前置作業
- 編輯 \CCLoader\src\CCLoader.ino,在大約86-90行,確認以下文字
// Debug control pins & the indicate LED int DD = 14; //GPIO14=D5 on NodeMCU/WeMos D1 Mini int DC = 4; //GPIO4=D2 on NodeMCU/WeMos D1 Mini int RESET = 5; //GPIO5=D1 on NodeMCU/WeMos D1 Mini int LED = 2; //GPIO2=D4 and the Blue LED on the WeMos D1 Mini and the ESP-12E module on the NodeMCU, or can use GPIO16=D0 for the other Blue LED on NodeMCU
- 連接PIN腳 (可參考 https://zigbee.blakadder.com/coordinators.html)
Pin Name | NodeMCU/Wemos | GPIO# |
---|---|---|
P2_1 (DEBUG_DATA) | D5 | GPIO14 |
P2_2 (DEBUG_CLOCK) | D2 | GPIO4 |
RST (RESET_N) | D1 | GPIO5 |
VCC | 3.3V | |
GND | GND |
5.燒錄cc2530 + cc2591韌體
- 切換到\CCLoader-master\Windows
- CCLoader_x86_64.exe 5 CC2530ZNP-with-SBL.bin 0
註:5是COM Port
參考文章
https://www.zigbee2mqtt.io/guide/adapters/flashing/connecting_cc2530.html
https://zigbee.blakadder.com/flashing_ccloader.html
https://tasmota.github.io/docs/Zigbee/
留言
張貼留言