|
| 1 | +# |
| 2 | +# Copyright (c) 2024 Project CHIP Authors |
| 3 | +# Copyright (c) 2024 Nest Labs, Inc. |
| 4 | +# All rights reserved. |
| 5 | +# |
| 6 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | +# you may not use this file except in compliance with the License. |
| 8 | +# You may obtain a copy of the License at |
| 9 | +# |
| 10 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | +# |
| 12 | +# Unless required by applicable law or agreed to in writing, software |
| 13 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | +# See the License for the specific language governing permissions and |
| 16 | +# limitations under the License. |
| 17 | +# |
| 18 | +# Description: |
| 19 | +# CI uses this to select the ESP32. |
| 20 | +# |
| 21 | +CONFIG_IDF_TARGET="esp32" |
| 22 | +CONFIG_IDF_TARGET_ESP32=y |
| 23 | + |
| 24 | +# Default to 921600 baud when flashing and monitoring device |
| 25 | +CONFIG_ESPTOOLPY_BAUD_921600B=y |
| 26 | +CONFIG_ESPTOOLPY_BAUD=921600 |
| 27 | +CONFIG_ESPTOOLPY_COMPRESSED=y |
| 28 | +CONFIG_ESPTOOLPY_MONITOR_BAUD_115200B=y |
| 29 | +CONFIG_ESPTOOLPY_MONITOR_BAUD=115200 |
| 30 | + |
| 31 | +#enable BT |
| 32 | +CONFIG_BT_ENABLED=y |
| 33 | +CONFIG_BT_NIMBLE_ENABLED=y |
| 34 | + |
| 35 | +#enable lwip ipv6 autoconfig |
| 36 | +CONFIG_LWIP_IPV6_AUTOCONFIG=y |
| 37 | + |
| 38 | +# Use a custom partition table |
| 39 | +CONFIG_PARTITION_TABLE_CUSTOM=y |
| 40 | +CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv" |
| 41 | + |
| 42 | +# Vendor and product id |
| 43 | +CONFIG_DEVICE_VENDOR_ID=0xFFF1 |
| 44 | +CONFIG_DEVICE_PRODUCT_ID=0x8001 |
| 45 | + |
| 46 | +# Main task needs a bit more stack than the default |
| 47 | +# default is 3584, bump this up to 5k. |
| 48 | +CONFIG_ESP_MAIN_TASK_STACK_SIZE=5120 |
| 49 | + |
| 50 | +# PW RPC Debug channel |
| 51 | +CONFIG_EXAMPLE_UART_PORT_NUM=0 |
| 52 | +CONFIG_EXAMPLE_UART_BAUD_RATE=115200 |
| 53 | +CONFIG_EXAMPLE_UART_RXD=3 |
| 54 | +CONFIG_EXAMPLE_UART_TXD=1 |
| 55 | +CONFIG_ENABLE_PW_RPC=y |
| 56 | + |
| 57 | +# Disable shell |
| 58 | +CONFIG_ENABLE_CHIP_SHELL=n |
| 59 | + |
| 60 | +# Serial Flasher config |
| 61 | +CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y |
| 62 | +CONFIG_ESPTOOLPY_FLASHSIZE="4MB" |
| 63 | + |
| 64 | + |
| 65 | +#disable Bluetooth modem sleep |
| 66 | +#enable it may cause GPIO ISR triggers continuously |
| 67 | +CONFIG_BTDM_CTRL_MODEM_SLEEP=n |
| 68 | +CONFIG_BTDM_CTRL_MODEM_SLEEP_MODE_ORIG=n |
| 69 | +CONFIG_BTDM_CTRL_LPCLK_SEL_MAIN_XTAL=n |
| 70 | + |
| 71 | +# Enable HKDF in mbedtls |
| 72 | +CONFIG_MBEDTLS_HKDF_C=y |
| 73 | + |
| 74 | +# Build chip tests |
| 75 | +CONFIG_BUILD_CHIP_TESTS=y |
| 76 | + |
| 77 | +# Move functions from IRAM to flash |
| 78 | +CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y |
| 79 | + |
| 80 | +CONFIG_DIAG_USE_EXTERNAL_LOG_WRAP=y |
| 81 | + |
| 82 | +# Memory Optimizations |
| 83 | +CONFIG_NIMBLE_MAX_CONNECTIONS=1 |
| 84 | +CONFIG_BTDM_CTRL_BLE_MAX_CONN=1 |
| 85 | +CONFIG_BT_NIMBLE_ROLE_CENTRAL=n |
| 86 | +CONFIG_BT_NIMBLE_ROLE_OBSERVER=n |
| 87 | + |
| 88 | +# Reduce the event logging buffer to reduce the DRAM overflow |
| 89 | +# TODO: [ESP32] Fix the DRAM overflow in esp32 apps #34717 |
| 90 | +CONFIG_EVENT_LOGGING_CRIT_BUFFER_SIZE=512 |
| 91 | +CONFIG_EVENT_LOGGING_INFO_BUFFER_SIZE=512 |
| 92 | +CONFIG_EVENT_LOGGING_DEBUG_BUFFER_SIZE=512 |
0 commit comments