Page 1 of 1

ESP32-C6 support zigbee router?

Posted: Sat Jul 06, 2024 6:01 am
by qr0000t

Code: Select all

esp_zb_cfg_t zb_nwk_cfg = {
        .esp_zb_role = ESP_ZB_DEVICE_TYPE_ROUTER,
        .install_code_policy = INSTALLCODE_POLICY_ENABLE,
        .nwk_cfg.zczr_cfg = {
            .max_children = 10,
        },
    };
    esp_zb_init(&zb_nwk_cfg);

Code: Select all

I (27) boot: ESP-IDF v5.4-dev-1205-ge7070e777a 2nd stage bootloader
I (27) boot: compile time Jul  6 2024 08:41:46
I (29) boot: chip revision: v0.0
I (31) boot.esp32c6: SPI Speed      : 80MHz
I (36) boot.esp32c6: SPI Mode       : DIO
I (41) boot.esp32c6: SPI Flash Size : 8MB
I (46) boot: Enabling RNG early entropy source...
I (51) boot: Partition Table:
I (55) boot: ## Label            Usage          Type ST Offset   Length
I (62) boot:  0 nvs              WiFi data        01 02 00009000 00004000
I (69) boot:  1 otadata          OTA data         01 00 0000d000 00002000
I (77) boot:  2 phy_init         RF data          01 01 0000f000 00001000
I (84) boot:  3 zb_storage       Unknown data     01 81 00010000 00004000
I (92) boot:  4 zb_fct           Unknown data     01 81 00014000 00000400
I (99) boot:  5 factory          factory app      00 00 00020000 00200000
I (107) boot:  6 app0             OTA app          00 10 00220000 00200000
I (114) boot:  7 app1             OTA app          00 11 00420000 00200000
I (122) boot: End of partition table
I (126) boot: Defaulting to factory image
I (131) esp_image: segment 0: paddr=00020020 vaddr=42090020 size=1ba38h (113208) map
I (186) esp_image: segment 1: paddr=0003ba60 vaddr=40800000 size=045b8h ( 17848) load
I (195) esp_image: segment 2: paddr=00040020 vaddr=42000020 size=878e4h (555236) map
I (423) esp_image: segment 3: paddr=000c790c vaddr=408045b8 size=0dc44h ( 56388) load
I (450) esp_image: segment 4: paddr=000d5558 vaddr=40812200 size=02594h (  9620) load
I (465) boot: Loaded app from partition at offset 0x20000
I (466) boot: Disabling RNG early entropy source...
I (477) cpu_start: Unicore app
I (486) cpu_start: Pro cpu start user code
I (487) cpu_start: cpu freq: 160000000 Hz
I (487) app_init: Application information:
I (489) app_init: Project name:     hello_world
I (495) app_init: App version:      1
I (499) app_init: Compile time:     Jul  6 2024 08:40:44
I (505) app_init: ELF file SHA256:  464c3bd56...
I (510) app_init: ESP-IDF:          v5.4-dev-1205-ge7070e777a
I (517) efuse_init: Min chip rev:     v0.0
I (521) efuse_init: Max chip rev:     v0.99 
I (526) efuse_init: Chip rev:         v0.0
I (531) heap_init: Initializing. RAM available for dynamic allocation:
I (538) heap_init: At 4081A160 len 000624B0 (393 KiB): RAM
I (544) heap_init: At 4087C610 len 00002F54 (11 KiB): RAM
I (551) heap_init: At 50000000 len 00003FE8 (15 KiB): RTCRAM
I (558) spi_flash: detected chip: generic
I (562) spi_flash: flash io: dio
W (566) ADC: legacy driver is deprecated, please migrate to `esp_adc/adc_oneshot.h`
I (574) sleep: Configure to isolate all GPIO pins in sleep state
I (581) sleep: Enable automatic switching of GPIO sleep configuration
I (588) coexist: coex firmware version: 66616e60c
I (607) coexist: coexist rom version 5b8dcfa
I (608) main_task: Started on CPU0
I (608) main_task: Calling app_main()
I (608) gpio: GPIO[10]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (618) gpio: GPIO[11]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (628) gpio: GPIO[12]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (628) gpio: GPIO[13]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (638) gpio: GPIO[15]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (648) gpio: GPIO[23]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (658) gpio: GPIO[22]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (668) gpio: GPIO[21]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (678) gpio: GPIO[20]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (688) gpio: GPIO[19]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (698) gpio: GPIO[18]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (708) gpio: GPIO[5]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (718) gpio: GPIO[0]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (728) gpio: GPIO[1]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (738) LOG: Cnt: 3 Next: 3 NextId: 4
I (738) LOG: 0 L1 = start
I (738) LOG: 1 L1 = word1 word
I (748) LOG: 2 L255 = 2 word3 word4
I (768) esp_eth.netif.netif_glue: 56:32:04:ff:fe:0c
I (768) esp_eth.netif.netif_glue: ethernet attached to netif
I (768) EthW5500: Ethernet start
I (778) EthW5500: Ethernet Started
This is esp32c6 chip with 1 CPU core(s), WiFi/BLE, 802.15.4 (Zigbee/Thread), silicon revision v0.0, 8MB external flash
Minimum free heap size: 390016 bytes
I (788) ota_net: OTA_net start
I (788) ota_net: SHA-256 for the partition table: : ae76d0348ebd7977e160bbd1c7d0eb90cdcc2cf87ef69a53ca85c6c2de38d097
I (808) ota_net: SHA-256 for bootloader: : 39794dd20c24ad5605d2737182eed1056e9ff9938d18c6a4785ef3c8b27995d3
I (878) ota_net: SHA-256 for current firmware: : f8933c1cd264a0b4376db3d0b48c21765e42769e9134f6d5a7e068211f4907f1
I (878) ota_net: Starting OTA_net task
I (888) ota_net: Running partition type 0 subtype 0 (offset 0x00020000)
I (888) ota_net: Writing to partition subtype 16 at offset 0x220000
I (898) ota_net: Socket created
I (898) ota_net: Socket bound, port 99
I (908) ota_net: Socket listening
I (908) example: Start ZigBee
I (918) zigbee: ZB TASK START
I (918) phy_init: phy_version 310,dde1ba9,Jun  4 2024,16:38:11
I (978) phy: libbtbb version: 04952fd, Jun  4 2024, 16:38:26
E (978) ESP_ZIGBEE_CORE: Unknown device type! 
I (978) zigbee: ZB TASK INIT COMPLETE
I (988) zigbee: ZB TASK DEV REG
I (988) zigbee: ZB TASK DEV STARTING
I (1008) example: Start modbus-tcp
I (1008) example: Socket created
I (1008) example: Socket bound, port 502
I (1008) example: Socket listening
I (1008) gpio: GPIO[8]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1018) zigbee: ZDO signal: ZDO Config Ready (0x17), status: ESP_FAIL
Zigbee stack assertion failed zdo/zdo_commissioning.c:104

abort() was called at PC 0x4201e2d5 on core 0
0x4201e2d5: zb_assert at ??:?

Core  0 register dump:
MEPC    : 0x4080089e  RA      : 0x4080af78  SP      : 0x40826ca0  GP      : 0x40812a04
0x4080089e: panic_abort at C:/Espressif/esp/master/esp-idf/components/esp_system/panic.c:465
0x4080af78: __ubsan_include at C:/Espressif/esp/master/esp-idf/components/esp_system/ubsan.c:311
esp_zb_init returns: E (978) ESP_ZIGBEE_CORE: Unknown device type!

ESP32-C6 support zigbee router?
If not, will there be support for it in the future?

Re: ESP32-C6 support zigbee router?

Posted: Sun Jul 07, 2024 8:48 pm
by qr0000t
I found a solution to this problem. It was necessary to additionally set the mode in menuconfig.

Re: ESP32-C6 support zigbee router?

Posted: Fri Jul 12, 2024 3:55 am
by lumen_xp
Please write instructions on how to do this or provide a link to the source. I have the same problem and I don't know how to solve it.