apple / swift-matter-examples

An Embedded Swift Matter application running on ESP32-C6
https://apple.github.io/swift-matter-examples/tutorials/tutorial-table-of-contents/
Apache License 2.0
212 stars 16 forks source link

Smart Light example seems to go into a boot loop #12

Open farhan-syed opened 3 weeks ago

farhan-syed commented 3 weeks ago

Followed Apple's guide for macOS and the Smart Light.

Installed Apple Swift Version 6.0

Apple Swift version 6.0-dev (LLVM c7c87ee42989d4b, Swift 0aa0687fe0f4047)
Target: arm64-apple-macosx14.0

Screenshot 2024-06-25 at 2 00 48 AM

Installed cmake ninja dfu-util with Homebrew.

Installed ESP-IDF 5.2.1 and ESP-Matter 1.2

Added to my .zshrc file:

$ export TOOLCHAINS=org.swift.59202406031a
$ . ~/esp/esp-idf/export.sh
$ . ~/esp/esp-matter/export.sh

Running idf.py set-target esp32c6 causes no issues.

Running idf.py build does show various warnings: dark@MacBook-Pro smart-light % idf.py build
Executing action: all (aliases: build) Running ninja in directory /Users/dark/swift-matter-examples/smart-light/build Executing "ninja all"... [8/1257] Generating ../../partition_table/partition-table.bin Partition table binary generated. Contents:


ESP-IDF Partition Table Name, Type, SubType, Offset, Size, Flags esp_secure_cert,63,6,0xd000,8K,encrypted nvs,data,nvs,0x10000,48K, nvs_keys,data,nvs_keys,0x1c000,4K,encrypted otadata,data,ota,0x1d000,8K, phy_init,data,phy,0x1f000,4K, ota_0,app,ota_0,0x20000,1920K, ota_1,app,ota_1,0x200000,1920K, fctry,data,nvs,0x3e0000,24K, coredump,data,coredump,0x3e6000,64K,


[709/1257] Performing configure step for 'chip_gn' Done. Made 273 targets from 218 files in 131ms [754/1257] Performing configure step for 'bootloader' -- Found Git: /usr/bin/git (found version "2.39.3 (Apple Git-146)") -- The C compiler identification is GNU 13.2.0 -- The CXX compiler identification is GNU 13.2.0 -- The ASM compiler identification is GNU -- Found assembler: /Users/dark/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-gcc -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /Users/dark/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /Users/dark/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Building ESP-IDF components for target esp32c6 -- Project sdkconfig file /Users/dark/swift-matter-examples/smart-light/sdkconfig -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of time_t -- Check size of time_t - done -- Adding linker script /Users/dark/esp/esp-idf/components/soc/esp32c6/ld/esp32c6.peripherals.ld -- Bootloader project name: "bootloader" version: 1 -- Adding linker script /Users/dark/esp/esp-idf/components/esp_rom/esp32c6/ld/esp32c6.rom.ld -- Adding linker script /Users/dark/esp/esp-idf/components/esp_rom/esp32c6/ld/esp32c6.rom.api.ld -- Adding linker script /Users/dark/esp/esp-idf/components/esp_rom/esp32c6/ld/esp32c6.rom.rvfp.ld -- Adding linker script /Users/dark/esp/esp-idf/components/esp_rom/esp32c6/ld/esp32c6.rom.newlib.ld -- Adding linker script /Users/dark/esp/esp-idf/components/esp_rom/esp32c6/ld/esp32c6.rom.phy.ld -- Adding linker script /Users/dark/esp/esp-idf/components/esp_rom/esp32c6/ld/esp32c6.rom.wdt.ld -- Adding linker script /Users/dark/esp/esp-idf/components/esp_rom/esp32c6/ld/esp32c6.rom.version.ld -- Adding linker script /Users/dark/esp/esp-idf/components/bootloader/subproject/main/ld/esp32c6/bootloader.ld -- Adding linker script /Users/dark/esp/esp-idf/components/bootloader/subproject/main/ld/esp32c6/bootloader.rom.ld -- Components: bootloader bootloader_support efuse esp_app_format esp_bootloader_format esp_common esp_hw_support esp_rom esp_system esptool_py freertos hal log main micro-ecc newlib partition_table riscv soc spi_flash -- Component paths: /Users/dark/esp/esp-idf/components/bootloader /Users/dark/esp/esp-idf/components/bootloader_support /Users/dark/esp/esp-idf/components/efuse /Users/dark/esp/esp-idf/components/esp_app_format /Users/dark/esp/esp-idf/components/esp_bootloader_format /Users/dark/esp/esp-idf/components/esp_common /Users/dark/esp/esp-idf/components/esp_hw_support /Users/dark/esp/esp-idf/components/esp_rom /Users/dark/esp/esp-idf/components/esp_system /Users/dark/esp/esp-idf/components/esptool_py /Users/dark/esp/esp-idf/components/freertos /Users/dark/esp/esp-idf/components/hal /Users/dark/esp/esp-idf/components/log /Users/dark/esp/esp-idf/components/bootloader/subproject/main /Users/dark/esp/esp-idf/components/bootloader/subproject/components/micro-ecc /Users/dark/esp/esp-idf/components/newlib /Users/dark/esp/esp-idf/components/partition_table /Users/dark/esp/esp-idf/components/riscv /Users/dark/esp/esp-idf/components/soc /Users/dark/esp/esp-idf/components/spi_flash -- Configuring done (4.7s) -- Generating done (0.2s) -- Build files have been written to: /Users/dark/swift-matter-examples/smart-light/build/bootloader [829/1257] Building C object esp-idf/espressifesp_diagnostics/CMakeFiles/__idf_espressifesp_diagnostics.dir/src/esp_diagnostics_utils.c.obj In file included from /Users/dark/swift-matter-examples/smart-light/managed_components/espressifesp_diagnostics/src/esp_diagnostics_utils.c:51: /Users/dark/esp/esp-idf/components/freertos/esp_additions/include/freertos/task_snapshot.h:8:2: warning: #warning freertos/task_snapshot.h header is no longer used, and will be removed in future versions. [-Wcpp] 8 | #warning freertos/task_snapshot.h header is no longer used, and will be removed in future versions. | ^~~ [996/1257] Building C object esp-idf/led_driver/CMakeFiles/idf_led_driver.dir/ws2812/led_driver.c.obj In file included from /Users/dark/esp/esp-matter/device_hal/led_driver/ws2812/led_driver.c:15: /Users/dark/esp/esp-idf/components/driver/deprecated/driver/rmt.h:18:2: warning: #warning "The legacy RMT driver is deprecated, please use driver/rmt_tx.h and/or driver/rmt_rx.h" [-Wcpp] 18 | #warning "The legacy RMT driver is deprecated, please use driver/rmt_tx.h and/or driver/rmt_rx.h" | ^~~ [997/1257] Building C object esp-idf/espressifled_strip/CMakeFiles/__idf_espressifled_strip.dir/src/led_strip_rmt_ws2812.c.obj In file included from /Users/dark/swift-matter-examples/smart-light/managed_components/espressifled_strip/src/led_strip_rmt_ws2812.c:20: /Users/dark/esp/esp-idf/components/driver/deprecated/driver/rmt.h:18:2: warning: #warning "The legacy RMT driver is deprecated, please use driver/rmt_tx.h and/or driver/rmt_rx.h" [-Wcpp] 18 | #warning "The legacy RMT driver is deprecated, please use driver/rmt_tx.h and/or driver/rmt_rx.h" | ^~~ [1006/1257] Building C object esp-idf/espressifbutton/CMakeFiles/idf_espressifbutton.dir/button_adc.c.obj /Users/dark/swift-matter-examples/smart-light/managed_components/espressifbutton/button_adc.c: In function 'button_adc_init': /Users/dark/swift-matter-examples/smart-light/managed_components/espressifbutton/button_adc.c:206:13: warning: 'ADC_ATTEN_DB_11' is deprecated [-Wdeprecated-declarations] 206 | .atten = ADC_BUTTON_ATTEN, | ^ In file included from /Users/dark/esp/esp-idf/components/esp_adc/include/esp_adc/adc_oneshot.h:12, from /Users/dark/swift-matter-examples/smart-light/managed_components/espressifbutton/button_adc.c:21: /Users/dark/esp/esp-idf/components/hal/include/hal/adc_types.h:51:5: note: declared here 51 | ADC_ATTEN_DB_11 attribute((deprecated)) = ADC_ATTEN_DB_12, ///<This is deprecated, it behaves the same as ADC_ATTEN_DB_12 | ^~~~~~~ /Users/dark/swift-matter-examples/smart-light/managed_components/espressifbutton/button_adc.c:211:9: warning: 'ADC_ATTEN_DB_11' is deprecated [-Wdeprecated-declarations] 211 | ret = adc_calibration_init(ADC_BUTTON_ADC_UNIT, ADC_BUTTON_ATTEN, &g_button.adc1_cali_handle); | ^~~ /Users/dark/esp/esp-idf/components/hal/include/hal/adc_types.h:51:5: note: declared here 51 | ADC_ATTEN_DB_11 attribute((deprecated)) = ADC_ATTEN_DB_12, ///<This is deprecated, it behaves the same as ADC_ATTEN_DB_12 | ^~~~~~~ [1031/1257] Building C object esp-idf/device/CMakeFiles/idf_device.dir/esp32c6_devkit_c/device.c.obj /Users/dark/esp/esp-matter/device_hal/device/esp32c6_devkit_c/device.c:22:20: warning: 'TAG' defined but not used [-Wunused-variable] 22 | static const char *TAG = "device"; | ^~~ [107/108] Generating binary image from built executable esptool.py v4.7.0 Creating esp32c6 image... Merged 3 ELF sections Successfully created esp32c6 image. Generated /Users/dark/swift-matter-examples/smart-light/build/bootloader/bootloader.bin [108/108] cd /Users/dark/swift-matter-examples/smart-light/build/bootloader/esp-idf/esptool_py && /Use...et 0xc000 bootloader 0x0 /Users/dark/swift-matter-examples/smart-light/build/bootloader/bootloader.bi Bootloader binary size 0x54d0 bytes. 0x6b30 bytes (56%) free. [1146/1257] Building CXX object esp-idf/esp_matter/CMakeFiles/__idf_esp_matter.dir/Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/app/util/attribute-storage.cpp.obj /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/app/util/attribute-storage.cpp: In function 'void emberAfEndpointConfigure()': /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/app/util/attribute-storage.cpp:165:40: warning: comparison is always true due to limited range of data type [-Wtype-limits] 165 | static_assert(FIXED_ENDPOINT_COUNT <= std::numeric_limits<decltype(ep)>::max(), /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/app/util/attribute-storage.cpp:190:21: warning: comparison is always false due to limited range of data type [-Wtype-limits] 190 | for (ep = 0; ep < FIXED_ENDPOINT_COUNT; ep++) /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/app/util/attribute-storage.cpp: In function 'uint16_t emberAfGetClusterServerEndpointIndex(chip::EndpointId, chip::ClusterId, uint16_t)': /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/app/util/attribute-storage.cpp:869:17: warning: comparison is always false due to limited range of data type [-Wtype-limits] 869 | if (epIndex < FIXED_ENDPOINT_COUNT) [1172/1257] Building CXX object esp-idf/esp_matter/CMakeFiles/idf_esp_matter.dir/Users/dark/esp/esp-...ter/connectedhomeip/connectedhomeip/src/app/clusters/color-control-server/color-control-server.cpp.ob /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/app/clusters/color-control-server/color-control-server.cpp: In member function 'bool ColorControlServer::moveToHueCommand(chip::app::CommandHandler*, const chip::app::ConcreteCommandPath&, uint16_t, HueDirection, uint16_t, uint8_t, uint8_t, bool)': /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/app/clusters/color-control-server/color-control-server.cpp:1536:58: warning: 'direction' may be used uninitialized [-Wmaybe-uninitialized] 1536 | colorHueTransitionState->up = (direction == HueDirection::kUp); | ~~~^~~~~ /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/app/clusters/color-control-server/color-control-server.cpp:1439:18: note: 'direction' was declared here 1439 | HueDirection direction; | ^~~~~ [1251/1257] Building Swift object esp-idf/main/idf_main.swiftmodule esp-idf/main/CMakeFiles/idf_ma...df_main.dir//Matter/Matter.swift.obj esp-idf/main/CMakeFiles/__idf_main.dir//Matter/Node.swift.ob warning: conditional compilation flags do not have values in Swift; they are either present or absent (rather than 'IDF_VER="v5.2.1"') warning: conditional compilation flags do not have values in Swift; they are either present or absent (rather than 'MBEDTLS_CONFIG_FILE="mbedtls/esp_config.h"') warning: conditional compilation flags do not have values in Swift; they are either present or absent (rather than 'SOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE') warning: conditional compilation flags do not have values in Swift; they are either present or absent (rather than 'SOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ') warning: conditional compilation flags do not have values in Swift; they are either present or absent (rather than 'CHIP_ADDRESS_RESOLVE_IMPL_INCLUDE_HEADER=<lib/address_resolve/AddressResolve_DefaultImpl.h>') /Users/dark/swift-matter-examples/smart-light/main/BridgingHeader.h:27:10: note: in file included from /Users/dark/swift-matter-examples/smart-light/main/BridgingHeader.h:27: 25 | #include 26 | #include 27 | #include | `- note: in file included from /Users/dark/swift-matter-examples/smart-light/main/BridgingHeader.h:27: 28 | 29 | // ESP Matter

/Users/dark/esp/esp-matter/device_hal/device/include/device.h:16:10: note: in file included from /Users/dark/esp/esp-matter/device_hal/device/include/device.h:16: 14 | #pragma once 15 | 16 | #include | `- note: in file included from /Users/dark/esp/esp-matter/device_hal/device/include/device.h:16: 17 | #include 18 |

/Users/dark/swift-matter-examples/smart-light/managed_components/espressifbutton/include/iot_button.h:17:10: note: in file included from /Users/dark/swift-matter-examples/smart-light/managed_components/espressifbutton/include/iot_button.h:17: 15 | #define _IOT_BUTTONH 16 | 17 | #include "button_adc.h" | `- note: in file included from /Users/dark/swift-matter-examples/smart-light/managed_components/espressif__button/include/iot_button.h:17: 18 | #include "button_gpio.h" 19 | #include "esp_err.h"

/Users/dark/swift-matter-examples/smart-light/managed_components/espressifbutton/include/button_adc.h:18:10: note: in file included from /Users/dark/swift-matter-examples/smart-light/managed_components/espressifbutton/include/button_adc.h:18: 16 | 17 | #include "esp_idf_version.h" 18 | #include "driver/gpio.h" | `- note: in file included from /Users/dark/swift-matter-examples/smart-light/managed_components/espressif__button/include/button_adc.h:18: 19 | #if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 0, 0) 20 | #include "esp_adc/adc_oneshot.h"

/Users/dark/esp/esp-idf/components/driver/gpio/include/driver/gpio.h:17:10: note: in file included from /Users/dark/esp/esp-idf/components/driver/gpio/include/driver/gpio.h:17: 15 | #include "hal/gpio_types.h" 16 | #include "esp_rom_gpio.h" 17 | #include "driver/gpio_etm.h" | `- note: in file included from /Users/dark/esp/esp-idf/components/driver/gpio/include/driver/gpio.h:17: 18 | 19 | #ifdef __cplusplus

/Users/dark/esp/esp-idf/components/driver/gpio/include/driver/gpio_etm.h:10:10: note: in file included from /Users/dark/esp/esp-idf/components/driver/gpio/include/driver/gpio_etm.h:10: 8 | #include 9 | #include "esp_err.h" 10 | #include "esp_etm.h" | `- note: in file included from /Users/dark/esp/esp-idf/components/driver/gpio/include/driver/gpio_etm.h:10: 11 | 12 | #ifdef __cplusplus

/Users/dark/esp/esp-idf/components/esp_hw_support/include/esp_etm.h:34:9: warning: empty struct has size 0 in C, size 1 in C++ 32 | @brief ETM channel configuration 33 | / 34 | typedef struct { | `- warning: empty struct has size 0 in C, size 1 in C++ 35 | 36 | } esp_etm_channel_config_t;

/Users/dark/swift-matter-examples/smart-light/main/BridgingHeader.h:42:10: note: in file included from /Users/dark/swift-matter-examples/smart-light/main/BridgingHeader.h:42: 40 | extern "C" size_t strnlen(const char *s, size_t maxlen); 41 | 42 | #include | `- note: in file included from /Users/dark/swift-matter-examples/smart-light/main/BridgingHeader.h:42: 43 | #include 44 | #include <app-common/zap-generated/ids/Clusters.h>

/Users/dark/esp/esp-matter/components/esp_matter/esp_matter.h:22:10: note: in file included from /Users/dark/esp/esp-matter/components/esp_matter/esp_matter.h:22: 20 | */ 21 | 22 | #include | `- note: in file included from /Users/dark/esp/esp-matter/components/esp_matter/esp_matter.h:22: 23 | #include 24 | #include

/Users/dark/esp/esp-matter/components/esp_matter/esp_matter_attribute.h:17:10: note: in file included from /Users/dark/esp/esp-matter/components/esp_matter/esp_matter_attribute.h:17: 15 | #pragma once 16 | 17 | #include | `- note: in file included from /Users/dark/esp/esp-matter/components/esp_matter/esp_matter_attribute.h:17: 18 | 19 | namespace esp_matter {

/Users/dark/esp/esp-matter/components/esp_matter/esp_matter_core.h:18:10: note: in file included from /Users/dark/esp/esp-matter/components/esp_matter/esp_matter_core.h:18: 16 | 17 | #include <app/DeviceProxy.h> 18 | #include <app/InteractionModelEngine.h> | `- note: in file included from /Users/dark/esp/esp-matter/components/esp_matter/esp_matter_core.h:18: 19 | #include <app/util/af-types.h> 20 | #include

/Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/app/InteractionModelEngine.h:32:10: note: in file included from /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/app/InteractionModelEngine.h:32: 30 | #include <app/MessageDef/AttributeReportIBs.h> 31 | #include <app/MessageDef/ReportDataMessage.h> 32 | #include <app/SubscriptionResumptionSessionEstablisher.h> | `- note: in file included from /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/app/InteractionModelEngine.h:32: 33 | #include <lib/core/CHIPCore.h> 34 | #include <lib/support/CodeUtils.h>

/Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/app/SubscriptionResumptionSessionEstablisher.h:21:10: note: in file included from /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/app/SubscriptionResumptionSessionEstablisher.h:21: 19 | 20 | #include <app/AttributePathParams.h> 21 | #include <app/CASESessionManager.h> | `- note: in file included from /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/app/SubscriptionResumptionSessionEstablisher.h:21: 22 | #include <app/SubscriptionResumptionStorage.h> 23 |

/Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/app/CASESessionManager.h:27:10: note: in file included from /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/app/CASESessionManager.h:27: 25 | #include <lib/core/CHIPCore.h> 26 | #include <lib/support/Pool.h> 27 | #include <platform/CHIPDeviceLayer.h> | `- note: in file included from /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/app/CASESessionManager.h:27: 28 | #include <transport/SessionDelegate.h> 29 | #include <transport/SessionUpdateDelegate.h>

/Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/include/platform/CHIPDeviceLayer.h:27:10: note: in file included from /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/include/platform/CHIPDeviceLayer.h:27: 25 | #include <lib/core/CHIPCore.h> 26 | #include <platform/CHIPDeviceError.h> 27 | #include <platform/ConfigurationManager.h> | `- note: in file included from /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/include/platform/CHIPDeviceLayer.h:27: 28 | #include <platform/ConnectivityManager.h> 29 | #include <platform/GeneralUtils.h>

/Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/include/platform/ConfigurationManager.h:219:10: note: in file included from /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/include/platform/ConfigurationManager.h:219: 217 | #elif defined(CHIP_DEVICE_LAYER_TARGET) 218 | #define CONFIGURATIONMANAGERIMPL_HEADER <platform/CHIP_DEVICE_LAYER_TARGET/ConfigurationManagerImpl.h> 219 | #include CONFIGURATIONMANAGERIMPL_HEADER | `- note: in file included from /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/include/platform/ConfigurationManager.h:219: 220 | #endif // defined(CHIP_DEVICE_LAYER_TARGET) 221 |

/Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/platform/ESP32/ConfigurationManagerImpl.h:28:10: note: in file included from /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/platform/ESP32/ConfigurationManagerImpl.h:28: 26 | #pragma once 27 | 28 | #include <platform/ConnectivityManager.h> | `- note: in file included from /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/platform/ESP32/ConfigurationManagerImpl.h:28: 29 | #include <platform/internal/GenericConfigurationManagerImpl.h> 30 | #if CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE

/Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/include/platform/ConnectivityManager.h:308:10: note: in file included from /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/include/platform/ConnectivityManager.h:308: 306 | #elif defined(CHIP_DEVICE_LAYER_TARGET) 307 | #define CONNECTIVITYMANAGERIMPL_HEADER <platform/CHIP_DEVICE_LAYER_TARGET/ConnectivityManagerImpl.h> 308 | #include CONNECTIVITYMANAGERIMPL_HEADER | `- note: in file included from /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/include/platform/ConnectivityManager.h:308: 309 | #endif // defined(CHIP_DEVICE_LAYER_TARGET) 310 |

/Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/platform/ESP32/ConnectivityManagerImpl.h:45:10: note: in file included from /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/platform/ESP32/ConnectivityManagerImpl.h:45: 43 | 44 | #if CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE 45 | #include <platform/internal/GenericConnectivityManagerImpl_BLE.h> | `- note: in file included from /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/platform/ESP32/ConnectivityManagerImpl.h:45: 46 | #else 47 | #include <platform/internal/GenericConnectivityManagerImpl_NoBLE.h>

/Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/include/platform/internal/GenericConnectivityManagerImpl_BLE.h:27:10: note: in file included from /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/include/platform/internal/GenericConnectivityManagerImpl_BLE.h:27: 25 | #pragma once 26 | 27 | #include <platform/internal/BLEManager.h> | `- note: in file included from /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/include/platform/internal/GenericConnectivityManagerImpl_BLE.h:27: 28 | 29 | namespace chip {

/Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/include/platform/internal/BLEManager.h:106:10: note: in file included from /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/include/platform/internal/BLEManager.h:106: 104 | #elif defined(CHIP_DEVICE_LAYER_TARGET) 105 | #define BLEMANAGERIMPL_HEADER <platform/CHIP_DEVICE_LAYER_TARGET/BLEManagerImpl.h> 106 | #include BLEMANAGERIMPL_HEADER | `- note: in file included from /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/include/platform/internal/BLEManager.h:106: 107 | #endif // defined(CHIP_DEVICE_LAYER_TARGET) 108 |

/Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/platform/ESP32/BLEManagerImpl.h:48:10: note: in file included from /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/platform/ESP32/BLEManagerImpl.h:48: 46 | #define min 47 | #define max 48 | #include "host/ble_hs.h" | `- note: in file included from /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/platform/ESP32/BLEManagerImpl.h:48: 49 | #undef min 50 | #undef max

/Users/dark/esp/esp-idf/components/bt/host/nimble/nimble/nimble/host/include/host/ble_hs.h:38:10: note: in file included from /Users/dark/esp/esp-idf/components/bt/host/nimble/nimble/nimble/host/include/host/ble_hs.h:38: 36 | #include "host/ble_hs_id.h" 37 | #include "host/ble_hs_hci.h" 38 | #include "host/ble_hs_log.h" | `- note: in file included from /Users/dark/esp/esp-idf/components/bt/host/nimble/nimble/nimble/host/include/host/ble_hs.h:38: 39 | #include "host/ble_hs_mbuf.h" 40 | #include "host/ble_hs_stop.h"

/Users/dark/esp/esp-idf/components/bt/host/nimble/nimble/nimble/host/include/host/ble_hs_log.h:23:10: note: in file included from /Users/dark/esp/esp-idf/components/bt/host/nimble/nimble/nimble/host/include/host/ble_hs_log.h:23: 21 | #define H_BLE_HSLOG 22 | 23 | #include "modlog/modlog.h" | `- note: in file included from /Users/dark/esp/esp-idf/components/bt/host/nimble/nimble/nimble/host/include/host/ble_hs_log.h:23: 24 | #include "log/log.h" 25 |

/Users/dark/esp/esp-idf/components/bt/host/nimble/nimble/porting/nimble/include/modlog/modlog.h:26:10: note: in file included from /Users/dark/esp/esp-idf/components/bt/host/nimble/nimble/porting/nimble/include/modlog/modlog.h:26: 24 | 25 | #include "log_common/log_common.h" 26 | #include "log/log.h" | `- note: in file included from /Users/dark/esp/esp-idf/components/bt/host/nimble/nimble/porting/nimble/include/modlog/modlog.h:26: 27 | #include "log_common/log_common.h" 28 |

/Users/dark/esp/esp-idf/components/bt/host/nimble/nimble/porting/nimble/include/log/log.h:27:1: warning: empty struct has size 0 in C, size 1 in C++ 25 | #endif 26 | 27 | struct log { | `- warning: empty struct has size 0 in C, size 1 in C++ 28 | }; 29 |

/Users/dark/swift-matter-examples/smart-light/main/BridgingHeader.h:42:10: note: in file included from /Users/dark/swift-matter-examples/smart-light/main/BridgingHeader.h:42: 40 | extern "C" size_t strnlen(const char *s, size_t maxlen); 41 | 42 | #include | `- note: in file included from /Users/dark/swift-matter-examples/smart-light/main/BridgingHeader.h:42: 43 | #include 44 | #include <app-common/zap-generated/ids/Clusters.h>

/Users/dark/esp/esp-matter/components/esp_matter/esp_matter.h:22:10: note: in file included from /Users/dark/esp/esp-matter/components/esp_matter/esp_matter.h:22: 20 | */ 21 | 22 | #include | `- note: in file included from /Users/dark/esp/esp-matter/components/esp_matter/esp_matter.h:22: 23 | #include 24 | #include

/Users/dark/esp/esp-matter/components/esp_matter/esp_matter_attribute.h:17:10: note: in file included from /Users/dark/esp/esp-matter/components/esp_matter/esp_matter_attribute.h:17: 15 | #pragma once 16 | 17 | #include | `- note: in file included from /Users/dark/esp/esp-matter/components/esp_matter/esp_matter_attribute.h:17: 18 | 19 | namespace esp_matter {

/Users/dark/esp/esp-matter/components/esp_matter/esp_matter_core.h:18:10: note: in file included from /Users/dark/esp/esp-matter/components/esp_matter/esp_matter_core.h:18: 16 | 17 | #include <app/DeviceProxy.h> 18 | #include <app/InteractionModelEngine.h> | `- note: in file included from /Users/dark/esp/esp-matter/components/esp_matter/esp_matter_core.h:18: 19 | #include <app/util/af-types.h> 20 | #include

/Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/app/InteractionModelEngine.h:32:10: note: in file included from /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/app/InteractionModelEngine.h:32: 30 | #include <app/MessageDef/AttributeReportIBs.h> 31 | #include <app/MessageDef/ReportDataMessage.h> 32 | #include <app/SubscriptionResumptionSessionEstablisher.h> | `- note: in file included from /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/app/InteractionModelEngine.h:32: 33 | #include <lib/core/CHIPCore.h> 34 | #include <lib/support/CodeUtils.h>

/Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/app/SubscriptionResumptionSessionEstablisher.h:21:10: note: in file included from /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/app/SubscriptionResumptionSessionEstablisher.h:21: 19 | 20 | #include <app/AttributePathParams.h> 21 | #include <app/CASESessionManager.h> | `- note: in file included from /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/app/SubscriptionResumptionSessionEstablisher.h:21: 22 | #include <app/SubscriptionResumptionStorage.h> 23 |

/Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/app/CASESessionManager.h:27:10: note: in file included from /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/app/CASESessionManager.h:27: 25 | #include <lib/core/CHIPCore.h> 26 | #include <lib/support/Pool.h> 27 | #include <platform/CHIPDeviceLayer.h> | `- note: in file included from /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/app/CASESessionManager.h:27: 28 | #include <transport/SessionDelegate.h> 29 | #include <transport/SessionUpdateDelegate.h>

/Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/include/platform/CHIPDeviceLayer.h:27:10: note: in file included from /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/include/platform/CHIPDeviceLayer.h:27: 25 | #include <lib/core/CHIPCore.h> 26 | #include <platform/CHIPDeviceError.h> 27 | #include <platform/ConfigurationManager.h> | `- note: in file included from /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/include/platform/CHIPDeviceLayer.h:27: 28 | #include <platform/ConnectivityManager.h> 29 | #include <platform/GeneralUtils.h>

/Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/include/platform/ConfigurationManager.h:219:10: note: in file included from /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/include/platform/ConfigurationManager.h:219: 217 | #elif defined(CHIP_DEVICE_LAYER_TARGET) 218 | #define CONFIGURATIONMANAGERIMPL_HEADER <platform/CHIP_DEVICE_LAYER_TARGET/ConfigurationManagerImpl.h> 219 | #include CONFIGURATIONMANAGERIMPL_HEADER | `- note: in file included from /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/include/platform/ConfigurationManager.h:219: 220 | #endif // defined(CHIP_DEVICE_LAYER_TARGET) 221 |

3 warnings generated. /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/platform/ESP32/ConfigurationManagerImpl.h:56:16: warning: 'GetSoftwareVersionString' overrides a member function but is not marked 'override' 54 | CHIP_ERROR GetTotalOperationalHours(uint32_t & totalOperationalHours) override; 55 | CHIP_ERROR StoreTotalOperationalHours(uint32_t totalOperationalHours) override; 56 | CHIP_ERROR GetSoftwareVersionString(char * buf, size_t bufSize); | `- warning: 'GetSoftwareVersionString' overrides a member function but is not marked 'override' 57 | CHIP_ERROR GetSoftwareVersion(uint32_t & softwareVer) override; 58 | CHIP_ERROR GetLocationCapability(uint8_t & location) override;

/Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/src/include/platform/internal/GenericConfigurationManagerImpl.h:66:16: note: overridden virtual function is here 64 | CHIP_ERROR Init() override; 65 | CHIP_ERROR StoreHardwareVersion(uint16_t hardwareVer) override; 66 | CHIP_ERROR GetSoftwareVersionString(char * buf, size_t bufSize) override; | `- note: overridden virtual function is here 67 | CHIP_ERROR GetSoftwareVersion(uint32_t & softwareVer) override; 68 | CHIP_ERROR StoreSoftwareVersion(uint32_t softwareVer) override; [1253/1257] Generating ld/sections.ld warning: default on the choice symbol SEC_CERT_DAC_PROVIDER (defined at /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/config/esp32/components/chip/Kconfig:842, /Users/dark/esp/esp-matter/components/esp_matter/Kconfig:41) will have no effect, as defaults do not affect choice symbols warning: the choice symbol SEC_CERT_DAC_PROVIDER (defined at /Users/dark/esp/esp-matter/connectedhomeip/connectedhomeip/config/esp32/components/chip/Kconfig:842, /Users/dark/esp/esp-matter/components/esp_matter/Kconfig:41) is defined with a prompt outside the choice [1256/1257] Generating binary image from built executable esptool.py v4.7.0 Creating esp32c6 image... Merged 5 ELF sections Successfully created esp32c6 image. Generated /Users/dark/swift-matter-examples/smart-light/build/light.bin [1257/1257] cd /Users/dark/swift-matter-examples/smart-light/build/esp-idf/esptool_py && /Users/dark/....uild/partition_table/partition-table.bin /Users/dark/swift-matter-examples/smart-light/build/light.bi light.bin binary size 0x1895d0 bytes. Smallest app partition is 0x1e0000 bytes. 0x56a30 bytes (18%) free.

Project build complete. To flash, run: idf.py flash or idf.py -p PORT flash or python -m esptool --chip esp32c6 -b 460800 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_size 4MB --flash_freq 80m 0x0 build/bootloader/bootloader.bin 0xc000 build/partition_table/partition-table.bin 0x1d000 build/ota_data_initial.bin 0x20000 build/light.bin or from the "/Users/dark/swift-matter-examples/smart-light/build" directory python -m esptool --chip esp32c6 -b 460800 --before default_reset --after hard_reset write_flash "@flash_args"

Running idf.py flash monitor: (runs infinitely in a loop it seems) Here it a gist as it was too long to post here. idf.py flash monitor log

If anyone can guide me in the right direction. That would be great. Been trying to get this to work for the past few days.

Henryforce commented 2 weeks ago

Based on your logs, the best pointer that I could find might be:

Guru Meditation Error: Core  0 panic'ed (Load access fault). Exception was unhandled.

And it looks like there was a thread about this in the esp-idf repo a while ago https://github.com/espressif/esp-idf/issues/9631#issuecomment-1543286579 with a workaround, perhaps you could try and see if it works

tali commented 2 weeks ago

I have a similar panic during pairing the device. The 'nano' formatting option mentioned in the workaround is already disabled.

panic log
I (33111) esp_matter_attribute: ********** R : Endpoint 0x0000's Cluster 0x00000030's Attribute 0x00000000 is 0 **********
I (33131) chip[EM]: <<< [E:36221r S:41139 M:252200430] (S) Msg TX to 0:FFFFFFFB00000000 [0000] [BLE] --- Type 0001:05 (IM:ReportData)
I (33141) NimBLE: GATT procedure initiated: indicate; 
I (33141) NimBLE: att_handle=18

I (33211) chip[DL]: Confirm received for CHIPoBLE TX characteristic indication (con 1) status= 14 
I (33211) NimBLE: GATT procedure initiated: indicate; 
I (33211) NimBLE: att_handle=18

I (33271) chip[DL]: Confirm received for CHIPoBLE TX characteristic indication (con 1) status= 14 
I (33271) CHIP[DL]: Write request received for CHIPoBLE RX characteristic con 1 16
I (33281) chip[EM]: >>> [E:36222r S:41139 M:198494846] (S) Msg RX from 0:FFFFFFFB00000000 [0000] --- Type 0001:02 (IM:ReadRequest)
I (33291) chip[EM]: <<< [E:36222r S:41139 M:252200431] (S) Msg TX to 0:FFFFFFFB00000000 [0000] [BLE] --- Type 0001:05 (IM:ReportData)
I (33301) NimBLE: GATT procedure initiated: indicate; 
I (33311) NimBLE: att_handle=18

I (33391) chip[DL]: Confirm received for CHIPoBLE TX characteristic indication (con 1) status= 14 
I (33391) CHIP[DL]: Write request received for CHIPoBLE RX characteristic con 1 16
I (33401) chip[EM]: >>> [E:36223r S:41139 M:198494847] (S) Msg RX from 0:FFFFFFFB00000000 [0000] --- Type 0001:08 (IM:InvokeCommandRequest)
I (33411) esp_matter_command: Received command 0x00000000 for endpoint 0x0000's cluster 0x00000030
I (33421) chip[FS]: GeneralCommissioning: Received ArmFailSafe (60s)
I (33421) esp_matter_attribute: ********** W : Endpoint 0x0000's Cluster 0x00000030's Attribute 0x00000000 is 4 **********
Guru Meditation Error: Core  0 panic'ed (Load access fault). Exception was unhandled.

Core  0 register dump:
Stack dump detected
MEPC    : 0x4200b038  RA      : 0x4200b022  SP      : 0x408482d0  GP      : 0x4081b4b0  
0x4200b038: $s10__idf_main6MatterO4NodeC12eventHandler4type8endpoint7cluster9attribute5valueyAA0C14AttributeEventO_AA8EndpointVAA7ClusterVs6UInt32VSpySo21esp_matter_attr_val_taGSgtF at ??:?
0x4200b022: $s10__idf_main6MatterO4NodeC12eventHandler4type8endpoint7cluster9attribute5valueyAA0C14AttributeEventO_AA8EndpointVAA7ClusterVs6UInt32VSpySo21esp_matter_attr_val_taGSgtF at ??:?

TP      : 0x4080ce88  T0      : 0x4201027c  T1      : 0x0000000f  T2      : 0xffffffff  
0x4080ce88: xQueueSemaphoreTake at /Users/martin/src/esp32/esp-idf/components/freertos/FreeRTOS-Kernel/queue.c:1718 (discriminator 2)
0x4201027c: MatterPostAttributeChangeCallback(chip::app::ConcreteAttributePath const&, unsigned char, unsigned short, unsigned char*) at /Users/martin/src/esp32/esp-matter/components/esp_matter/esp_matter_attribute_utils.cpp:2098

S0/FP   : 0x4084b2b0  S1      : 0x00000000  A0      : 0x4084b2ca  A1      : 0x4084b2c1  
A2      : 0x00000001  A3      : 0x00000000  A4      : 0x40848368  A5      : 0x40836638  
A6      : 0x4200b4b6  A7      : 0x0000000c  S2      : 0x00000000  S3      : 0x4083756c  
0x4200b4b6: $s10__idf_main8RootNodeV9attribute8identifyACSgyAA20MatterAttributeEventO_AA8EndpointVAA7ClusterVs6UInt32VSpySo21esp_matter_attr_val_taGSgtc_ySo0m1_N0O14identificationO13callback_typeV_s6UInt16Vs5UInt8VA0_tctcfcs5Int32VAtDOAWV_Az2nRSvSgtcfU_To at ??:?

S4      : 0x40848368  S5      : 0x40836bdc  S6      : 0x4084b2ca  S7      : 0x4084b2a0  
S8      : 0x34413941  S9      : 0x00000000  S10     : 0x40848890  S11     : 0x00000000  
T3      : 0x00000024  T4      : 0x00000000  T5      : 0x00000000  T6      : 0x00000100  
MSTATUS : 0x00001881  MTVEC   : 0x40800001  MCAUSE  : 0x00000005  MTVAL   : 0x34413949  
0x40800001: _vector_table at ??:?

MHARTID : 0x00000000  

Backtrace:

0x4200b038 in $s10__idf_main6MatterO4NodeC12eventHandler4type8endpoint7cluster9attribute5valueyAA0C14AttributeEventO_AA8EndpointVAA7ClusterVs6UInt32VSpySo21esp_matter_attr_val_taGSgtF ()
#0  0x4200b038 in $s10__idf_main6MatterO4NodeC12eventHandler4type8endpoint7cluster9attribute5valueyAA0C14AttributeEventO_AA8EndpointVAA7ClusterVs6UInt32VSpySo21esp_matter_attr_val_taGSgtF ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
ELF file SHA256: af6f8e8cf
rauhul commented 2 weeks ago

It could help to include the exact commit hashes of the idf and matter repos, I will try to find time next week to compare the hashes used for the original example.

M4rm41d3 commented 2 weeks ago

Seeing the same thing; when pairing, the last two attempts yielded:

Guru Meditation Error: Core  0 panic'ed (Instruction access fault). Exception was unhandled.

More frequently, I get stuck in boot loops of the same as those above:

Guru Meditation Error: Core  0 panic'ed (Load access fault). Exception was unhandled.

apple/swift-matter-examples: @7ff955c1851fa3a0643344813054fe223cda5417

esp-idf: @a322e6bdad4b6675d4597fb2722eea2851ba88cb

esp-matter: @1a35c738dff33e5e988d92d0028ed7a60d4336f6

It's worth noting that building esp/esp-matter/examples/light is successful, and I'm able to pair/commission the light successfully.

Serial Log from last Pairing attempt ``` Build:Sep 19 2022 rst:0x1 (POWERON),boot:0xc (SPI_FAST_FLASH_BOOT) SPIWP:0xee mode:DIO, clock div:2 load:0x40875720,len:0x1804 load:0x4086c410,len:0xe58 load:0x4086e610,len:0x2e20 entry 0x4086c41a I (23) boot: ESP-IDF v5.2.1 2nd stage bootloader I (24) boot: compile time Jun 30 2024 02:19:16 I (24) boot: chip revision: v0.0 I (26) boot.esp32c6: SPI Speed : 80MHz I (31) boot.esp32c6: SPI Mode : DIO I (36) boot.esp32c6: SPI Flash Size : 8MB I (41) boot: Enabling RNG early entropy source... I (46) boot: Partition Table: I (50) boot: ## Label Usage Type ST Offset Length I (57) boot: 0 esp_secure_cert unknown 3f 06 0000d000 00002000 I (64) boot: 1 nvs WiFi data 01 02 00010000 0000c000 I (72) boot: 2 nvs_keys NVS keys 01 04 0001c000 00001000 I (79) boot: 3 otadata OTA data 01 00 0001d000 00002000 I (87) boot: 4 phy_init RF data 01 01 0001f000 00001000 I (94) boot: 5 ota_0 OTA app 00 10 00020000 001e0000 I (102) boot: 6 ota_1 OTA app 00 11 00200000 001e0000 I (109) boot: 7 fctry WiFi data 01 02 003e0000 00006000 I (117) boot: 8 coredump Unknown data 01 03 003e6000 00010000 I (124) boot: End of partition table I (129) esp_image: segment 0: paddr=00020020 vaddr=42130020 size=3cb38h (248632) map I (189) esp_image: segment 1: paddr=0005cb60 vaddr=40800000 size=034b8h ( 13496) load I (192) esp_image: segment 2: paddr=00060020 vaddr=42000020 size=12d4bch (1234108) map I (449) esp_image: segment 3: paddr=0018d4e4 vaddr=408034b8 size=17174h ( 94580) load I (472) esp_image: segment 4: paddr=001a4660 vaddr=4081a630 size=04f58h ( 20312) load I (484) boot: Loaded app from partition at offset 0x20000 I (484) boot: Disabling RNG early entropy source... I (495) cpu_start: Unicore app W (504) clk: esp_perip_clk_init() has not been implemented yet I (511) cpu_start: Pro cpu start user code I (511) cpu_start: cpu freq: 160000000 Hz I (511) cpu_start: Application information: I (514) cpu_start: Project name: light I (519) cpu_start: App version: 1.0 I (523) cpu_start: Compile time: Jun 30 2024 02:19:08 I (529) cpu_start: ELF file SHA256: d816d4fed... I (535) cpu_start: ESP-IDF: v5.2.1 I (540) cpu_start: Min chip rev: v0.0 I (544) cpu_start: Max chip rev: v0.99 I (549) cpu_start: Chip rev: v0.0 I (554) heap_init: Initializing. RAM available for dynamic allocation: I (561) heap_init: At 40830B30 len 0004BAE0 (302 KiB): RAM I (567) heap_init: At 4087C610 len 00002F54 (11 KiB): RAM I (573) heap_init: At 50000000 len 00003FE8 (15 KiB): RTCRAM I (580) spi_flash: detected chip: generic I (584) spi_flash: flash io: dio W (589) rmt(legacy): legacy driver is deprecated, please migrate to `driver/rmt_tx.h` and/or `driver/rmt_rx.h` I (600) sleep: Configure to isolate all GPIO pins in sleep state I (606) sleep: Enable automatic switching of GPIO sleep configuration I (613) esp_core_dump_flash: Init core dump to flash I (619) esp_core_dump_flash: Found partition 'coredump' @ 3e6000 65536 bytes I (635) esp_core_dump_flash: Core dump data checksum is correct I (636) esp_core_dump_flash: Found core dump 9796 bytes in flash @ 0x3e6000 I (640) coexist: coex firmware version: 77cd7f8 I (646) coexist: coexist rom version 5b8dcfa I (651) main_task: Started on CPU0 I (651) main_task: Calling app_main() 🏎️ Hello, Embedded Swift! (Smart Light) I (661) led_driver_ws2812: Initializing light driver I (661) led_driver_ws2812: led set r:0, g:0, b:0 I (691) pp: pp rom version: 5b8dcfa I (691) net80211: net80211 rom version: 5b8dcfa I (701) wifi:wifi driver task: 4083dac0, prio:23, stack:6656, core=0 I (701) wifi:wifi firmware version: a9f5b59 I (701) wifi:wifi certification version: v7.0 I (701) wifi:config NVS flash: enabled I (711) wifi:config nano formating: disabled I (711) wifi:mac_version:HAL_MAC_ESP32AX_761,ut_version:N I (721) wifi:Init data frame dynamic rx buffer num: 32 I (721) wifi:Init static rx mgmt buffer num: 5 I (731) wifi:Init management short buffer num: 32 I (731) wifi:Init dynamic tx buffer num: 32 I (731) wifi:Init static tx FG buffer num: 2 I (741) wifi:Init static rx buffer size: 1700 I (741) wifi:Init static rx buffer num: 10 I (751) wifi:Init dynamic rx buffer num: 32 I (751) wifi_init: rx ba win: 6 I (751) wifi_init: tcpip mbox: 32 I (761) wifi_init: udp mbox: 6 I (761) wifi_init: tcp mbox: 6 I (771) wifi_init: tcp tx win: 5760 I (771) wifi_init: tcp rx win: 5760 I (771) wifi_init: tcp mss: 1440 I (781) wifi_init: WiFi IRAM OP enabled I (781) wifi_init: WiFi RX IRAM OP enabled I (811) chip[DL]: NVS set: chip-counters/reboot-count = 8 (0x8) I (811) chip[DL]: Real time clock set to 946684800 (0100/00/01 00:00:00 UTC) I (811) BLE_INIT: Using main XTAL as clock source I (821) BLE_INIT: ble controller commit:[217f1bf] I (821) phy_init: phy_version 250,e14681b,Jan 24 2024,17:43:11 I (871) phy: libbtbb version: 939f79c, Jan 24 2024, 17:43:26 I (871) NimBLE: GAP procedure initiated: stop advertising. I (871) NimBLE: Failed to restore IRKs from store; status=8 I (881) CHIP[DL]: BLE host-controller synced I (1381) chip[DL]: Configuring CHIPoBLE advertising (interval 25 ms, connectable) I (1381) NimBLE: GAP procedure initiated: advertise; I (1381) NimBLE: disc_mode=2 I (1381) NimBLE: adv_channel_map=0 own_addr_type=1 adv_filter_policy=0 adv_itvl_min=40 adv_itvl_max=40 I (1391) NimBLE: I (1401) chip[DL]: CHIPoBLE advertising started I (1401) chip[DL]: Starting ESP WiFi layer W (1411) wifi:(bf)761:0x600a7cac:0x01b4b4b0 W (1411) wifi:(agc)0x600a7128:0xd21b1800, min.avgNF:0xce->0xd2(dB), RCalCount:0x1b1, min.RRssi:0x800(-128.00) W (1421) wifi:(TB)WDEV_PWR_TB_MCS0:19 W (1421) wifi:(TB)WDEV_PWR_TB_MCS1:19 W (1431) wifi:(TB)WDEV_PWR_TB_MCS2:19 W (1431) wifi:(TB)WDEV_PWR_TB_MCS3:19 W (1431) wifi:(TB)WDEV_PWR_TB_MCS4:19 W (1441) wifi:(TB)WDEV_PWR_TB_MCS5:19 W (1441) wifi:(TB)WDEV_PWR_TB_MCS6:18 W (1441) wifi:(TB)WDEV_PWR_TB_MCS7:18 W (1451) wifi:(TB)WDEV_PWR_TB_MCS8:17 W (1451) wifi:(TB)WDEV_PWR_TB_MCS9:15 W (1451) wifi:(TB)WDEV_PWR_TB_MCS10:15 W (1461) wifi:(TB)WDEV_PWR_TB_MCS11:15 I (1461) wifi:11ax coex: WDEVAX_PTI0(0x55777555), WDEVAX_PTI1(0x00003377). I (1471) wifi:mode : sta (40:4c:ca:42:51:cc) I (1471) wifi:enable tsf W (1471) wifi:Haven't to connect to a suitable AP now! I (1481) chip[DL]: Done driving station state, nothing else to do... W (1481) wifi:Haven't to connect to a suitable AP now! I (1491) chip[DL]: Done driving station state, nothing else to do... I (1501) chip[SVR]: Initializing subscription resumption storage... I (1501) chip[SVR]: Server initializing... I (1511) chip[TS]: Last Known Good Time: 2023-10-14T01:16:48 I (1511) chip[DMG]: AccessControl: initializing I (1521) chip[DMG]: Examples::AccessControlDelegate::Init I (1531) chip[DMG]: AccessControl: setting I (1531) chip[DMG]: DefaultAclStorage: initializing I (1541) chip[DMG]: DefaultAclStorage: 0 entries loaded I (1551) chip[ZCL]: Using ZAP configuration... I (1551) esp_matter_cluster: Cluster plugin init common callback I (1551) chip[DMG]: AccessControlCluster: initializing I (1561) chip[ZCL]: 0x421357acep 0 clus 0x0000_0030 attr 0x0000_0000 not supported I (1571) chip[ZCL]: Initiating Admin Commissioning cluster. I (1581) chip[DIS]: Updating services using commissioning mode 1 I (1581) chip[DIS]: CHIP minimal mDNS started advertising. I (1591) chip[DIS]: Advertise commission parameter vendorID=65521 productID=32768 discriminator=3840/15 cm=1 I (1601) chip[DIS]: CHIP minimal mDNS configured as 'Commissionable node device'; instance name: 0E4D3E99709E7A53. I (1611) chip[DIS]: mDNS service published: _matterc._udp I (1611) chip[IN]: CASE Server enabling CASE session setups I (1621) chip[SVR]: Joining Multicast groups I (1631) chip[SVR]: Server Listening... I (1631) esp_matter_core: Dynamic endpoint 0 added I (1641) esp_matter_attribute: ********** W : Endpoint 0x0001's Cluster 0x00000003's Attribute 0x00000001 is 0 ********** lightEndpoint.eventHandler: unknown 0 I (1651) esp_matter_attribute: ********** W : Endpoint 0x0001's Cluster 0x00000004's Attribute 0x00000000 is 128 ********** lightEndpoint.eventHandler: unknown 128 I (1671) esp_matter_attribute: ********** W : Endpoint 0x0001's Cluster 0x00000004's Attribute 0x0000FFFC is ********** I (1681) esp_matter_attribute: ********** R : Endpoint 0x0001's Cluster 0x00000006's Attribute 0x0000FFFC is 1 ********** I (1691) esp_matter_attribute: ********** R : Endpoint 0x0001's Cluster 0x00000006's Attribute 0x00004003 is 0 ********** I (1701) esp_matter_attribute: ********** R : Endpoint 0x0001's Cluster 0x00000006's Attribute 0x00000000 is 0 ********** I (1711) esp_matter_attribute: ********** R : Endpoint 0x0001's Cluster 0x00000006's Attribute 0x00000000 is 0 ********** I (1731) chip[ZCL]: Endpoint 1 On/off already set to new value I (1731) esp_matter_attribute: ********** R : Endpoint 0x0001's Cluster 0x00000008's Attribute 0x00000002 is 1 ********** I (1741) esp_matter_attribute: ********** R : Endpoint 0x0001's Cluster 0x00000008's Attribute 0x00000003 is 254 ********** I (1761) esp_matter_attribute: ********** R : Endpoint 0x0001's Cluster 0x00000008's Attribute 0x0000FFFC is 3 ********** I (1771) esp_matter_attribute: ********** R : Endpoint 0x0001's Cluster 0x00000008's Attribute 0x00000000 is 64 ********** I (1781) esp_matter_attribute: ********** R : Endpoint 0x0001's Cluster 0x00000008's Attribute 0x00004000 is 64 ********** I (1791) esp_matter_attribute: ********** W : Endpoint 0x0001's Cluster 0x00000008's Attribute 0x00000000 is 64 ********** lightEndpoint.eventHandler: levelControl 64 I (1811) led_driver_ws2812: led set r:63, g:63, b:63 I (1811) esp_matter_attribute: ********** R : Endpoint 0x0001's Cluster 0x00000300's Attribute 0x00004010 is 250 ********** I (1821) esp_matter_attribute: ********** R : Endpoint 0x0001's Cluster 0x00000300's Attribute 0x00000007 is 250 ********** I (1841) esp_matter_attribute: ********** R : Endpoint 0x0001's Cluster 0x00000300's Attribute 0x0000400B is 0 ********** I (1851) esp_matter_attribute: ********** R : Endpoint 0x0001's Cluster 0x00000300's Attribute 0x0000400C is 65279 ********** I (1861) esp_matter_attribute: ********** W : Endpoint 0x0001's Cluster 0x00000300's Attribute 0x00000007 is 250 ********** lightEndpoint.eventHandler: colorControl(colorTemperatureMireds) 250 I (1881) led_driver_ws2812: led set r:63, g:51, b:40 I (1881) esp_matter_attribute: ********** W : Endpoint 0x0001's Cluster 0x00000300's Attribute 0x00000008 is 2 ********** lightEndpoint.eventHandler: colorControl(colorMode) 2 I (1901) esp_matter_attribute: ********** W : Endpoint 0x0001's Cluster 0x00000300's Attribute 0x00004001 is 2 ********** I (1911) esp_matter_core: Dynamic endpoint 1 added I (1921) chip[DL]: WIFI_EVENT_STA_START W (1921) wifi:Haven't to connect to a suitable AP now! I (1931) chip[DL]: Done driving station state, nothing else to do... I (1931) chip[DL]: Configuring CHIPoBLE advertising (interval 25 ms, connectable) I (1941) chip[DL]: Device already advertising, stop active advertisement and restart I (1951) NimBLE: GAP procedure initiated: stop advertising. I (1961) NimBLE: GAP procedure initiated: advertise; I (1961) NimBLE: disc_mode=2 I (1971) NimBLE: adv_channel_map=0 own_addr_type=1 adv_filter_policy=0 adv_itvl_min=40 adv_itvl_max=40 I (1981) NimBLE: I (1981) main_task: Returned from app_main() I (31581) chip[DL]: Configuring CHIPoBLE advertising (interval 500 ms, connectable) I (31581) chip[DL]: Device already advertising, stop active advertisement and restart I (31581) NimBLE: GAP procedure initiated: stop advertising. I (31591) NimBLE: GAP procedure initiated: advertise; I (31591) NimBLE: disc_mode=2 I (31601) NimBLE: adv_channel_map=0 own_addr_type=1 adv_filter_policy=0 adv_itvl_min=800 adv_itvl_max=800 I (31611) NimBLE: I (58901) chip[DL]: BLE GAP connection established (con 1) I (58901) chip[DL]: CHIPoBLE advertising stopped I (59791) CHIP[DL]: Write request received for CHIPoBLE RX characteristic con 1 16 I (59791) chip[BLE]: local and remote recv window sizes = 5 I (59791) chip[BLE]: selected BTP version 4 I (59801) chip[BLE]: using BTP fragment sizes rx 244 / tx 244. I (59971) chip[DL]: Write request/command received for CHIPoBLE TX CCCD characteristic (con 1 ) indicate = 1 I (59971) chip[DL]: CHIPoBLE subscribe received I (59971) NimBLE: GATT procedure initiated: indicate; I (59981) NimBLE: att_handle=18 I (60061) chip[DL]: Confirm received for CHIPoBLE TX characteristic indication (con 1) status= 14 I (60061) CHIP[DL]: Write request received for CHIPoBLE RX characteristic con 1 16 I (60071) chip[EM]: >>> [E:25517r S:0 M:19651398] (U) Msg RX from 0:B49A67725ACAB0ED [0000] --- Type 0000:20 (SecureChannel:PBKDFParamRequest) I (60081) chip[EM]: <<< [E:25517r S:0 M:132779677] (U) Msg TX to 0:0000000000000000 [0000] [BLE] --- Type 0000:21 (SecureChannel:PBKDFParamResponse) I (60091) NimBLE: GATT procedure initiated: indicate; I (60101) NimBLE: att_handle=18 I (60111) chip[SVR]: Commissioning session establishment step started I (60151) chip[DL]: Confirm received for CHIPoBLE TX characteristic indication (con 1) status= 14 I (60151) CHIP[DL]: Write request received for CHIPoBLE RX characteristic con 1 16 I (60161) chip[EM]: >>> [E:25517r S:0 M:19651399] (U) Msg RX from 0:B49A67725ACAB0ED [0000] --- Type 0000:22 (SecureChannel:PASE_Pake1) I (60231) chip[EM]: <<< [E:25517r S:0 M:132779678] (U) Msg TX to 0:0000000000000000 [0000] [BLE] --- Type 0000:23 (SecureChannel:PASE_Pake2) I (60231) NimBLE: GATT procedure initiated: indicate; I (60241) NimBLE: att_handle=18 I (60301) chip[DL]: Confirm received for CHIPoBLE TX characteristic indication (con 1) status= 14 I (60301) CHIP[DL]: Write request received for CHIPoBLE RX characteristic con 1 16 I (60311) chip[EM]: >>> [E:25517r S:0 M:19651400] (U) Msg RX from 0:B49A67725ACAB0ED [0000] --- Type 0000:24 (SecureChannel:PASE_Pake3) I (60321) chip[EM]: <<< [E:25517r S:0 M:132779679] (U) Msg TX to 0:0000000000000000 [0000] [BLE] --- Type 0000:40 (SecureChannel:StatusReport) I (60331) NimBLE: GATT procedure initiated: indicate; I (60341) NimBLE: att_handle=18 I (60341) chip[SC]: SecureSession[0x40822b00, LSID:36869]: State change 'kEstablishing' --> 'kActive' I (60351) chip[SVR]: Commissioning completed session establishment step I (60361) chip[DIS]: Updating services using commissioning mode 0 I (60371) chip[DIS]: CHIP minimal mDNS started advertising. I (60371) chip[DIS]: Advertise commission parameter vendorID=65521 productID=32768 discriminator=3840/15 cm=0 I (60381) chip[DIS]: CHIP minimal mDNS configured as 'Commissionable node device'; instance name: 0E4D3E99709E7A53. I (60401) chip[DIS]: mDNS service published: _matterc._udp I (60401) chip[SVR]: Device completed Rendezvous process I (60391) chip[DL]: Confirm received for CHIPoBLE TX characteristic indication (con 1) status= 14 I (60421) CHIP[DL]: Write request received for CHIPoBLE RX characteristic con 1 16 I (60431) chip[EM]: >>> [E:25518r S:36869 M:72146359] (S) Msg RX from 0:FFFFFFFB00000000 [0000] --- Type 0001:02 (IM:ReadRequest) I (60441) chip[EM]: <<< [E:25518r S:36869 M:221753432] (S) Msg TX to 0:FFFFFFFB00000000 [0000] [BLE] --- Type 0001:05 (IM:ReportData) I (60451) NimBLE: GATT procedure initiated: indicate; I (60461) NimBLE: att_handle=18 I (60541) chip[DL]: Confirm received for CHIPoBLE TX characteristic indication (con 1) status= 14 I (60541) CHIP[DL]: Write request received for CHIPoBLE RX characteristic con 1 16 I (60551) chip[EM]: >>> [E:25519r S:36869 M:72146360] (S) Msg RX from 0:FFFFFFFB00000000 [0000] --- Type 0001:02 (IM:ReadRequest) I (60561) chip[EM]: <<< [E:25519r S:36869 M:221753433] (S) Msg TX to 0:FFFFFFFB00000000 [0000] [BLE] --- Type 0001:05 (IM:ReportData) I (60571) NimBLE: GATT procedure initiated: indicate; I (60581) NimBLE: att_handle=18 I (60631) chip[DL]: Confirm received for CHIPoBLE TX characteristic indication (con 1) status= 14 I (60631) CHIP[DL]: Write request received for CHIPoBLE RX characteristic con 1 16 I (60641) chip[EM]: >>> [E:25520r S:36869 M:72146361] (S) Msg RX from 0:FFFFFFFB00000000 [0000] --- Type 0001:02 (IM:ReadRequest) I (60651) chip[EM]: <<< [E:25520r S:36869 M:221753434] (S) Msg TX to 0:FFFFFFFB00000000 [0000] [BLE] --- Type 0001:05 (IM:ReportData) I (60661) NimBLE: GATT procedure initiated: indicate; I (60671) NimBLE: att_handle=18 I (60721) chip[DL]: Confirm received for CHIPoBLE TX characteristic indication (con 1) status= 14 I (60721) CHIP[DL]: Write request received for CHIPoBLE RX characteristic con 1 16 I (60731) chip[EM]: >>> [E:25521r S:36869 M:72146362] (S) Msg RX from 0:FFFFFFFB00000000 [0000] --- Type 0001:02 (IM:ReadRequest) I (60741) chip[EM]: <<< [E:25521r S:36869 M:221753435] (S) Msg TX to 0:FFFFFFFB00000000 [0000] [BLE] --- Type 0001:05 (IM:ReportData) I (60751) NimBLE: GATT procedure initiated: indicate; I (60761) NimBLE: att_handle=18 I (60841) chip[DL]: Confirm received for CHIPoBLE TX characteristic indication (con 1) status= 14 I (60841) CHIP[DL]: Write request received for CHIPoBLE RX characteristic con 1 16 I (60851) chip[EM]: >>> [E:25522r S:36869 M:72146363] (S) Msg RX from 0:FFFFFFFB00000000 [0000] --- Type 0001:02 (IM:ReadRequest) I (60861) chip[EM]: <<< [E:25522r S:36869 M:221753436] (S) Msg TX to 0:FFFFFFFB00000000 [0000] [BLE] --- Type 0001:05 (IM:ReportData) I (60871) NimBLE: GATT procedure initiated: indicate; I (60881) NimBLE: att_handle=18 I (60931) chip[DL]: Confirm received for CHIPoBLE TX characteristic indication (con 1) status= 14 I (60931) CHIP[DL]: Write request received for CHIPoBLE RX characteristic con 1 16 I (60941) chip[EM]: >>> [E:25523r S:36869 M:72146364] (S) Msg RX from 0:FFFFFFFB00000000 [0000] --- Type 0001:02 (IM:ReadRequest) I (60951) esp_matter_attribute: ********** R : Endpoint 0x0000's Cluster 0x00000030's Attribute 0x00000000 is 0 ********** I (60961) chip[EM]: <<< [E:25523r S:36869 M:221753437] (S) Msg TX to 0:FFFFFFFB00000000 [0000] [BLE] --- Type 0001:05 (IM:ReportData) I (60971) NimBLE: GATT procedure initiated: indicate; I (60981) NimBLE: att_handle=18 I (61021) chip[DL]: Confirm received for CHIPoBLE TX characteristic indication (con 1) status= 14 I (61021) NimBLE: GATT procedure initiated: indicate; I (61021) NimBLE: att_handle=18 I (61081) chip[DL]: Confirm received for CHIPoBLE TX characteristic indication (con 1) status= 14 I (61171) CHIP[DL]: Write request received for CHIPoBLE RX characteristic con 1 16 I (61171) chip[EM]: >>> [E:25524r S:36869 M:72146365] (S) Msg RX from 0:FFFFFFFB00000000 [0000] --- Type 0001:02 (IM:ReadRequest) I (61181) chip[EM]: <<< [E:25524r S:36869 M:221753438] (S) Msg TX to 0:FFFFFFFB00000000 [0000] [BLE] --- Type 0001:05 (IM:ReportData) I (61191) NimBLE: GATT procedure initiated: indicate; I (61201) NimBLE: att_handle=18 I (61261) chip[DL]: Confirm received for CHIPoBLE TX characteristic indication (con 1) status= 14 I (61261) CHIP[DL]: Write request received for CHIPoBLE RX characteristic con 1 16 I (61271) chip[EM]: >>> [E:25525r S:36869 M:72146366] (S) Msg RX from 0:FFFFFFFB00000000 [0000] --- Type 0001:08 (IM:InvokeCommandRequest) I (61281) esp_matter_command: Received command 0x00000000 for endpoint 0x0000's cluster 0x00000030 I (61291) chip[FS]: GeneralCommissioning: Received ArmFailSafe (60s) I (61301) esp_matter_attribute: ********** W : Endpoint 0x0000's Cluster 0x00000030's Attribute 0x00000000 is 4 ********** Guru Meditation Error: Core 0 panic'ed (Instruction access fault). Exception was unhandled. Stack dump detected Core 0 register dump: MEPC : 0x00000000 RA : 0x4200b3c4 SP : 0x40846900 GP : 0x4081ae30 0x4200b3c4: $s10__idf_main8RootNodeV9attribute8identifyACSgyAA20MatterAttributeEventO_AA8EndpointVAA7ClusterVs6UInt32VSpySo21esp_matter_attr_val_taGSgtc_ySo0m1_N0O14identificationO13callback_typeV_s6UInt16Vs5UInt8VA0_tctcfcs5Int32VAtDOAWV_Az2nRSvSgtcfU_ at ??:? TP : 0x4080cb3c T0 : 0x4200af88 T1 : 0x42006aea T2 : 0xffffffff 0x4080cb3c: xQueueGenericSendFromISR at /Users/M4m41d3/esp/esp-idf/components/freertos/FreeRTOS-Kernel/queue.c:1326 (discriminator 4) 0x4200af88: $s10__idf_main6MatterO4NodeC12eventHandler4type8endpoint7cluster9attribute5valueyAA0C14AttributeEventO_AA8EndpointVAA7ClusterVs6UInt32VSpySo21esp_matter_attr_val_taGSgtF at ??:? 0x42006aea: esp_vfs_open at /Users/M4m41d3/esp/esp-idf/components/vfs/vfs.c:471 S0/FP : 0x40835394 S1 : 0x40834b80 A0 : 0x40834b80 A1 : 0x40849e70 A2 : 0x00000001 A3 : 0x00000000 A4 : 0x40846958 A5 : 0x00000000 A6 : 0x4200b3e4 A7 : 0x0000000a S2 : 0x40846958 S3 : 0x00000000 0x4200b3e4: $s10__idf_main8RootNodeV9attribute8identifyACSgyAA20MatterAttributeEventO_AA8EndpointVAA7ClusterVs6UInt32VSpySo21esp_matter_attr_val_taGSgtc_ySo0m1_N0O14identificationO13callback_typeV_s6UInt16Vs5UInt8VA0_tctcfcs5Int32VAtDOAWV_Az2nRSvSgtcfU_To at ??:? S4 : 0x408353b0 S5 : 0x40835bec S6 : 0x00000000 S7 : 0x4200b6ae 0x4200b6ae: $s10__idf_main6MatterO4NodeCAEycfcyAA0C14AttributeEventO_AA8EndpointVAA7ClusterVs6UInt32VSpySo21esp_matter_attr_val_taGSgtcAEcfu_yAG_AikmQtcfu0_TA at Main.swift.obj:? S8 : 0x00000000 S9 : 0x4213c150 S10 : 0x40846e40 S11 : 0x00000000 T3 : 0x00000000 T4 : 0x00000080 T5 : 0x00000040 T6 : 0xdfffffff MSTATUS : 0x00001881 MTVEC : 0x40800001 MCAUSE : 0x00000001 MTVAL : 0x00000000 0x40800001: _vector_table at ??:? MHARTID : 0x00000000 Failed to run gdb_panic_server.py script: Command '['riscv32-esp-elf-gdb', '--batch', '-n', '/Users/M4m41d3/Developer/swift-matter-examples/smart-light/build/light.elf', '-ex', 'target remote | "/Users/M4m41d3/.espressif/python_env/idf5.2_py3.9_env/bin/python" -m esp_idf_panic_decoder --target esp32c6 "/var/folders/pf/m4fqfjq56b3dq3328hzrfdwm0000gp/T/tmpzp1hnwz4"', '-ex', 'bt']' returned non-zero exit status 1. b'Traceback (most recent call last):\n File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/runpy.py", line 197, in _run_module_as_main\n return _run_code(code, main_globals, None,\n File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/runpy.py", line 87, in _run_code\n exec(code, run_globals)\n File "/Users/M4m41d3/.espressif/python_env/idf5.2_py3.9_env/lib/python3.9/site-packages/esp_idf_panic_decoder/__main__.py", line 4, in \n main()\n File "/Users/M4m41d3/.espressif/python_env/idf5.2_py3.9_env/lib/python3.9/site-packages/esp_idf_panic_decoder/gdb_panic_server.py", line 285, in main\n panic_info = PANIC_OUTPUT_PARSERS[args.target](args.input_file.read())\n File "/Users/M4m41d3/.espressif/python_env/idf5.2_py3.9_env/lib/python3.9/site-packages/esp_idf_panic_decoder/gdb_panic_server.py", line 150, in parse_idf_riscv_panic_output\n stack_base_addr, stack_data = get_stack_addr_and_data(res)\n File "/Users/M4m41d3/.espressif/python_env/idf5.2_py3.9_env/lib/python3.9/site-packages/esp_idf_panic_decoder/gdb_panic_server.py", line 118, in get_stack_addr_and_data\n assert base_addr == prev_base_addr + bytes_in_line\nAssertionError\nRemote connection closed\nNo stack.\n' Stack memory: 40846900: 0x00000000 0x00000000 0x00000004 0x00000001 0x00000000 0x00000027 0x00000008 0x00000027 40846920: 0x00000000 0x00000030 0x00000000 0x4200b3ec 0x00000000 0x00000030 0x00000000 0x4200fc76 40846940: 0x00000002 0x40847158 0x4084f924 0x40846a08 0x40846e40 0x0000000a 0x0000000e 0x00000000 40846960: 0x00000004 0x00000000 0x00000000 0x00000000 0x00000000 0x00000027 0x00000000 0x00000000 0x42017904 0x42142df4 0x00000004 0x4082a050 0x420656ee 408469a0: 0x00000002 0x40846a0c 0x00000065 0x4084f924 0x00000004 0x70696863 0x40820000 0x00000030 408469c0: 0x00000000 0x42000000 0x00000030 0x00000000 0x0000ea60 0x4213c150 0x00000000 0x00000000 408469e0: 0x00000000 0x40846b38 0x40835e0c 0x00000000 0x40846a70 0x40846b0c 0x40826cfc 0x420251e4 40846a00: 0x0000001f 0x40846b38 0x00000004 0x00000000 0x40846a70 0x40846b0c 0x40826cfc 0x4202bf98 40846a20: 0x40846e40 0x40846a00 0x00000000 0x00000000 0x00000000 0x40846b38 0x00000030 0x00000000 40846a40: 0x00000001 0x00000001 0x00000015 0x40846b38 0x00000000 0x00000000 0xffffffff 0x42136000 40846a60: 0x40826cfc 0x40846b0c 0x40826cfc 0x4202394a 0x0000003c 0x40826cfc 0x00000004 0x00000000 40846a80: 0x421366fc 0x00000000 0x40846b0c 0x4202455e 0x00000001 0x00000000 0xffffffff 0x00000000 40846aa0: 0x00000001 0x00000000 0x00000000 0x00000000 0x00000000 0x408502a4 0x408502b1 0x00000016 40846ac0: 0x00000023 0x00000015 0x40000035 0x42033bbc 0x40846fec 0x00000000 0x40846fec 0x40826d00 40846ae0: 0x40846cb0 0x40826cfc 0x00000000 0x4204fb42 0x00000018 0xffffffff 0x40846b68 0x00000010 40846b00: 0x408502b1 0x00000000 0x40846fec 0x00000000 0x00000030 0x00000000 0x00002000 0x00000000 40846b20: 0x00000000 0xfffffffb 0x00000000 0x00000000 0x00000000 0x00000000 0xffffffff 0x00000000 40846b40: 0x00000100 0x00000000 0x00000000 0x00000000 0x00000000 0x408502ab 0x408502b1 0x0000001d 40846b60: 0x00000023 0x00000015 0xff00ffff 0x00000000 0xffffffff 0x00000000 0x00000100 0x00000000 40846b80: 0x00000000 0x00000000 0x00000000 0x40850298 0x408502b1 0x0000000a 0x00000023 0x00000017 40846ba0: 0x0000ffff 0x40826cfc 0x00000015 0x40826d00 0x00000100 0x40826cfc 0x0000007e 0x4204fe2e 40846bc0: 0xffffffff 0x00000000 0x00000100 0x00000000 0x00000000 0x00000000 0x00000000 0x4085028f 40846be0: 0x408502b1 0x00000001 0x00000023 0xffffffff 0x42000015 0x40850208 0xffffffff 0x00000000 40846c00: 0x00000100 0x00000000 0x00000000 0x00000000 0x00000000 0x40850296 0x408502b1 0x00000008 40846c20: 0x00000023 0x00000016 0x40000015 0x4080c85e 0xffffffff 0x00000000 0x00000100 0x00000000 40846c40: 0x00000000 0x00000000 0x00000000 0x4085028f 0x408502b1 0x00000001 0x00000023 0x00000015 40846c60: 0x0000ffff 0x40847158 0xffffffff 0x4080c9e8 0xffffffff 0x00000000 0x00000100 0x00000000 40846c80: 0x00000000 0x00000000 0x00000000 0x40850295 0x408502b1 0x00000007 0x00000023 0x00000016 40846ca0: 0x4000ffff 0x00000000 0x00000015 0x4080179c 0xffffffff 0x00000000 0x00000100 0x00000000 40846cc0: 0x00000000 0x00000000 0x00000000 0x40850296 0x408502b1 0x00000008 0x00000023 0x00000015 40846ce0: 0x0000ffff 0x00000000 0x00000016 0x4080c85e 0x40846fec 0x40824318 0x40826cfc 0x4204fea8 ELF file SHA256: d816d4fed I (3013) esp_core_dump_flash: Save core dump to flash... I (3020) esp_core_dump_flash: Erase flash 12288 bytes @ 0x3e6000 I (3130) esp_core_dump_flash: Write end offset 0x2644, check sum length 4 I (3130) esp_core_dump_flash: Core dump has been saved to flash. Rebooting... ```
gracien-app commented 2 weeks ago

Seems like the Core dump panic can be fixed with this little trick.

Paired and properly reacting to changes on Seeed Xiao ESP32C6 here, even without a Thread Border Router device! (although planning to create one with another C6 running in special Coexist mode).