2019-01-27 20:36:47 -05:00
|
|
|
# MicroPython on ESP32, ESP IDF configuration
|
|
|
|
# The following options override the defaults
|
|
|
|
|
2019-12-15 20:36:38 -05:00
|
|
|
CONFIG_IDF_FIRMWARE_CHIP_ID=0x0000
|
2019-01-27 20:36:47 -05:00
|
|
|
|
2021-02-17 19:51:01 -05:00
|
|
|
# Compiler options: use -Os to reduce size, but keep full assertions
|
|
|
|
# (CONFIG_COMPILER_OPTIMIZATION_LEVEL_RELEASE is for IDF 4.0.2)
|
|
|
|
CONFIG_COMPILER_OPTIMIZATION_LEVEL_RELEASE=y
|
|
|
|
CONFIG_COMPILER_OPTIMIZATION_SIZE=y
|
|
|
|
CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_ENABLE=y
|
|
|
|
|
2019-01-27 20:36:47 -05:00
|
|
|
# Application manager
|
|
|
|
CONFIG_APP_EXCLUDE_PROJECT_VER_VAR=y
|
|
|
|
CONFIG_APP_EXCLUDE_PROJECT_NAME_VAR=y
|
|
|
|
|
|
|
|
# Bootloader config
|
2019-09-13 09:04:13 -04:00
|
|
|
CONFIG_BOOTLOADER_LOG_LEVEL_WARN=y
|
2019-01-27 20:36:47 -05:00
|
|
|
|
2020-09-09 21:13:13 -04:00
|
|
|
# Change default log level to "ERROR" (instead of "INFO")
|
|
|
|
CONFIG_LOG_DEFAULT_LEVEL_INFO=n
|
|
|
|
CONFIG_LOG_DEFAULT_LEVEL_ERROR=y
|
|
|
|
CONFIG_LOG_DEFAULT_LEVEL=1
|
|
|
|
|
2019-01-27 20:36:47 -05:00
|
|
|
# ESP32-specific
|
2019-10-10 23:30:47 -04:00
|
|
|
CONFIG_ESP_TASK_WDT_CHECK_IDLE_TASK_CPU0=n
|
|
|
|
CONFIG_ESP_TASK_WDT_CHECK_IDLE_TASK_CPU1=n
|
2019-01-28 04:42:12 -05:00
|
|
|
CONFIG_ESP32_XTAL_FREQ_AUTO=y
|
2019-01-27 20:36:47 -05:00
|
|
|
|
2019-02-05 07:26:01 -05:00
|
|
|
# Power Management
|
|
|
|
CONFIG_PM_ENABLE=y
|
|
|
|
|
2019-01-27 20:36:47 -05:00
|
|
|
# FreeRTOS
|
|
|
|
CONFIG_FREERTOS_THREAD_LOCAL_STORAGE_POINTERS=2
|
2019-09-13 09:04:13 -04:00
|
|
|
CONFIG_FREERTOS_SUPPORT_STATIC_ALLOCATION=y
|
|
|
|
CONFIG_FREERTOS_ENABLE_STATIC_TASK_CLEAN_UP=y
|
2019-01-27 20:36:47 -05:00
|
|
|
|
|
|
|
# UDP
|
2019-10-10 23:30:47 -04:00
|
|
|
CONFIG_LWIP_PPP_SUPPORT=y
|
|
|
|
CONFIG_LWIP_PPP_PAP_SUPPORT=y
|
|
|
|
CONFIG_LWIP_PPP_CHAP_SUPPORT=y
|
2019-09-13 09:04:13 -04:00
|
|
|
|
2019-11-07 06:00:01 -05:00
|
|
|
# SSL
|
|
|
|
# Use 4kiB output buffer instead of default 16kiB (because IDF heap is fragmented in 4.0)
|
|
|
|
CONFIG_MBEDTLS_ASYMMETRIC_CONTENT_LEN=y
|
|
|
|
|
2019-12-04 06:44:49 -05:00
|
|
|
# ULP coprocessor support
|
|
|
|
CONFIG_ESP32_ULP_COPROC_ENABLED=y
|
|
|
|
|
2020-09-23 01:55:55 -04:00
|
|
|
# For cmake build
|
|
|
|
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y
|
|
|
|
CONFIG_PARTITION_TABLE_CUSTOM=y
|
|
|
|
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
|
2021-02-13 09:36:30 -05:00
|
|
|
|
|
|
|
# To reduce iRAM usage
|
|
|
|
CONFIG_ESP32_WIFI_IRAM_OPT=n
|
|
|
|
CONFIG_ESP32_WIFI_RX_IRAM_OPT=n
|