| # |
| # Copyright (c) 2025 Project CHIP Authors |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| # |
| |
| # This sample uses Kconfig.defaults to set options common for all |
| # samples. This file should contain only options specific for this sample |
| # or overrides of default values. |
| |
| # Enable CHIP |
| CONFIG_CHIP=y |
| CONFIG_CHIP_PROJECT_CONFIG="../include/CHIPProjectConfig.h" |
| # 32773 == 0x8005 (example lighting-app) |
| CONFIG_CHIP_DEVICE_PRODUCT_ID=32773 |
| CONFIG_STD_CPP17=y |
| |
| CONFIG_GPIO=y |
| |
| # Enable Matter extended announcement and increase duration to 1 hour. |
| CONFIG_CHIP_ENABLE_PAIRING_AUTOSTART=y |
| CONFIG_CHIP_BLE_EXT_ADVERTISING=y |
| CONFIG_CHIP_BLE_ADVERTISING_DURATION=60 |
| |
| CONFIG_LOG_MODE_MINIMAL=n |
| CONFIG_LOG_MODE_DEFERRED=y |
| CONFIG_LOG_BUFFER_SIZE=8192 |
| |
| # Needed for 917 |
| CONFIG_NVS_INIT_BAD_MEMORY_REGION=y |
| |
| CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096 |
| CONFIG_MAIN_STACK_SIZE=8192 |
| CONFIG_MBEDTLS_HEAP_SIZE=16384 |
| CONFIG_SHELL_STACK_SIZE=4096 |
| CONFIG_SHELL_THREAD_PRIORITY_OVERRIDE=y |
| CONFIG_SHELL_THREAD_PRIORITY=11 |
| CONFIG_SHELL_BACKEND_SERIAL_LOG_MESSAGE_QUEUE_SIZE=2048 |
| |
| CONFIG_LOG_PROCESS_THREAD_CUSTOM_PRIORITY=y |
| CONFIG_LOG_PROCESS_THREAD_PRIORITY=12 |
| |
| CONFIG_UART_ASYNC_API=y |
| |
| CONFIG_MBEDTLS_CIPHER_GCM_ENABLED=y |
| CONFIG_SECURE_STORAGE_ITS_TRANSFORM_AEAD_SCHEME_AES_GCM=y |
| CONFIG_CHIP_LIB_SHELL=y |
| |
| CONFIG_BT_HOST_CRYPTO=y |
| |
| CONFIG_NET_IF_MCAST_IPV6_ADDR_COUNT=5 |
| |
| CONFIG_BT_RECV_WORKQ_BT=n |
| # TEMP FIX FOR NVS DELAYS with 917 |
| CONFIG_NVS_LOOKUP_CACHE=y |
| CONFIG_NVS_LOOKUP_CACHE_SIZE=1024 |
| |
| # Bluetooth Low Energy configuration |
| CONFIG_BT_DEVICE_NAME="MatterLight" |
| |
| # Reduce application size |
| CONFIG_USE_SEGGER_RTT=n |
| |
| # Avoid getopt multiple-definition conflict between newlib nano and Zephyr's POSIX C lib extension. |
| # Newlib already provides getopt, strnlen, gmtime_r, strtok_r, etc. |
| CONFIG_POSIX_AEP_CHOICE_NONE=y |
| |
| # CHIP's libCHIP.a uses thread_local storage (e.g. ErrorStr.cpp) which requires __aeabi_read_tp |
| CONFIG_THREAD_LOCAL_STORAGE=y |