-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Smart Light example seems to go into a boot loop #12
Comments
Based on your logs, the best pointer that I could find might be:
And it looks like there was a thread about this in the esp-idf repo a while ago espressif/esp-idf#9631 (comment) with a workaround, perhaps you could try and see if it works |
I have a similar panic during pairing the device. The 'nano' formatting option mentioned in the workaround is already disabled. panic log
|
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. |
Seeing the same thing; when pairing, the last two attempts yielded:
More frequently, I get stuck in boot loops of the same as those above:
It's worth noting that building Serial Log from last Pairing attempt
|
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). |
Followed Apple's guide for macOS and the Smart Light.
Installed Apple Swift Version 6.0
Installed
cmake ninja dfu-util
with Homebrew.Installed ESP-IDF 5.2.1 and ESP-Matter 1.2
Added to my .zshrc file:
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/espressif__esp_diagnostics/CMakeFiles/__idf_espressif__esp_diagnostics.dir/src/esp_diagnostics_utils.c.obj
In file included from /Users/dark/swift-matter-examples/smart-light/managed_components/espressif__esp_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/espressif__led_strip/CMakeFiles/__idf_espressif__led_strip.dir/src/led_strip_rmt_ws2812.c.obj
In file included from /Users/dark/swift-matter-examples/smart-light/managed_components/espressif__led_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/espressif__button/CMakeFiles/__idf_espressif__button.dir/button_adc.c.obj
/Users/dark/swift-matter-examples/smart-light/managed_components/espressif__button/button_adc.c: In function 'button_adc_init':
/Users/dark/swift-matter-examples/smart-light/managed_components/espressif__button/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/espressif__button/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/espressif__button/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 <nvs_flash.h>
26 | #include <led_driver.h>
27 | #include <device.h>
| `- 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 <iot_button.h>
| `- note: in file included from /Users/dark/esp/esp-matter/device_hal/device/include/device.h:16:
17 | #include <led_driver.h>
18 |
/Users/dark/swift-matter-examples/smart-light/managed_components/espressif__button/include/iot_button.h:17:10: note: in file included from /Users/dark/swift-matter-examples/smart-light/managed_components/espressif__button/include/iot_button.h:17:
15 | #define IOT_BUTTON_H
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/espressif__button/include/button_adc.h:18:10: note: in file included from /Users/dark/swift-matter-examples/smart-light/managed_components/espressif__button/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 <stdint.h>
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 <esp_matter.h>
| `- note: in file included from /Users/dark/swift-matter-examples/smart-light/main/BridgingHeader.h:42:
43 | #include <esp_matter_cluster.h>
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 <esp_matter_attribute.h>
| `- note: in file included from /Users/dark/esp/esp-matter/components/esp_matter/esp_matter.h:22:
23 | #include <esp_matter_attribute_utils.h>
24 | #include <esp_matter_client.h>
/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 <esp_matter_core.h>
| `- 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 <esp_err.h>
/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_HS_LOG_
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 <esp_matter.h>
| `- note: in file included from /Users/dark/swift-matter-examples/smart-light/main/BridgingHeader.h:42:
43 | #include <esp_matter_cluster.h>
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 <esp_matter_attribute.h>
| `- note: in file included from /Users/dark/esp/esp-matter/components/esp_matter/esp_matter.h:22:
23 | #include <esp_matter_attribute_utils.h>
24 | #include <esp_matter_client.h>
/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 <esp_matter_core.h>
| `- 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 <esp_err.h>
/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.
The text was updated successfully, but these errors were encountered: