espressif / esp-matter

Espressif's SDK for Matter
Apache License 2.0
693 stars 156 forks source link

[BUG] ESP-Matter example zigbee_bridge compile error using ESP32C6 (CON-719) #593

Closed mrezzaaa closed 1 year ago

mrezzaaa commented 1 year ago

I want to bridging Zigbee Gateway to Matter end device using esp32c6 devkit C.

Im trying to testing matter examples zigbee_bridge and when compiling got this error message:

[build] [1119/1159  95% :: 145.601] Linking C static library esp-idf/chip/libchip.a
[build] [1120/1159  95% :: 145.869] Building CXX object esp-idf/esp_matter/CMakeFiles/__idf_esp_matter.dir/Users/icewalker/esp-idf/esp-matter/connectedhomeip/connectedhomeip/src/app/clusters/wifi-network-diagnostics-server/wifi-network-diagnostics-server.cpp.obj
[build] [1121/1159  95% :: 145.902] Building CXX object esp-idf/esp_matter/CMakeFiles/__idf_esp_matter.dir/zap_common/app/callback-stub.cpp.obj
[build] [1122/1159  96% :: 145.962] Building CXX object esp-idf/esp_matter/CMakeFiles/__idf_esp_matter.dir/Users/icewalker/esp-idf/esp-matter/connectedhomeip/connectedhomeip/src/app/clusters/time-synchronization-server/time-synchronization-server.cpp.obj
[build] [1123/1159  96% :: 145.975] Building CXX object esp-idf/esp_matter_console/CMakeFiles/__idf_esp_matter_console.dir/esp_matter_console_diagnostics.cpp.obj
[build] [1124/1159  96% :: 146.028] Building CXX object esp-idf/esp_matter_console/CMakeFiles/__idf_esp_matter_console.dir/esp_matter_console_wifi.cpp.obj
[build] [1125/1159  96% :: 146.269] Building CXX object esp-idf/main/CMakeFiles/__idf_main.dir/app_zboss.cpp.obj
[build] FAILED: esp-idf/main/CMakeFiles/__idf_main.dir/app_zboss.cpp.obj 
[build] /Users/icewalker/esp-idf/components/esptool_py/esptool/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ -DESP_PLATFORM -DIDF_VER=\"v5.1.1-dirty\" -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -DRCP_COMPILE_DEFINE="\"zigbee-e088c3766b-7bbafac-0.3.6-2023-08-27 14:00:28 UTC\"" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DUNITY_INCLUDE_CONFIG_H -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -I/Users/icewalker/esp-idf/esp-matter/examples/zigbee_bridge/build/config -I/Users/icewalker/esp-idf/esp-matter/examples/zigbee_bridge/main -I/Users/icewalker/esp-idf/esp-idf/components/newlib/platform_include -I/Users/icewalker/esp-idf/esp-idf/components/freertos/FreeRTOS-Kernel/include -I/Users/icewalker/esp-idf/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -I/Users/icewalker/esp-idf/esp-idf/components/freertos/esp_additions/include/freertos -I/Users/icewalker/esp-idf/esp-idf/components/freertos/esp_additions/include -I/Users/icewalker/esp-idf/esp-idf/components/freertos/esp_additions/arch/xtensa/include -I/Users/icewalker/esp-idf/esp-idf/components/esp_hw_support/include -I/Users/icewalker/esp-idf/esp-idf/components/esp_hw_support/include/soc -I/Users/icewalker/esp-idf/esp-idf/components/esp_hw_support/include/soc/esp32 -I/Users/icewalker/esp-idf/esp-idf/components/esp_hw_support/port/esp32/. -I/Users/icewalker/esp-idf/esp-idf/components/esp_hw_support/port/esp32/private_include -I/Users/icewalker/esp-idf/esp-idf/components/heap/include -I/Users/icewalker/esp-idf/esp-idf/components/log/include -I/Users/icewalker/esp-idf/esp-idf/components/soc/include -I/Users/icewalker/esp-idf/esp-idf/components/soc/esp32 -I/Users/icewalker/esp-idf/esp-idf/components/soc/esp32/include -I/Users/icewalker/esp-idf/esp-idf/components/hal/esp32/include -I/Users/icewalker/esp-idf/esp-idf/components/hal/include -I/Users/icewalker/esp-idf/esp-idf/components/hal/platform_port/include -I/Users/icewalker/esp-idf/esp-idf/components/esp_rom/include -I/Users/icewalker/esp-idf/esp-idf/components/esp_rom/include/esp32 -I/Users/icewalker/esp-idf/esp-idf/components/esp_rom/esp32 -I/Users/icewalker/esp-idf/esp-idf/components/esp_common/include -I/Users/icewalker/esp-idf/esp-idf/components/esp_system/include -I/Users/icewalker/esp-idf/esp-idf/components/esp_system/port/soc -I/Users/icewalker/esp-idf/esp-idf/components/esp_system/port/include/private -I/Users/icewalker/esp-idf/esp-idf/components/xtensa/include -I/Users/icewalker/esp-idf/esp-idf/components/xtensa/esp32/include -I/Users/icewalker/esp-idf/esp-idf/components/lwip/include -I/Users/icewalker/esp-idf/esp-idf/components/lwip/include/apps -I/Users/icewalker/esp-idf/esp-idf/components/lwip/include/apps/sntp -I/Users/icewalker/esp-idf/esp-idf/components/lwip/lwip/src/include -I/Users/icewalker/esp-idf/esp-idf/components/lwip/port/include -I/Users/icewalker/esp-idf/esp-idf/components/lwip/port/freertos/include -I/Users/icewalker/esp-idf/esp-idf/components/lwip/port/esp32xx/include -I/Users/icewalker/esp-idf/esp-idf/components/lwip/port/esp32xx/include/arch -I/Users/icewalker/esp-idf/esp-matter/examples/zigbee_bridge/managed_components/espressif__esp-zboss-lib/include -I/Users/icewalker/esp-idf/esp-matter/examples/zigbee_bridge/managed_components/espressif__esp-zigbee-lib/include -I/Users/icewalker/esp-idf/esp-idf/components/esp_ringbuf/include -I/Users/icewalker/esp-idf/esp-idf/components/efuse/include -I/Users/icewalker/esp-idf/esp-idf/components/efuse/esp32/include -I/Users/icewalker/esp-idf/esp-idf/components/driver/include -I/Users/icewalker/esp-idf/esp-idf/components/driver/deprecated -I/Users/icewalker/esp-idf/esp-idf/components/driver/analog_comparator/include -I/Users/icewalker/esp-idf/esp-idf/components/driver/dac/include -I/Users/icewalker/esp-idf/esp-idf/components/driver/gpio/include -I/Users/icewalker/esp-idf/esp-idf/components/driver/gptimer/include -I/Users/icewalker/esp-idf/esp-idf/components/driver/i2c/include -I/Users/icewalker/esp-idf/esp-idf/components/driver/i2s/include -I/Users/icewalker/esp-idf/esp-idf/components/driver/ledc/include -I/Users/icewalker/esp-idf/esp-idf/components/driver/mcpwm/include -I/Users/icewalker/esp-idf/esp-idf/components/driver/parlio/include -I/Users/icewalker/esp-idf/esp-idf/components/driver/pcnt/include -I/Users/icewalker/esp-idf/esp-idf/components/driver/rmt/include -I/Users/icewalker/esp-idf/esp-idf/components/driver/sdio_slave/include -I/Users/icewalker/esp-idf/esp-idf/components/driver/sdmmc/include -I/Users/icewalker/esp-idf/esp-idf/components/driver/sigma_delta/include -I/Users/icewalker/esp-idf/esp-idf/components/driver/spi/include -I/Users/icewalker/esp-idf/esp-idf/components/driver/temperature_sensor/include -I/Users/icewalker/esp-idf/esp-idf/components/driver/touch_sensor/include -I/Users/icewalker/esp-idf/esp-idf/components/driver/twai/include -I/Users/icewalker/esp-idf/esp-idf/components/driver/uart/include -I/Users/icewalker/esp-idf/esp-idf/components/driver/usb_serial_jtag/include -I/Users/icewalker/esp-idf/esp-idf/components/driver/touch_sensor/esp32/include -I/Users/icewalker/esp-idf/esp-idf/components/esp_pm/include -I/Users/icewalker/esp-idf/esp-idf/components/mbedtls/port/include -I/Users/icewalker/esp-idf/esp-idf/components/mbedtls/mbedtls/include -I/Users/icewalker/esp-idf/esp-idf/components/mbedtls/mbedtls/library -I/Users/icewalker/esp-idf/esp-idf/components/mbedtls/esp_crt_bundle/include -I/Users/icewalker/esp-idf/esp-idf/components/esp_app_format/include -I/Users/icewalker/esp-idf/esp-idf/components/bootloader_support/include -I/Users/icewalker/esp-idf/esp-idf/components/bootloader_support/bootloader_flash/include -I/Users/icewalker/esp-idf/esp-idf/components/esp_partition/include -I/Users/icewalker/esp-idf/esp-idf/components/app_update/include -I/Users/icewalker/esp-idf/esp-idf/components/esp_mm/include -I/Users/icewalker/esp-idf/esp-idf/components/spi_flash/include -I/Users/icewalker/esp-idf/esp-idf/components/pthread/include -I/Users/icewalker/esp-idf/esp-idf/components/esp_timer/include -I/Users/icewalker/esp-idf/esp-idf/components/app_trace/include -I/Users/icewalker/esp-idf/esp-idf/components/esp_event/include -I/Users/icewalker/esp-idf/esp-idf/components/nvs_flash/include -I/Users/icewalker/esp-idf/esp-idf/components/esp_phy/include -I/Users/icewalker/esp-idf/esp-idf/components/esp_phy/esp32/include -I/Users/icewalker/esp-idf/esp-idf/components/vfs/include -I/Users/icewalker/esp-idf/esp-idf/components/esp_netif/include -I/Users/icewalker/esp-idf/esp-idf/components/wpa_supplicant/include -I/Users/icewalker/esp-idf/esp-idf/components/wpa_supplicant/port/include -I/Users/icewalker/esp-idf/esp-idf/components/wpa_supplicant/esp_supplicant/include -I/Users/icewalker/esp-idf/esp-idf/components/esp_coex/include -I/Users/icewalker/esp-idf/esp-idf/components/esp_wifi/include -I/Users/icewalker/esp-idf/esp-idf/components/esp_wifi/wifi_apps/include -I/Users/icewalker/esp-idf/esp-idf/components/bt/include/esp32/include -I/Users/icewalker/esp-idf/esp-idf/components/bt/common/osi/include -I/Users/icewalker/esp-idf/esp-idf/components/bt/common/api/include/api -I/Users/icewalker/esp-idf/esp-idf/components/bt/common/btc/profile/esp/blufi/include -I/Users/icewalker/esp-idf/esp-idf/components/bt/common/btc/profile/esp/include -I/Users/icewalker/esp-idf/esp-idf/components/bt/host/nimble/nimble/nimble/host/include -I/Users/icewalker/esp-idf/esp-idf/components/bt/host/nimble/nimble/nimble/host/services/ans/include -I/Users/icewalker/esp-idf/esp-idf/components/bt/host/nimble/nimble/nimble/host/services/bas/include -I/Users/icewalker/esp-idf/esp-idf/components/bt/host/nimble/nimble/nimble/host/services/dis/include -I/Users/icewalker/esp-idf/esp-idf/components/bt/host/nimble/nimble/nimble/host/services/gap/include -I/Users/icewalker/esp-idf/esp-idf/components/bt/host/nimble/nimble/nimble/host/services/gatt/include -I/Users/icewalker/esp-idf/esp-idf/components/bt/host/nimble/nimble/nimble/host/services/hr/include -I/Users/icewalker/esp-idf/esp-idf/components/bt/host/nimble/nimble/nimble/host/services/htp/include -I/Users/icewalker/esp-idf/esp-idf/components/bt/host/nimble/nimble/nimble/host/services/ias/include -I/Users/icewalker/esp-idf/esp-idf/components/bt/host/nimble/nimble/nimble/host/services/ipss/include -I/Users/icewalker/esp-idf/esp-idf/components/bt/host/nimble/nimble/nimble/host/services/lls/include -I/Users/icewalker/esp-idf/esp-idf/components/bt/host/nimble/nimble/nimble/host/services/prox/include -I/Users/icewalker/esp-idf/esp-idf/components/bt/host/nimble/nimble/nimble/host/services/tps/include -I/Users/icewalker/esp-idf/esp-idf/components/bt/host/nimble/nimble/nimble/host/util/include -I/Users/icewalker/esp-idf/esp-idf/components/bt/host/nimble/nimble/nimble/host/store/ram/include -I/Users/icewalker/esp-idf/esp-idf/components/bt/host/nimble/nimble/nimble/host/store/config/include -I/Users/icewalker/esp-idf/esp-idf/components/bt/porting/include -I/Users/icewalker/esp-idf/esp-idf/components/bt/host/nimble/nimble/porting/nimble/include -I/Users/icewalker/esp-idf/esp-idf/components/bt/host/nimble/port/include -I/Users/icewalker/esp-idf/esp-idf/components/bt/host/nimble/nimble/nimble/transport/include -I/Users/icewalker/esp-idf/esp-idf/components/bt/host/nimble/nimble/porting/npl/freertos/include -I/Users/icewalker/esp-idf/esp-idf/components/bt/host/nimble/nimble/nimble/include -I/Users/icewalker/esp-idf/esp-idf/components/bt/host/nimble/esp-hci/include -I/Users/icewalker/esp-idf/esp-idf/components/unity/include -I/Users/icewalker/esp-idf/esp-idf/components/unity/unity/src -I/Users/icewalker/esp-idf/esp-idf/components/cmock/CMock/src -I/Users/icewalker/esp-idf/esp-idf/components/console -I/Users/icewalker/esp-idf/esp-idf/components/http_parser -I/Users/icewalker/esp-idf/esp-idf/components/esp-tls -I/Users/icewalker/esp-idf/esp-idf/components/esp-tls/esp-tls-crypto -I/Users/icewalker/esp-idf/esp-idf/components/esp_adc/include -I/Users/icewalker/esp-idf/esp-idf/components/esp_adc/interface -I/Users/icewalker/esp-idf/esp-idf/components/esp_adc/esp32/include -I/Users/icewalker/esp-idf/esp-idf/components/esp_adc/deprecated/include -I/Users/icewalker/esp-idf/esp-idf/components/esp_eth/include -I/Users/icewalker/esp-idf/esp-idf/components/esp_gdbstub/include -I/Users/icewalker/esp-idf/esp-idf/components/esp_hid/include -I/Users/icewalker/esp-idf/esp-idf/components/tcp_transport/include -I/Users/icewalker/esp-idf/esp-idf/components/esp_http_client/include -I/Users/icewalker/esp-idf/esp-idf/components/esp_http_server/include -I/Users/icewalker/esp-idf/esp-idf/components/esp_https_ota/include -I/Users/icewalker/esp-idf/esp-idf/components/esp_psram/include -I/Users/icewalker/esp-idf/esp-idf/components/esp_lcd/include -I/Users/icewalker/esp-idf/esp-idf/components/esp_lcd/interface -I/Users/icewalker/esp-idf/esp-idf/components/protobuf-c/protobuf-c -I/Users/icewalker/esp-idf/esp-idf/components/protocomm/include/common -I/Users/icewalker/esp-idf/esp-idf/components/protocomm/include/security -I/Users/icewalker/esp-idf/esp-idf/components/protocomm/include/transports -I/Users/icewalker/esp-idf/esp-idf/components/esp_local_ctrl/include -I/Users/icewalker/esp-idf/esp-idf/components/espcoredump/include -I/Users/icewalker/esp-idf/esp-idf/components/espcoredump/include/port/xtensa -I/Users/icewalker/esp-idf/esp-idf/components/wear_levelling/include -I/Users/icewalker/esp-idf/esp-idf/components/sdmmc/include -I/Users/icewalker/esp-idf/esp-idf/components/fatfs/diskio -I/Users/icewalker/esp-idf/esp-idf/components/fatfs/vfs -I/Users/icewalker/esp-idf/esp-idf/components/fatfs/src -I/Users/icewalker/esp-idf/esp-idf/components/idf_test/include -I/Users/icewalker/esp-idf/esp-idf/components/idf_test/include/esp32 -I/Users/icewalker/esp-idf/esp-idf/components/ieee802154/include -I/Users/icewalker/esp-idf/esp-idf/components/json/cJSON -I/Users/icewalker/esp-idf/esp-idf/components/mqtt/esp-mqtt/include -I/Users/icewalker/esp-idf/esp-idf/components/perfmon/include -I/Users/icewalker/esp-idf/esp-idf/components/spiffs/include -I/Users/icewalker/esp-idf/esp-idf/components/wifi_provisioning/include -I/Users/icewalker/esp-idf/esp-matter/examples/zigbee_bridge/managed_components/espressif__mdns/include -I/Users/icewalker/esp-idf/esp-matter/examples/zigbee_bridge/managed_components/espressif__esp_encrypted_img/include -I/Users/icewalker/esp-idf/esp-matter/examples/zigbee_bridge/managed_components/espressif__esp_secure_cert_mgr/include -I/Users/icewalker/esp-idf/esp-matter/connectedhomeip/connectedhomeip/src/platform/ESP32 -I/Users/icewalker/esp-idf/esp-matter/connectedhomeip/connectedhomeip/src/platform/OpenThread -I/Users/icewalker/esp-idf/esp-matter/connectedhomeip/connectedhomeip/src/include -I/Users/icewalker/esp-idf/esp-matter/connectedhomeip/connectedhomeip/src/lib -I/Users/icewalker/esp-idf/esp-matter/connectedhomeip/connectedhomeip/src -I/Users/icewalker/esp-idf/esp-matter/connectedhomeip/connectedhomeip/zzz_generated/app-common -I/Users/icewalker/esp-idf/esp-matter/connectedhomeip/connectedhomeip/examples/platform/esp32 -I/Users/icewalker/esp-idf/esp-matter/connectedhomeip/connectedhomeip/third_party/nlassert/repo/include -I/Users/icewalker/esp-idf/esp-matter/connectedhomeip/connectedhomeip/third_party/nlio/repo/include -I/Users/icewalker/esp-idf/esp-matter/examples/zigbee_bridge/build/esp-idf/chip/src/include -I/Users/icewalker/esp-idf/esp-matter/examples/zigbee_bridge/build/esp-idf/chip/include -I/Users/icewalker/esp-idf/esp-matter/examples/zigbee_bridge/build/esp-idf/chip/gen/include -I/Users/icewalker/esp-idf/esp-matter/connectedhomeip/connectedhomeip/config/esp32 -I/Users/icewalker/esp-idf/esp-matter/connectedhomeip/connectedhomeip/config/esp32/../.. -I/Users/icewalker/esp-idf/esp-matter/components/esp_matter_console -I/Users/icewalker/esp-idf/esp-matter/components/esp_matter -I/Users/icewalker/esp-idf/esp-matter/connectedhomeip/connectedhomeip/third_party/nlfaultinjection/repo/include -I/Users/icewalker/esp-idf/esp-matter/components/esp_matter/zap_common -I/Users/icewalker/esp-idf/esp-matter/components/esp_matter_bridge -I/Users/icewalker/esp-idf/esp-matter/examples/common/app_bridge -I/Users/icewalker/esp-idf/esp-matter/examples/zigbee_bridge/managed_components/espressif__led_strip/include -I/Users/icewalker/esp-idf/esp-matter/device_hal/led_driver/include -I/Users/icewalker/esp-idf/esp-matter/examples/zigbee_bridge/managed_components/espressif__button/include -I/Users/icewalker/esp-idf/esp-matter/device_hal/device/include -I/Users/icewalker/esp-idf/esp-matter/examples/common/app_reset -I/Users/icewalker/esp-idf/esp-matter/examples/zigbee_bridge/managed_components/espressif__json_parser/upstream/include -I/Users/icewalker/esp-idf/esp-matter/examples/zigbee_bridge/managed_components/espressif__json_parser/upstream -I/Users/icewalker/esp-idf/esp-matter/components/esp_matter_rainmaker -mlongcalls -Wno-frame-address  -g -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -Og -fmacro-prefix-map=/Users/icewalker/esp-idf/esp-matter/examples/zigbee_bridge=. -fmacro-prefix-map=/Users/icewalker/esp-idf/esp-idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -DconfigENABLE_FREERTOS_DEBUG_OCDAWARE=1 -Wno-error=uninitialized -Wno-error=maybe-uninitialized -Wno-missing-field-initializers -Wno-error=array-bounds -Wno-format-nonliteral -Wno-format-security -std=gnu++2b -fno-exceptions -fno-rtti -std=gnu++14 -Os -DCHIP_HAVE_CONFIG_H -Wno-strict-prototypes "-DCHIP_ADDRESS_RESOLVE_IMPL_INCLUDE_HEADER=<lib/address_resolve/AddressResolve_DefaultImpl.h>" -std=gnu++14 -MD -MT esp-idf/main/CMakeFiles/__idf_main.dir/app_zboss.cpp.obj -MF esp-idf/main/CMakeFiles/__idf_main.dir/app_zboss.cpp.obj.d -o esp-idf/main/CMakeFiles/__idf_main.dir/app_zboss.cpp.obj -c /Users/icewalker/esp-idf/esp-matter/examples/zigbee_bridge/main/app_zboss.cpp
[build] cc1plus: warning: command-line option '-Wno-strict-prototypes' is valid for C/ObjC but not for C++
[build] /Users/icewalker/esp-idf/esp-matter/examples/zigbee_bridge/main/app_zboss.cpp: In function 'void esp_zb_app_signal_handler(esp_zb_app_signal_t*)':
[build] /Users/icewalker/esp-idf/esp-matter/examples/zigbee_bridge/main/app_zboss.cpp:39:41: error: invalid conversion from 'uint32_t' {aka 'long unsigned int'} to 'esp_zb_app_signal_type_t' [-fpermissive]
[build]    39 |     esp_zb_app_signal_type_t sig_type = *p_sg_p;
[build]       |                                         ^~~~~~~
[build]       |                                         |
[build]       |                                         uint32_t {aka long unsigned int}
[build] [1125/1159  96% :: 146.460] Building CXX object esp-idf/esp_matter/CMakeFiles/__idf_esp_matter.dir/Users/icewalker/esp-idf/esp-matter/connectedhomeip/connectedhomeip/src/app/clusters/window-covering-server/window-covering-server.cpp.obj
[build] [1125/1159  96% :: 146.527] Building CXX object esp-idf/esp_matter_console/CMakeFiles/__idf_esp_matter_console.dir/esp_matter_console.cpp.obj
[build] [1125/1159  96% :: 146.616] Building CXX object esp-idf/esp_matter_bridge/CMakeFiles/__idf_esp_matter_bridge.dir/esp_matter_bridge.cpp.obj
[build] [1125/1159  96% :: 146.705] Building CXX object esp-idf/app_bridge/CMakeFiles/__idf_app_bridge.dir/app_bridged_device.cpp.obj
[build] [1125/1159  96% :: 146.952] Building CXX object esp-idf/main/CMakeFiles/__idf_main.dir/app_main.cpp.obj
[build] cc1plus: warning: command-line option '-Wno-strict-prototypes' is valid for C/ObjC but not for C++
[build] [1125/1159  96% :: 147.179] Building CXX object esp-idf/main/CMakeFiles/__idf_main.dir/zigbee_bridge.cpp.obj
[build] cc1plus: warning: command-line option '-Wno-strict-prototypes' is valid for C/ObjC but not for C++
[build] [1125/1159  96% :: 147.481] Building CXX object esp-idf/esp_matter/CMakeFiles/__idf_esp_matter.dir/esp_matter_attribute_utils.cpp.obj
[build] [1125/1159  96% :: 147.671] Building CXX object esp-idf/esp_matter/CMakeFiles/__idf_esp_matter.dir/esp_matter_attribute.cpp.obj
[build] [1125/1159  97% :: 149.362] Building CXX object esp-idf/esp_matter/CMakeFiles/__idf_esp_matter.dir/esp_matter_client.cpp.obj
[build] ninja: build stopped: subcommand failed.
[proc] The command: /Users/icewalker/.espressif/tools/cmake/3.24.0/CMake.app/Contents/bin/cmake --build /Users/icewalker/esp-idf/esp-matter/examples/zigbee_bridge/build --config Debug --target all -- exited with code: 1

Already set idf.py --preview set-target esp32c6 . SDK config Zigbee > Zigbee Coordinator or Router device checked and got this error.

Environment

esp-matter sdk : latest 
idf.py : latest
Compiler : Unspecied ( CMake guess what compilers and environment to use)
IDE : VS Code with ESP-IDF extension
IDF : release/5.1
shubhamdp commented 1 year ago

Could be the problem with esp-idf commit. Documentation suggest that you use ea5e0ff298e6257b31d8e0c81435e6d3937f04c7. Please try with that rather than using latest.

mrezzaaa commented 1 year ago

Ok i'll try with commit hash that you give to me. I'll update later if it works or not

mrezzaaa commented 1 year ago

@shubhamdp trying your suggest and got this error message when compiling

/esp-idf/esp-idf/components/lwip/lwip/src/core/ipv4/dhcp.c:1144:11: error: 'DHCP_REQUEST_TIMEOUT_SEQUENCE' undeclared (first use in this function)
 1144 |   msecs = DHCP_REQUEST_TIMEOUT_SEQUENCE(dhcp->tries);
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mrezzaaa commented 1 year ago

When i moving to branch v5.1.1 of esp-idf and commit 68e99de70266674ce172459136960bbb5c58dc0e of esp-matter and compiling it again for esp32c6 target is working, but now i got this error.

Rebooting...
ESP-ROM:esp32c6-20220919
Build:Sep 19 2022
rst:0xc (SW_CPU),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x4001975a
0x4001975a: software_reset_cpu in ROM

SPIWP:0xee
mode:DIO, clock div:2
load:0x4086c410,len:0xd10
load:0x4086e610,len:0x2dc4
load:0x40875728,len:0x17d0
entry 0x4086c410
I (26) boot: ESP-IDF v5.1.1 2nd stage bootloader
I (27) boot: compile time Aug 30 2023 03:20:06
I (28) boot: chip revision: v0.0
I (30) boot.esp32c6: SPI Speed      : 80MHz
I (34) boot.esp32c6: SPI Mode       : DIO
I (39) boot.esp32c6: SPI Flash Size : 4MB
I (44) boot: Enabling RNG early entropy source...
I (50) boot: Partition Table:
I (53) boot: ## Label            Usage          Type ST Offset   Length
I (60) boot:  0 esp_secure_cert  unknown          3f 06 0000d000 00002000
I (68) boot:  1 nvs              WiFi data        01 02 00010000 0000e000
I (75) boot:  2 nvs_keys         NVS keys         01 04 0001e000 00001000
I (83) boot:  3 otadata          OTA data         01 00 0001f000 00002000
I (90) boot:  4 phy_init         RF data          01 01 00021000 00001000
I (97) boot:  5 ota_0            OTA app          00 10 00030000 001d0000
I (105) boot:  6 ota_1            OTA app          00 11 00200000 001d0000
I (112) boot:  7 fctry            WiFi data        01 02 003d0000 00006000
I (120) boot:  8 zb_storage       Unknown data     01 81 003d6000 00020000
I (128) boot:  9 zb_fct           Unknown data     01 81 003f6000 00000400
I (135) boot: End of partition table
I (140) esp_image: segment 0: paddr=00030020 vaddr=42170020 size=3baa8h (244392) map
I (246) esp_image: segment 1: paddr=0006bad0 vaddr=40800000 size=04548h ( 17736) load
I (256) esp_image: segment 2: paddr=00070020 vaddr=42000020 size=166098h (1466520) map
I (845) esp_image: segment 3: paddr=001d60c0 vaddr=40804548 size=1215ch ( 74076) load
I (879) esp_image: segment 4: paddr=001e8224 vaddr=408166b0 size=03814h ( 14356) load
I (897) boot: Loaded app from partition at offset 0x30000
I (898) boot: Disabling RNG early entropy source...
I (910) cpu_start: Unicore app
I (910) cpu_start: Pro cpu up.
W (920) clk: esp_perip_clk_init() has not been implemented yet
I (926) cpu_start: Pro cpu start user code
I (927) cpu_start: cpu freq: 160000000 Hz
I (927) cpu_start: Application information:
I (929) cpu_start: Project name:     zigbee_bridge
I (935) cpu_start: App version:      1.0
I (939) cpu_start: Compile time:     Aug 30 2023 03:19:57
I (946) cpu_start: ELF file SHA256:  7d485798c3768231...
I (952) cpu_start: ESP-IDF:          v5.1.1
I (956) cpu_start: Min chip rev:     v0.0
I (961) cpu_start: Max chip rev:     v0.99 
I (966) cpu_start: Chip rev:         v0.0
I (971) heap_init: Initializing. RAM available for dynamic allocation:
I (978) heap_init: At 40830F70 len 0004B6A0 (301 KiB): D/IRAM
I (984) heap_init: At 4087C610 len 00002F54 (11 KiB): STACK/DIRAM
I (991) heap_init: At 50000000 len 00003FE8 (15 KiB): RTCRAM
I (998) spi_flash: detected chip: generic
I (1002) spi_flash: flash io: dio
W (1006) spi_flash: Detected size(8192k) larger than the size in the binary image header(4096k). Using the size in the binary image header.
I (1020) sleep: Configure to isolate all GPIO pins in sleep state
I (1026) sleep: Enable automatic switching of GPIO sleep configuration
I (1033) coexist: coex firmware version: 80b0d89
I (1039) coexist: coexist rom version 5b8dcfa
I (1044) app_start: Starting scheduler on CPU0
I (1049) main_task: Started on CPU0
I (1049) main_task: Calling app_main()
W (1079) esp_matter_core: Attribute 0x0000FFFD on cluster 0x0000001D already exists. Not creating again.
W (1079) esp_matter_core: Attribute 0x0000FFFD on cluster 0x0000001F already exists. Not creating again.
E (1089) esp_matter_attribute: Could not create attribute, string length out of bound
E (1089) esp_matter_attribute: Could not create attribute, string length out of bound
W (1099) esp_matter_core: Attribute 0x00000000 on cluster 0x00000030 already exists. Not creating again.
W (1109) esp_matter_core: Attribute 0x0000FFFD on cluster 0x0000001D already exists. Not creating again.
I (1119) pp: pp rom version: 5b8dcfa
I (1129) net80211: net80211 rom version: 5b8dcfa
I (1139) wifi:wifi driver task: 40839958, prio:23, stack:6656, core=0
I (1139) wifi:wifi firmware version: ce9244d
I (1139) wifi:wifi certification version: v7.0
I (1149) wifi:config NVS flash: enabled
I (1149) wifi:config nano formating: disabled
I (1149) wifi:mac_version:HAL_MAC_ESP32AX_761,ut_version:N
I (1159) wifi:Init data frame dynamic rx buffer num: 32
I (1159) wifi:Init management frame dynamic rx buffer num: 32
I (1169) wifi:Init management short buffer num: 32
I (1169) wifi:Init dynamic tx buffer num: 32
I (1179) wifi:Init static tx FG buffer num: 2
I (1179) wifi:Init static rx buffer size: 1700
I (1189) wifi:Init static rx buffer num: 10
I (1189) wifi:Init dynamic rx buffer num: 32
I (1189) wifi_init: rx ba win: 6
I (1199) wifi_init: tcpip mbox: 32
I (1199) wifi_init: udp mbox: 6
I (1209) wifi_init: tcp mbox: 6
I (1209) wifi_init: tcp tx win: 5744
I (1209) wifi_init: tcp rx win: 5744
I (1219) wifi_init: tcp mss: 1440
I (1219) wifi_init: WiFi IRAM OP enabled
I (1229) wifi_init: WiFi RX IRAM OP enabled
I (1249) chip[DL]: NVS set: chip-counters/reboot-count = 15 (0xF)
I (1249) CHIP[DL]: WiFi station already provisioned, not initializing BLE
I (1249) chip[DL]: Real time clock set to 946684800 (0100/00/01 00:00:00 UTC)
I (1259) chip[DL]: Starting ESP WiFi layer
I (1259) phy_init: phy_version 202,b4b3263,May 17 2023,20:14:14
W (1309) wifi:(bf)761:0x600a7cac:0x01b4b4b0
W (1309) wifi:(agc)0x600a7128:0xd2177800, min.avgNF:0xce->0xd2(dB), RCalCount:0x177, min.RRssi:0x800(-128.00)
W (1309) wifi:(TB)WDEV_PWR_TB_MCS0:19
W (1319) wifi:(TB)WDEV_PWR_TB_MCS1:19
W (1319) wifi:(TB)WDEV_PWR_TB_MCS2:19
W (1319) wifi:(TB)WDEV_PWR_TB_MCS3:19
W (1329) wifi:(TB)WDEV_PWR_TB_MCS4:19
W (1329) wifi:(TB)WDEV_PWR_TB_MCS5:19
W (1329) wifi:(TB)WDEV_PWR_TB_MCS6:18
W (1339) wifi:(TB)WDEV_PWR_TB_MCS7:18
W (1339) wifi:(TB)WDEV_PWR_TB_MCS8:17
W (1339) wifi:(TB)WDEV_PWR_TB_MCS9:15
W (1349) wifi:(TB)WDEV_PWR_TB_MCS10:15
W (1349) wifi:(TB)WDEV_PWR_TB_MCS11:15
I (1349) wifi:11ax coex: WDEVAX_PTI0(0x55777555), WDEVAX_PTI1(0x00003377).

I (1359) wifi:mode : sta (40:4c:ca:42:4b:88)
I (1369) wifi:enable tsf
W (1369) wifi:Haven't to connect to a suitable AP now!
I (1369) chip[DL]: Attempting to connect WiFi station interface
I (1379) chip[DL]: WiFi station state change: NotConnected -> Connecting
I (1389) chip[DL]: Done driving station state, nothing else to do...
I (1389) wifi:new:<6,0>, old:<1,0>, ap:<255,255>, sta:<6,0>, prof:1
I (1399) wifi:(connect)dot11_authmode:0x3, pairwise_cipher:0x3, group_cipher:0x1
I (1409) wifi:state: init -> auth (b0)
I (1409) chip[DL]: WIFI_EVENT_STA_START
I (1409) wifi:state: auth -> assoc (0)
I (1419) chip[DL]: Done driving station state, nothing else to do...
I (1429) chip[SVR]: Initializing subscription resumption storage...
I (1429) chip[SVR]: Server initializing...
I (1439) chip[TS]: Last Known Good Time: 2023-08-30T03:20:55
I (1439) chip[DMG]: AccessControl: initializing
I (1449) chip[DMG]: Examples::AccessControlDelegate::Init
I (1449) chip[DMG]: AccessControl: setting
I (1459) chip[DMG]: DefaultAclStorage: initializing
I (1459) chip[DMG]: DefaultAclStorage: 0 entries loaded
I (1419) wifi:state: assoc -> run (10)
I (1469) wifi:(trc)phytype:CBW20-SGI, snr:67, maxRate:144, highestRateIdx:0
I (1479) wifi:(trc)rate(S-MCS7, schedIdx:0), ampdu(rate:S-MCS7, schedIdx(0, stop:8)), snr:67, ampduState:wait operational
I (1489) wifi:ifidx:0, rssi:-29, nf:-96, phytype(0x3, CBW20-SGI), phymode(0x3, 11bgn), max_rate:1440, he:0
I (1499) wifi:max ampdu length exponent:3(65535 bytes), mmss:5(4 us)
I (1479) chip[ZCL]: Using ZAP configuration...
I (1509) esp_matter_cluster: Cluster plugin init common callback
I (1519) chip[DMG]: AccessControlCluster: initializing
I (1519) chip[ZCL]: 0x421796b8ep 0 clus 0x0000_0030 attr 0x0000_0000 not supported
I (1529) chip[ZCL]: Initiating Admin Commissioning cluster.
E (1539) chip[ZCL]: Duplicate attribute override registration failed
I (1549) chip[SVR]: BLE networking available but BLE advertising is not supported
I (1549) chip[DIS]: Updating services using commissioning mode 1
I (1559) chip[DIS]: CHIP minimal mDNS started advertising.
I (1569) chip[DIS]: Advertise commission parameter vendorID=65521 productID=32768 discriminator=3840/15 cm=1
I (1579) chip[DIS]: CHIP minimal mDNS configured as 'Commissionable node device'; instance name: 5C31B6125492E0C0.
I (1589) chip[DIS]: mDNS service published: _matterc._udp
I (1589) chip[IN]: CASE Server enabling CASE session setups
I (1599) chip[SVR]: Joining Multicast groups
I (1609) chip[SVR]: Server Listening...
I (1609) esp_matter_core: Dynamic endpoint 0 added
I (1619) esp_matter_core: Dynamic endpoint 1 added
I (1619) app_main: Commissioning window opened
W (1519) wifi:<ba-add>idx:0, ifx:0, tid:0, TAHI:0x10040c6, TALO:0x80e9410c, (ssn:0, win:64, cur_ssn:0), CONF:0xc0000005
I (1649) wifi:(extcap)mbssid:0, enhanced_mbssid_advertise:0, complete_nontxbssid_profiles:0
I (1649) wifi:connected with ReadysNetwork, aid = 6, channel 6, BW20, bssid = 0c:41:e9:80:c6:40
I (1669) wifi:cipher(pairwise:0x3, group:0x1), pmf:0, security:WPA2-PSK, phy:11bgn, rssi:-29
I (1679) wifi:pm start, type: 1, itwt_start:0

I (1679) wifi:pm start, type:1, aid:0x6, trans-BSSID:0c:41:e9:80:c6:40, BSSID[5]:0x40, mbssid(max-indicator:0, index:0), he:0
I (1689) wifi:set rx beacon pti, rx_bcn_pti: 10, bcn_timeout: 25000, mt_pti: 10, mt_time: 10000
I (1689) wifi:[ADDBA]TX addba request, tid:0, dialogtoken:1, bufsize:64, A-MSDU:0(not supported), policy:1(IMR), ssn:0(0x0)
I (1699) wifi:[ADDBA]TX addba request, tid:7, dialogtoken:2, bufsize:64, A-MSDU:0(not supported), policy:1(IMR), ssn:0(0x20)
I (1709) wifi:[ADDBA]TX addba request, tid:5, dialogtoken:3, bufsize:64, A-MSDU:0(not supported), policy:1(IMR), ssn:0(0x0)
I (1729) wifi:[ADDBA]RX addba response, status:0, tid:0/tb:1(0xa1), bufsize:64, batimeout:0, txa_wnd:64
I (1739) wifi:[ADDBA]RX addba response, status:0, tid:7/tb:1(0xa1), bufsize:64, batimeout:0, txa_wnd:64
I (1749) wifi:[ADDBA]RX addba response, status:0, tid:5/tb:1(0xa1), bufsize:64, batimeout:0, txa_wnd:64
I (1729) chip[DL]: WIFI_EVENT_STA_CONNECTED
I (1759) chip[DL]: WiFi station state change: Connecting -> Connecting_Succeeded
I (1769) phy: libbtbb version: b684fcb, May 17 2023, 20:14:35
I (1769) chip[DL]: WiFi station state change: Connecting_Succeeded -> Connected
I (1779) chip[DL]: WiFi station interface connected
I (1789) esp_zboss: status: -1
I (1799) esp_zboss: Zigbee stack initialized
I (1799) esp_zboss: status: 0
I (1799) esp_zboss: Start network formation
I (1809) esp_zboss: Formed network successfully
I (1809) esp_zboss: ieee extended address: 88:4b:42:fe:ff:ca:4c:40, PAN ID: 0xd57f)
                                                                                                                                                                                                                                                                                                         I (1799) chip[ZCL]: WiFiDiagnosticsDelegate: OnConnectionStatusChanged
I (1829) chip[DL]: Done driving station state, nothing else to do...
I (1839) chip[DL]: Updating advertising data
I (1759) main_task: Returned from app_main()
> I (1899) wifi:AP's beacon interval = 499712 us, DTIM period = 1
I (2279) esp_zboss: status: 0
I (2279) esp_zboss: Network steering started
I (2729) esp_netif_handlers: sta ip: 192.168.100.13, mask: 255.255.255.0, gw: 192.168.100.1

***ERROR*** A stack overflow in task sys_evt has been detected.
Stack dump detected
Core  0 register dump:
MEPC    : 0x40800606  RA      : 0x4080a8e8  SP      : 0x4081a7d0  GP      : 0x40816eb0  
0x40800606: panic_abort at /Users/icewalker/esp-idf/esp-idf/components/esp_system/panic.c:452

0x4080a8e8: __ubsan_include at /Users/icewalker/esp-idf/esp-idf/components/esp_system/ubsan.c:313

TP      : 0x407fa868  T0      : 0x40030dca  T1      : 0x0000000f  T2      : 0x00000001  
0x40030dca: memset in ROM

S0/FP   : 0x4081a7f4  S1      : 0x4081a7f4  A0      : 0x4081a7f4  A1      : 0x42173268  
A2      : 0x0000000f  A3      : 0x4081a821  A4      : 0x00000001  A5      : 0x4082f000  
A6      : 0x0000001c  A7      : 0x0164a8c0  S2      : 0x00001881  S3      : 0x00000001  
S4      : 0xffffffff  S5      : 0x00000000  S6      : 0x00000000  S7      : 0x00000000  
S8      : 0x4083f5a8  S9      : 0x00000000  S10     : 0x00000000  S11     : 0x00000000  
T3      : 0x00000000  T4      : 0x00000000  T5      : 0x00000001  T6      : 0x421a2a64  
MSTATUS : 0x00001801  MTVEC   : 0x40800001  MCAUSE  : 0x00000007  MTVAL   : 0x00000000  
0x40800001: _vector_table at ??:?

MHARTID : 0x00000000  

Backtrace:

panic_abort (details=details@entry=0x4081a7f4 <xIsrStack+1412> "***ERROR*** A stack overflow in task sys_evt has been detected.") at /Users/icewalker/esp-idf/esp-idf/components/esp_system/panic.c:452
452     *((volatile int *) 0) = 0; // NOLINT(clang-analyzer-core.NullDereference) should be an invalid operation on targets
#0  panic_abort (details=details@entry=0x4081a7f4 <xIsrStack+1412> "***ERROR*** A stack overflow in task sys_evt has been detected.") at /Users/icewalker/esp-idf/esp-idf/components/esp_system/panic.c:452
#1  0x4080a8e8 in esp_system_abort (details=details@entry=0x4081a7f4 <xIsrStack+1412> "***ERROR*** A stack overflow in task sys_evt has been detected.") at /Users/icewalker/esp-idf/esp-idf/components/esp_system/port/esp_system_chip.c:84
#2  0x4080d168 in vApplicationStackOverflowHook (xTask=<optimized out>, pcTaskName=<optimized out>) at /Users/icewalker/esp-idf/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c:434
#3  0x4080c20e in vTaskSwitchContext () at /Users/icewalker/esp-idf/esp-idf/components/freertos/FreeRTOS-Kernel/tasks.c:3729
#4  vTaskSwitchContext () at /Users/icewalker/esp-idf/esp-idf/components/freertos/FreeRTOS-Kernel/tasks.c:3673
#5  0x4080d46c in isr_skip_decrement () at /Users/icewalker/esp-idf/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/portasm.S:87
Backtrace stopped: frame did not save the PC
ELF file SHA256: 7d485798c3768231

This error happened when i'm trying to commisioning using QR code and WiFi Networks

shubhamdp commented 1 year ago

ERROR A stack overflow in task sys_evt has been detected.

This suggests that someone is using a lot more stack on default event loop. Are you using the default example without any change?

mrezzaaa commented 1 year ago

I tried the default one, since error after connected to wifi and comissioning process. I tried to increasing stack, same error still happened.

shubhamdp commented 1 year ago

Quoting from https://github.com/espressif/esp-matter/tree/main/examples/zigbee_bridge

The Matter Bridge device is composed of two parts: The RCP running on ESP32-H2 and the bridge app running on ESP32.

Are you using C6 for bridge or rcp? Did you completed the hardware setup described in there?

mrezzaaa commented 1 year ago

yes i'd testing both bridge and rcp. I think C6 is built in for 802.15 hardware, so doesn't need any external like H2 hardware (just set to Native Zigbee on SDK config). Based on log (not on log above), 802.15 network joined to Zigbee network successfully, but crashing after joining WiFi network. Some crashed before joined Zigbee network, and some crash after joined Zigbee network. Crashed happened after WiFi joining successfully.

wqx6 commented 1 year ago

I have encountered this crash for zigbee-bridge example on ESP32-C6. Could you try to disable USE_BLE_ONLY_FOR_COMMISSIONING in menuconfig? There is an issue of heap corruption which will crash when de-initializing BLE and it has been fixed in https://github.com/espressif/esp-idf/commit/db51ceed69c65437ac7f13bc8fb9ff798299f48c. Could you please verify whether you ESP-IDF has included this commit?

Note: You should also change the radio_mode to RADIO_MODE_NATIVE in main/app_zboss.h for ESP32-C6.

mrezzaaa commented 1 year ago

I am using IDF 5.1.1

baylf2000 commented 1 year ago

@mrezzaaa

I am using IDF 5.1.1

As I understand it, you cannot use both 802.15 and Wifi at the same time on H2 or C6 devices. You will need to use two devices together in that case.

mrezzaaa commented 1 year ago

Any detail explanation why this couldn't work at same time?

baylf2000 commented 1 year ago

Any detail explanation why this couldn't work at same time?

You'd have to ask Espressif for a definitive answer, however I believe it's because there is only a single radio in the device, which makes it more difficult to use both protocols at the same time.

mrezzaaa commented 1 year ago

I think (correct me if i'm wrong) the release of C6 for increasing efficiency of it's predecessor ( H2 + Esp32 ) for Matter WiFi and Radio.🤔 image

baylf2000 commented 1 year ago

I think (correct me if i'm wrong) the release of C6 for increasing efficiency of it's predecessor ( H2 + Esp32 ) for Matter WiFi and Radio.🤔 image

Unfortunately you are wrong. As it clearly states there... "ESP32-C6 combined with another Espressif SoC". At this stage I have not seen any examples of using WiFi and 802.15 together at the same time in a single device. You can use WiFi and Bluetooth together, and Bluetooth and 802.15 together, so I don't understand why it's different with WiFi and 802.15, but that's just the way it is right now.

mrezzaaa commented 1 year ago

Ah i see. Thanks for the information. Closing this issue now