Skip to content
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

failure while building my custom light code (IDFGH-14761) #15500

Open
3 tasks done
ravencarcass opened this issue Mar 1, 2025 · 1 comment
Open
3 tasks done

failure while building my custom light code (IDFGH-14761) #15500

ravencarcass opened this issue Mar 1, 2025 · 1 comment
Labels
Status: Opened Issue is new Type: Bug bugs in IDF

Comments

@ravencarcass
Copy link

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

v5.4

Operating System used.

Linux

How did you build your project?

VS Code IDE

If you are using Windows, please specify command line type.

None

What is the expected behavior?

After the build should he show a table where he dispaly the memory usage.

What is the actual behavior?

Well if I build my customized matter example. He reports some fault if their are in the code. If all the errors from my code are away, do he give me a failure in the build terminal.

Steps to reproduce.

  1. opened VSCode via the Ubuntu terminal
  2. opened the matter example
  3. build this code (no problem)
  4. changed a few things in the example for my application
  5. build this code and it gave the next failure in the build terminal

Build or installation Logs.

*  Executing task: ninja  

[1/13] Performing build step for 'bootloader'
[1/1] cd /home/robbe/esp/light/build/bootloader/esp-idf/esptool_py && /home/robbe/.espressif/python_env/idf5.4_py3.10_env/bin/python /home/robbe/esp/esp-idf/components/partition_table/check_sizes.py --offset 0xc000 bootloader 0x0 /home/robbe/esp/light/build/bootloader/bootloader.bin
Bootloader binary size 0x55e0 bytes. 0x6a20 bytes (55%) free.
[2/11] Performing build step for 'chip_gn'
ninja: no work to do.
[3/9] Building CXX object esp-idf/main/CMakeFiles/__idf_main.dir/app_main.cpp.obj
FAILED: esp-idf/main/CMakeFiles/__idf_main.dir/app_main.cpp.obj 
ccache /home/robbe/.espressif/tools/riscv32-esp-elf/esp-14.2.0_20241119/riscv32-esp-elf/bin/riscv32-esp-elf-g++ -DESP_PLATFORM -DIDF_VER=\"v5.4\" -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -DMD5_ENABLED=1 -DSERIAL_FLASHER_BOOT_HOLD_TIME_MS=50 -DSERIAL_FLASHER_RESET_HOLD_TIME_MS=100 -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -DUNITY_INCLUDE_CONFIG_H -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -D_GLIBCXX_USE_POSIX_SEMAPHORE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -I/home/robbe/esp/light/build/config -I/home/robbe/esp/light/main -I/home/robbe/esp/esp-matter/examples/common/utils -I/home/robbe/esp/esp-idf/components/newlib/platform_include -I/home/robbe/esp/esp-idf/components/freertos/config/include -I/home/robbe/esp/esp-idf/components/freertos/config/include/freertos -I/home/robbe/esp/esp-idf/components/freertos/config/riscv/include -I/home/robbe/esp/esp-idf/components/freertos/FreeRTOS-Kernel/include -I/home/robbe/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include -I/home/robbe/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include/freertos -I/home/robbe/esp/esp-idf/components/freertos/esp_additions/include -I/home/robbe/esp/esp-idf/components/esp_hw_support/include -I/home/robbe/esp/esp-idf/components/esp_hw_support/include/soc -I/home/robbe/esp/esp-idf/components/esp_hw_support/include/soc/esp32c6 -I/home/robbe/esp/esp-idf/components/esp_hw_support/dma/include -I/home/robbe/esp/esp-idf/components/esp_hw_support/ldo/include -I/home/robbe/esp/esp-idf/components/esp_hw_support/debug_probe/include -I/home/robbe/esp/esp-idf/components/esp_hw_support/port/esp32c6/. -I/home/robbe/esp/esp-idf/components/esp_hw_support/port/esp32c6/include -I/home/robbe/esp/esp-idf/components/esp_hw_support/port/esp32c6/private_include -I/home/robbe/esp/esp-idf/components/heap/include -I/home/robbe/esp/esp-idf/components/heap/tlsf -I/home/robbe/esp/esp-idf/components/log/include -I/home/robbe/esp/esp-idf/components/soc/include -I/home/robbe/esp/esp-idf/components/soc/esp32c6 -I/home/robbe/esp/esp-idf/components/soc/esp32c6/include -I/home/robbe/esp/esp-idf/components/soc/esp32c6/register -I/home/robbe/esp/esp-idf/components/hal/platform_port/include -I/home/robbe/esp/esp-idf/components/hal/esp32c6/include -I/home/robbe/esp/esp-idf/components/hal/include -I/home/robbe/esp/esp-idf/components/esp_rom/include -I/home/robbe/esp/esp-idf/components/esp_rom/esp32c6/include -I/home/robbe/esp/esp-idf/components/esp_rom/esp32c6/include/esp32c6 -I/home/robbe/esp/esp-idf/components/esp_rom/esp32c6 -I/home/robbe/esp/esp-idf/components/esp_common/include -I/home/robbe/esp/esp-idf/components/esp_system/include -I/home/robbe/esp/esp-idf/components/esp_system/port/soc -I/home/robbe/esp/esp-idf/components/esp_system/port/include/riscv -I/home/robbe/esp/esp-idf/components/esp_system/port/include/private -I/home/robbe/esp/esp-idf/components/riscv/include -I/home/robbe/esp/esp-idf/components/lwip/include -I/home/robbe/esp/esp-idf/components/lwip/include/apps -I/home/robbe/esp/esp-idf/components/lwip/include/apps/sntp -I/home/robbe/esp/esp-idf/components/lwip/lwip/src/include -I/home/robbe/esp/esp-idf/components/lwip/port/include -I/home/robbe/esp/esp-idf/components/lwip/port/freertos/include -I/home/robbe/esp/esp-idf/components/lwip/port/esp32xx/include -I/home/robbe/esp/esp-idf/components/lwip/port/esp32xx/include/arch -I/home/robbe/esp/esp-idf/components/lwip/port/esp32xx/include/sys -I/home/robbe/esp/light/managed_components/espressif__esp_bsp_devkit/include -I/home/robbe/esp/esp-idf/components/driver/deprecated -I/home/robbe/esp/esp-idf/components/driver/i2c/include -I/home/robbe/esp/esp-idf/components/driver/touch_sensor/include -I/home/robbe/esp/esp-idf/components/driver/twai/include -I/home/robbe/esp/esp-idf/components/esp_pm/include -I/home/robbe/esp/esp-idf/components/esp_ringbuf/include -I/home/robbe/esp/esp-idf/components/esp_driver_gpio/include -I/home/robbe/esp/esp-idf/components/esp_driver_pcnt/include -I/home/robbe/esp/esp-idf/components/esp_driver_gptimer/include -I/home/robbe/esp/esp-idf/components/esp_driver_spi/include -I/home/robbe/esp/esp-idf/components/esp_driver_mcpwm/include -I/home/robbe/esp/esp-idf/components/esp_driver_ana_cmpr/include -I/home/robbe/esp/esp-idf/components/esp_driver_i2s/include -I/home/robbe/esp/esp-idf/components/esp_driver_sdmmc/include -I/home/robbe/esp/esp-idf/components/sdmmc/include -I/home/robbe/esp/esp-idf/components/esp_driver_sdspi/include -I/home/robbe/esp/esp-idf/components/esp_driver_sdio/include -I/home/robbe/esp/esp-idf/components/esp_driver_dac/include -I/home/robbe/esp/esp-idf/components/esp_driver_rmt/include -I/home/robbe/esp/esp-idf/components/esp_driver_tsens/include -I/home/robbe/esp/esp-idf/components/esp_driver_sdm/include -I/home/robbe/esp/esp-idf/components/esp_driver_i2c/include -I/home/robbe/esp/esp-idf/components/esp_driver_uart/include -I/home/robbe/esp/esp-idf/components/vfs/include -I/home/robbe/esp/esp-idf/components/esp_driver_ledc/include -I/home/robbe/esp/esp-idf/components/esp_driver_parlio/include -I/home/robbe/esp/esp-idf/components/esp_driver_usb_serial_jtag/include -I/home/robbe/esp/esp-idf/components/spiffs/include -I/home/robbe/esp/esp-idf/components/esp_partition/include -I/home/robbe/esp/esp-idf/components/fatfs/diskio -I/home/robbe/esp/esp-idf/components/fatfs/src -I/home/robbe/esp/esp-idf/components/fatfs/vfs -I/home/robbe/esp/esp-idf/components/wear_levelling/include -I/home/robbe/esp/light/managed_components/espressif__button/include -I/home/robbe/esp/esp-idf/components/esp_adc/include -I/home/robbe/esp/esp-idf/components/esp_adc/interface -I/home/robbe/esp/esp-idf/components/esp_adc/esp32c6/include -I/home/robbe/esp/esp-idf/components/esp_adc/deprecated/include -I/home/robbe/esp/light/managed_components/espressif__led_indicator/include -I/home/robbe/esp/light/managed_components/espressif__led_strip/include -I/home/robbe/esp/light/managed_components/espressif__led_strip/interface -I/home/robbe/esp/esp-idf/components/mbedtls/port/include -I/home/robbe/esp/esp-idf/components/mbedtls/mbedtls/include -I/home/robbe/esp/esp-idf/components/mbedtls/mbedtls/library -I/home/robbe/esp/esp-idf/components/mbedtls/esp_crt_bundle/include -I/home/robbe/esp/esp-idf/components/mbedtls/mbedtls/3rdparty/everest/include -I/home/robbe/esp/esp-idf/components/mbedtls/mbedtls/3rdparty/p256-m -I/home/robbe/esp/esp-idf/components/mbedtls/mbedtls/3rdparty/p256-m/p256-m -I/home/robbe/esp/esp-idf/components/esp_app_format/include -I/home/robbe/esp/esp-idf/components/esp_bootloader_format/include -I/home/robbe/esp/esp-idf/components/app_update/include -I/home/robbe/esp/esp-idf/components/bootloader_support/include -I/home/robbe/esp/esp-idf/components/bootloader_support/bootloader_flash/include -I/home/robbe/esp/esp-idf/components/efuse/include -I/home/robbe/esp/esp-idf/components/efuse/esp32c6/include -I/home/robbe/esp/esp-idf/components/esp_mm/include -I/home/robbe/esp/esp-idf/components/spi_flash/include -I/home/robbe/esp/esp-idf/components/esp_security/include -I/home/robbe/esp/esp-idf/components/pthread/include -I/home/robbe/esp/esp-idf/components/esp_timer/include -I/home/robbe/esp/esp-idf/components/app_trace/include -I/home/robbe/esp/esp-idf/components/esp_event/include -I/home/robbe/esp/esp-idf/components/nvs_flash/include -I/home/robbe/esp/esp-idf/components/esp_phy/include -I/home/robbe/esp/esp-idf/components/esp_phy/esp32c6/include -I/home/robbe/esp/esp-idf/components/esp_vfs_console/include -I/home/robbe/esp/esp-idf/components/esp_netif/include -I/home/robbe/esp/esp-idf/components/wpa_supplicant/include -I/home/robbe/esp/esp-idf/components/wpa_supplicant/port/include -I/home/robbe/esp/esp-idf/components/wpa_supplicant/esp_supplicant/include -I/home/robbe/esp/esp-idf/components/esp_coex/include -I/home/robbe/esp/esp-idf/components/esp_wifi/include -I/home/robbe/esp/esp-idf/components/esp_wifi/include/local -I/home/robbe/esp/esp-idf/components/esp_wifi/wifi_apps/include -I/home/robbe/esp
 *  The terminal process "ninja" terminated with exit code: 1.

More Information.

This is the comlpet app_main.cpp

/*
   This example code is in the Public Domain (or CC0 licensed, at your option.)

   Unless required by applicable law or agreed to in writing, this
   software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
   CONDITIONS OF ANY KIND, either express or implied.
*/



#include <esp_err.h>
#include <esp_log.h>
#include <nvs_flash.h>

#include <esp_matter.h>
#include <esp_matter_console.h>
#include <esp_matter_ota.h>

#include <common_macros.h>
#include <app_priv.h>
#include <app_reset.h>
#if CHIP_DEVICE_CONFIG_ENABLE_THREAD
#include <platform/ESP32/OpenthreadLauncher.h>
#endif

#include <app/server/CommissioningWindowManager.h>
#include <app/server/Server.h>

#ifdef CONFIG_ENABLE_SET_CERT_DECLARATION_API
#include <esp_matter_providers.h>
#include <lib/support/Span.h>
#ifdef CONFIG_SEC_CERT_DAC_PROVIDER
#include <platform/ESP32/ESP32SecureCertDACProvider.h>
#elif defined(CONFIG_FACTORY_PARTITION_DAC_PROVIDER)
#include <platform/ESP32/ESP32FactoryDataProvider.h>
#endif
using namespace chip::DeviceLayer;
#endif

static const char *TAG = "app_main";
uint16_t light_endpoint_id = 0;

using namespace esp_matter;
using namespace esp_matter::attribute;
using namespace esp_matter::endpoint;
using namespace chip::app::Clusters;

constexpr auto k_timeout_seconds = 300;

#ifdef CONFIG_ENABLE_SET_CERT_DECLARATION_API
extern const uint8_t cd_start[] asm("_binary_certification_declaration_der_start");
extern const uint8_t cd_end[] asm("_binary_certification_declaration_der_end");

const chip::ByteSpan cdSpan(cd_start, static_cast<size_t>(cd_end - cd_start));
#endif // CONFIG_ENABLE_SET_CERT_DECLARATION_API

#if CONFIG_ENABLE_ENCRYPTED_OTA
extern const char decryption_key_start[] asm("_binary_esp_image_encryption_key_pem_start");
extern const char decryption_key_end[] asm("_binary_esp_image_encryption_key_pem_end");

static const char *s_decryption_key = decryption_key_start;
static const uint16_t s_decryption_key_len = decryption_key_end - decryption_key_start;
#endif // CONFIG_ENABLE_ENCRYPTED_OTA

static void app_event_cb(const ChipDeviceEvent *event, intptr_t arg)
{
    switch (event->Type) {
    case chip::DeviceLayer::DeviceEventType::kInterfaceIpAddressChanged:
        ESP_LOGI(TAG, "Interface IP Address changed");
        break;

    case chip::DeviceLayer::DeviceEventType::kCommissioningComplete:
        ESP_LOGI(TAG, "Commissioning complete");
        break;

    case chip::DeviceLayer::DeviceEventType::kFailSafeTimerExpired:
        ESP_LOGI(TAG, "Commissioning failed, fail safe timer expired");
        break;

    case chip::DeviceLayer::DeviceEventType::kCommissioningSessionStarted:
        ESP_LOGI(TAG, "Commissioning session started");
        break;

    case chip::DeviceLayer::DeviceEventType::kCommissioningSessionStopped:
        ESP_LOGI(TAG, "Commissioning session stopped");
        break;

    case chip::DeviceLayer::DeviceEventType::kCommissioningWindowOpened:
        ESP_LOGI(TAG, "Commissioning window opened");
        break;

    case chip::DeviceLayer::DeviceEventType::kCommissioningWindowClosed:
        ESP_LOGI(TAG, "Commissioning window closed");
        break;

    case chip::DeviceLayer::DeviceEventType::kFabricRemoved:
        {
            ESP_LOGI(TAG, "Fabric removed successfully");
            if (chip::Server::GetInstance().GetFabricTable().FabricCount() == 0)
            {
                chip::CommissioningWindowManager & commissionMgr = chip::Server::GetInstance().GetCommissioningWindowManager();
                constexpr auto kTimeoutSeconds = chip::System::Clock::Seconds16(k_timeout_seconds);
                if (!commissionMgr.IsCommissioningWindowOpen())
                {
                    /* After removing last fabric, this example does not remove the Wi-Fi credentials
                     * and still has IP connectivity so, only advertising on DNS-SD.
                     */
                    CHIP_ERROR err = commissionMgr.OpenBasicCommissioningWindow(kTimeoutSeconds,
                                                    chip::CommissioningWindowAdvertisement::kDnssdOnly);
                    if (err != CHIP_NO_ERROR)
                    {
                        ESP_LOGE(TAG, "Failed to open commissioning window, err:%" CHIP_ERROR_FORMAT, err.Format());
                    }
                }
            }
        break;
        }

    case chip::DeviceLayer::DeviceEventType::kFabricWillBeRemoved:
        ESP_LOGI(TAG, "Fabric will be removed");
        break;

    case chip::DeviceLayer::DeviceEventType::kFabricUpdated:
        ESP_LOGI(TAG, "Fabric is updated");
        break;

    case chip::DeviceLayer::DeviceEventType::kFabricCommitted:
        ESP_LOGI(TAG, "Fabric is committed");
        break;

    case chip::DeviceLayer::DeviceEventType::kBLEDeinitialized:
        ESP_LOGI(TAG, "BLE deinitialized and memory reclaimed");
        break;

    default:
        break;
    }
}

// This callback is invoked when clients interact with the Identify Cluster.
// In the callback implementation, an endpoint can identify itself. (e.g., by flashing an LED or light).
static esp_err_t app_identification_cb(identification::callback_type_t type, uint16_t endpoint_id, uint8_t effect_id,
                                       uint8_t effect_variant, void *priv_data)
{
    ESP_LOGI(TAG, "Identification callback: type: %u, effect: %u, variant: %u", type, effect_id, effect_variant);
    return ESP_OK;
}

// This callback is called for every attribute update. The callback implementation shall
// handle the desired attributes and return an appropriate error code. If the attribute
// is not of your interest, please do not return an error code and strictly return ESP_OK.
static esp_err_t app_attribute_update_cb(attribute::callback_type_t type, uint16_t endpoint_id, uint32_t cluster_id,
                                         uint32_t attribute_id, esp_matter_attr_val_t *val, void *priv_data)
{
    esp_err_t err = ESP_OK;

    if (type == PRE_UPDATE) {
        /* Driver update */
        app_driver_handle_t driver_handle = (app_driver_handle_t)priv_data;
        err = app_driver_attribute_update(driver_handle, endpoint_id, cluster_id, attribute_id, val);
    }

    return err;
}

extern "C" void app_main()
{
    esp_err_t err = ESP_OK;

    /* Initialize the ESP NVS layer */
    nvs_flash_init();

    /* Initialize driver */
    app_driver_handle_t light_handle = app_driver_light_init();
    app_driver_handle_t button_handle = app_driver_button_init();
    app_reset_button_register(button_handle);

    /* Create a Matter node and add the mandatory Root Node device type on endpoint 0 */
    node::config_t node_config;

    // node handle can be used to add/modify other endpoints.
    node_t *node = node::create(&node_config, app_attribute_update_cb, app_identification_cb);
    ABORT_APP_ON_FAILURE(node != nullptr, ESP_LOGE(TAG, "Failed to create Matter node"));

    /*extended_color_light::config_t light_config;
    light_config.on_off.on_off = DEFAULT_POWER;
    light_config.on_off.lighting.start_up_on_off = nullptr;
    light_config.level_control.current_level = DEFAULT_BRIGHTNESS;
    light_config.level_control.on_level = DEFAULT_BRIGHTNESS;
    light_config.level_control.lighting.start_up_current_level = DEFAULT_BRIGHTNESS;
    light_config.color_control.color_mode = (uint8_t)ColorControl::ColorMode::kColorTemperature;
    light_config.color_control.enhanced_color_mode = (uint8_t)ColorControl::ColorMode::kColorTemperature;
    light_config.color_control.color_temperature.startup_color_temperature_mireds = nullptr;*/
    
    // endpoint handles can be used to add/modify clusters.
    //endpoint_t *endpoint = extended_color_light::create(node, &light_config, ENDPOINT_FLAG_NONE, light_handle);
    //ABORT_APP_ON_FAILURE(endpoint != nullptr, ESP_LOGE(TAG, "Failed to create extended color light endpoint"));

    //light_endpoint_id = endpoint::get_id(endpoint);
    //ESP_LOGI(TAG, "Light created with endpoint_id %d", light_endpoint_id);

    dimmable_light::config_t motor_horizontal;
    motor_horizontal.level_control.current_level = DEFAULT_BRIGHTNESS;
    motor_horizontal.level_control.on_level = DEFAULT_BRIGHTNESS;
    motor_horizontal.level_control.lighting.start_up_current_level = DEFAULT_BRIGHTNESS;

    endpoint_t *endpoint_mot_hor = dimmable_light::create(node, &motor_horizontal, ENDPOINT_FLAG_NONE, NULL);
    //ABORT_APP_ON_FAILURE(endpoint_mot_hor != nullptr, ESP_LOGE(TAG, "Failed to create horizontal motor endpoint"));
    
    mot_hor_endpoint_id = endpoint::get_id(endpoint_mot_hor);
    //ESP_LOGI(TAG, "motor horizontal created with mot_hor_endpoint_id %d", mot_hor_endpoint_id );


    

    //attribute_t *current_HorizonLevel_attribute = attribute::get(mot_hor_endpoint_id, LevelControl::Id, LevelControl::Attributes::CurrentLevel::Id);
    //attribute::set_deferred_persistence(current_HorizonLevel_attribute);


    /* Mark deferred persistence for some attributes that might be changed rapidly 
    attribute_t *current_level_attribute = attribute::get(light_endpoint_id, LevelControl::Id, LevelControl::Attributes::CurrentLevel::Id);
    attribute::set_deferred_persistence(current_level_attribute);

    attribute_t *current_x_attribute = attribute::get(light_endpoint_id, ColorControl::Id, ColorControl::Attributes::CurrentX::Id);
    attribute::set_deferred_persistence(current_x_attribute);
    attribute_t *current_y_attribute = attribute::get(light_endpoint_id, ColorControl::Id, ColorControl::Attributes::CurrentY::Id);
    attribute::set_deferred_persistence(current_y_attribute);
    attribute_t *color_temp_attribute = attribute::get(light_endpoint_id, ColorControl::Id, ColorControl::Attributes::ColorTemperatureMireds::Id);
    attribute::set_deferred_persistence(color_temp_attribute);*/

#if CHIP_DEVICE_CONFIG_ENABLE_THREAD && CHIP_DEVICE_CONFIG_ENABLE_WIFI_STATION
    // Enable secondary network interface
    secondary_network_interface::config_t secondary_network_interface_config;
    endpoint = endpoint::secondary_network_interface::create(node, &secondary_network_interface_config, ENDPOINT_FLAG_NONE, nullptr);
    ABORT_APP_ON_FAILURE(endpoint != nullptr, ESP_LOGE(TAG, "Failed to create secondary network interface endpoint"));
#endif


#if CHIP_DEVICE_CONFIG_ENABLE_THREAD
    /* Set OpenThread platform config */
    esp_openthread_platform_config_t config = {
        .radio_config = ESP_OPENTHREAD_DEFAULT_RADIO_CONFIG(),
        .host_config = ESP_OPENTHREAD_DEFAULT_HOST_CONFIG(),
        .port_config = ESP_OPENTHREAD_DEFAULT_PORT_CONFIG(),
    };
    set_openthread_platform_config(&config);
#endif

#ifdef CONFIG_ENABLE_SET_CERT_DECLARATION_API
    auto * dac_provider = get_dac_provider();
#ifdef CONFIG_SEC_CERT_DAC_PROVIDER
    static_cast<ESP32SecureCertDACProvider *>(dac_provider)->SetCertificationDeclaration(cdSpan);
#elif defined(CONFIG_FACTORY_PARTITION_DAC_PROVIDER)
    static_cast<ESP32FactoryDataProvider *>(dac_provider)->SetCertificationDeclaration(cdSpan);
#endif
#endif // CONFIG_ENABLE_SET_CERT_DECLARATION_API

    /* Matter start */
    err = esp_matter::start(app_event_cb);
    ABORT_APP_ON_FAILURE(err == ESP_OK, ESP_LOGE(TAG, "Failed to start Matter, err:%d", err));

    /* Starting driver with default values */
    app_driver_light_set_defaults(light_endpoint_id);

#if CONFIG_ENABLE_ENCRYPTED_OTA
    err = esp_matter_ota_requestor_encrypted_init(s_decryption_key, s_decryption_key_len);
    ABORT_APP_ON_FAILURE(err == ESP_OK, ESP_LOGE(TAG, "Failed to initialized the encrypted OTA, err: %d", err));
#endif // CONFIG_ENABLE_ENCRYPTED_OTA

#if CONFIG_ENABLE_CHIP_SHELL
    esp_matter::console::diagnostics_register_commands();
    esp_matter::console::wifi_register_commands();
    esp_matter::console::factoryreset_register_commands();
#if CONFIG_OPENTHREAD_CLI
    esp_matter::console::otcli_register_commands();
#endif
    esp_matter::console::init();
#endif
}
@ravencarcass ravencarcass added the Type: Bug bugs in IDF label Mar 1, 2025
@github-actions github-actions bot changed the title failure while building my custom light code failure while building my custom light code (IDFGH-14761) Mar 1, 2025
@espressif-bot espressif-bot added the Status: Opened Issue is new label Mar 1, 2025
@Alvin1Zhang
Copy link
Collaborator

Thanks for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Opened Issue is new Type: Bug bugs in IDF
Projects
None yet
Development

No branches or pull requests

3 participants