Requires ESP32-C6.
- idf.py -p comN erase-flash
- idf.py -p comN flash
- Get the MAC address from console (the other port for ESP32-C6)
- Create a manufacturing partition using Zigbee Manufacturing Partition Generator Utility.
- Clone the zigbee sdk repo and remove the
from future.moves.itertools import zip_longest
fromtools/esp_zb_mfg_tool.py
. - Install dependencies in ESP-IDF shell:
python -m pip install -r requirements.txt
andpython -m pip install cryptography esp-idf-nvs-partition-gen crcmod
- Generate an installcode with Python:
python -c "import os;import crcmod.predefined;installcode=os.urandom(12);crc=crcmod.predefined.mkCrcFun('crc-16');print(installcode.hex() + hex(crc(installcode))[2:]);"
- Install dependencies for mgf tool:
python -m pip install esp_idf_nvs_partition_gen future
- Run:
python esp_zb_mfg_tool.py -i 7f91fbafb9ec53ee8097b3bb8fce -m 404ccafffe5627c4 -c 0x8000 -mn Espressif -mc 0x1337
(change first parameter to random string from previous command, second is MAC without colons) - Flash the binary to the
zb_fct
partition (at0xf5000
):esptool.py -p com4 write_flash 0xf5000 404ccafffe5627c4.bin