| # Reduce bootloader log verbosity |
| CONFIG_LOG_BOOTLOADER_LEVEL_WARN=y |
| CONFIG_LOG_BOOTLOADER_LEVEL=2 |
| |
| # Increase main and timer task stack sizes |
| CONFIG_MAIN_TASK_STACK_SIZE=7168 |
| CONFIG_FREERTOS_TIMER_TASK_STACK_DEPTH=3072 |
| CONFIG_ESP_SYSTEM_EVENT_TASK_STACK_SIZE=3072 |
| |
| # Enable watchpoint stack overflow guard |
| CONFIG_FREERTOS_WATCHPOINT_END_OF_STACK=y |
| |
| # Enable filesystem |
| CONFIG_PARTITION_TABLE_CUSTOM=y |
| CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions_example.csv" |
| CONFIG_PARTITION_TABLE_CUSTOM_APP_BIN_OFFSET=0x10000 |
| CONFIG_APP_OFFSET=0x10000 |
| |
| # Enable FreeRTOS stats formatting functions, needed for 'tasks' command |
| CONFIG_FREERTOS_USE_TRACE_FACILITY=y |
| CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS=y |
| |
| CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y |
| |
| # Workaround for issue in ESP-IDF v4.2.2 python dependencies, see: |
| # https://github.com/espressif/esp-idf/issues/7631#issuecomment-934212224 |
| # We only need the typical root certs, so this works for our app. |
| CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_CMN=y |
| |
| CONFIG_ESP32_ENABLE_COREDUMP_TO_FLASH=y |
| |
| # SoftAP is unused in this example, disabling it saves about 40kB flash |
| CONFIG_ESP_WIFI_SOFTAP_SUPPORT=n |
| |
| # Instead of pre-allocating large 16 + 4kB IN/OUT buffers when setting up the |
| # TLS connection, use dynamic buffers. This reduces the large memory pressure at |
| # the cost of some extra mallocs. |
| CONFIG_MBEDTLS_DYNAMIC_BUFFER=y |
| CONFIG_MBEDTLS_DYNAMIC_FREE_CONFIG_DATA=y |
| CONFIG_MBEDTLS_DYNAMIC_FREE_CA_CERT=y |
| |
| # Trigger an assert if any malloc fails |
| CONFIG_MEMFAULT_ASSERT_ON_ALLOC_FAILURE=y |
| |
| # Enable custom reboot reasons |
| CONFIG_MEMFAULT_REBOOT_REASON_CUSTOM_ENABLE=y |
| |
| # Enable compact logging |
| CONFIG_MEMFAULT_COMPACT_LOG_ENABLE=y |
| |
| # Enable periodic upload thread for posting Memfault data |
| CONFIG_MEMFAULT_HTTP_PERIODIC_UPLOAD=y |
| # Upload logs. Not recommended for production. |
| CONFIG_MEMFAULT_HTTP_PERIODIC_UPLOAD_LOGS=y |
| |
| # Support older ESP32-C3 variants |
| CONFIG_ESP32C3_REV_MIN_2=y |
| |
| # Task Watchdog should crash the system |
| CONFIG_ESP_TASK_WDT_PANIC=y |
| |
| # Enable OTA |
| CONFIG_MEMFAULT_HTTP_PERIODIC_UPLOAD_OTA=y |
| CONFIG_MEMFAULT_HTTP_PERIODIC_UPLOAD_OTA_CUSTOM_CBS=y |
| |
| # Enable Memfault Deep Sleep support |
| CONFIG_MEMFAULT_DEEP_SLEEP_SUPPORT=y |
| CONFIG_MEMFAULT_DEEP_SLEEP_ENABLE_DEBUG_LOG=y |
| |
| # The app's deep sleep timer function can use significant stack, especially if |
| # non-nano formatting is enabled. Bump this up to accommodate |
| CONFIG_FREERTOS_TIMER_TASK_STACK_DEPTH=4096 |