sdkconfig_m5stack_rpc.defaults 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. #
  2. # Copyright (c) 2020 Project CHIP Authors
  3. # Copyright (c) 2018 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 M5Stack.
  20. #
  21. CONFIG_IDF_TARGET="esp32"
  22. CONFIG_IDF_TARGET_ESP32=y
  23. CONFIG_DEVICE_TYPE_M5STACK=y
  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. #enable BT
  31. CONFIG_BT_ENABLED=y
  32. CONFIG_BT_NIMBLE_ENABLED=y
  33. #enable lwip ipv6 autoconfig
  34. CONFIG_LWIP_IPV6_AUTOCONFIG=y
  35. # Use a custom partition table
  36. CONFIG_PARTITION_TABLE_CUSTOM=y
  37. CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
  38. # Vendor and product id
  39. CONFIG_DEVICE_VENDOR_ID=0xFFF1
  40. CONFIG_DEVICE_PRODUCT_ID=0x8001
  41. # Main task needs a bit more stack than the default
  42. # default is 3584, bump this up to 5k.
  43. CONFIG_ESP_MAIN_TASK_STACK_SIZE=5120
  44. # PW RPC Debug channel
  45. CONFIG_EXAMPLE_UART_PORT_NUM=0
  46. CONFIG_EXAMPLE_UART_BAUD_RATE=115200
  47. CONFIG_EXAMPLE_UART_RXD=3
  48. CONFIG_EXAMPLE_UART_TXD=1
  49. CONFIG_ENABLE_PW_RPC=y
  50. # Disable shell
  51. CONFIG_ENABLE_CHIP_SHELL=n
  52. # Serial Flasher config
  53. CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y
  54. CONFIG_ESPTOOLPY_FLASHSIZE="4MB"
  55. #disable Bluetooth modem sleep
  56. #enable it may cause GPIO ISR triggers continuously
  57. CONFIG_BTDM_CTRL_MODEM_SLEEP=n
  58. CONFIG_BTDM_CTRL_MODEM_SLEEP_MODE_ORIG=n
  59. CONFIG_BTDM_CTRL_LPCLK_SEL_MAIN_XTAL=n
  60. # Enable HKDF in mbedtls
  61. CONFIG_MBEDTLS_HKDF_C=y
  62. # Build chip tests
  63. CONFIG_BUILD_CHIP_TESTS=y
  64. # Move functions from IRAM to flash
  65. CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y
  66. # to avoid dram overflow, reduce the critical loggin buffer to 1K
  67. CONFIG_EVENT_LOGGING_CRIT_BUFFER_SIZE=1024
  68. CONFIG_DIAG_USE_EXTERNAL_LOG_WRAP=y