From 8236d29fbd1104e612feaa9d80e072edf65af7c5 Mon Sep 17 00:00:00 2001 From: Slider0007 Date: Sat, 20 Jul 2024 00:39:06 +0200 Subject: [PATCH] Update sdkconfig --- .../sdkconfig.freenove-esp32s3-debug.defaults | 33 +++++++++++++ ...ig.freenove-esp32s3-task-analysis.defaults | 16 +++++++ code/sdkconfig.freenove-esp32s3.defaults | 46 +++++++++++++++++++ 3 files changed, 95 insertions(+) create mode 100644 code/sdkconfig.freenove-esp32s3-debug.defaults create mode 100644 code/sdkconfig.freenove-esp32s3-task-analysis.defaults create mode 100644 code/sdkconfig.freenove-esp32s3.defaults diff --git a/code/sdkconfig.freenove-esp32s3-debug.defaults b/code/sdkconfig.freenove-esp32s3-debug.defaults new file mode 100644 index 000000000..b7fe751c2 --- /dev/null +++ b/code/sdkconfig.freenove-esp32s3-debug.defaults @@ -0,0 +1,33 @@ +# +# Bootloader config +# +CONFIG_BOOTLOADER_LOG_LEVEL_WARN=y +CONFIG_BOOTLOADER_LOG_LEVEL=2 +CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_ENABLE=y +CONFIG_COMPILER_OPTIMIZATION_ASSERTION_LEVEL=2 +CONFIG_COMPILER_OPTIMIZATION_CHECKS_SILENT=n + + +# +# LWIP +# +CONFIG_LWIP_ESP_LWIP_ASSERT=y + + +# +# Hardware Abstraction Layer (HAL) and Low Level (LL) +# +CONFIG_HAL_ASSERTION_EQUALS_SYSTEM=y + + +# +# Log output +# +CONFIG_LOG_MAXIMUM_EQUALS_DEFAULT=y + + +# +# Common ESP-related +# +CONFIG_ESP_ERR_TO_NAME_LOOKUP=y +CONFIG_ESP_SYSTEM_PANIC_PRINT_REBOOT=y diff --git a/code/sdkconfig.freenove-esp32s3-task-analysis.defaults b/code/sdkconfig.freenove-esp32s3-task-analysis.defaults new file mode 100644 index 000000000..38463b99f --- /dev/null +++ b/code/sdkconfig.freenove-esp32s3-task-analysis.defaults @@ -0,0 +1,16 @@ +# +# FreeRTOS Kernel +# +CONFIG_FREERTOS_USE_TRACE_FACILITY=1 +CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS=y +CONFIG_FREERTOS_VTASKLIST_INCLUDE_COREID=y + + +# +# Heap memory debugging +# +CONFIG_HEAP_TRACING_STANDALONE=y +# CONFIG_HEAP_POISONING_LIGHT=y +# CONFIG_HEAP_TASK_TRACKING=y +# CONFIG_HEAP_POISONING_COMPREHENSIVE=y + diff --git a/code/sdkconfig.freenove-esp32s3.defaults b/code/sdkconfig.freenove-esp32s3.defaults new file mode 100644 index 000000000..373e22fce --- /dev/null +++ b/code/sdkconfig.freenove-esp32s3.defaults @@ -0,0 +1,46 @@ +################################################## +# Application and board specific configuration +# Edit this file instead of sdkconfig.{board_type}! +# After editing make sure to explicitly delete +# sdkconfig.{board_type} to apply your changes! +################################################## + +# +# Serial flasher config +# +CONFIG_ESPTOOLPY_FLASHSIZE_16MB=y +CONFIG_ESPTOOLPY_FLASHSIZE="16MB" +CONFIG_ESPTOOLPY_FLASHSIZE_DETECT=y + + +# +# Partition Table +# +CONFIG_PARTITION_TABLE_CUSTOM=y +CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv" +CONFIG_PARTITION_TABLE_FILENAME="partitions.csv" +CONFIG_PARTITION_TABLE_OFFSET=0x8000 +CONFIG_PARTITION_TABLE_MD5=y + + +# +# Common ESP-related +# +CONFIG_ESP_ERR_TO_NAME_LOOKUP=n +CONFIG_ESP_ALLOW_BSS_SEG_EXTERNAL_MEMORY=n + + +# +# SPI RAM config +# +CONFIG_SPIRAM_SIZE=-1 +CONFIG_SPIRAM_MODE_OCT=y +CONFIG_SPIRAM_SPEED_80M=y +CONFIG_SPIRAM_BOOT_INIT=y +CONFIG_SPIRAM_USE_MALLOC=y +CONFIG_SPIRAM_MEMTEST=y +CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL=8192 +CONFIG_SPIRAM_MALLOC_RESERVE_INTERNAL=131072 +CONFIG_SPIRAM_IGNORE_NOTFOUND=y +CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY=n +CONFIG_SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY=n