From 0687daf2c85b916fa0a17a29a950b4eb938cc12a Mon Sep 17 00:00:00 2001 From: Marius Vikhammer Date: Tue, 10 May 2022 12:27:36 +0800 Subject: [PATCH] kconfig: move remaining kconfig options out of target component The kconfig options are moved to the component where they are used, mostly esp_hw_support and esp_system. --- Kconfig | 42 ++ components/bootloader/Kconfig.projbuild | 2 +- components/bt/esp_ble_mesh/Kconfig.in | 4 +- components/driver/test/test_spi_bus_lock.c | 4 +- components/esp32/Kconfig | 603 ------------------ components/esp32/sdkconfig.rename | 13 - components/esp32c2/Kconfig | 37 -- components/esp32s2/Kconfig | 246 ------- components/esp32s3/Kconfig | 333 ---------- components/esp_hw_support/Kconfig | 22 + .../esp_hw_support/Kconfig.spiram.common | 6 +- components/esp_hw_support/include/spinlock.h | 6 +- .../port/esp32/Kconfig.hw_support | 41 ++ .../esp_hw_support/port/esp32/Kconfig.spiram | 401 ++++++++++++ .../port/esp32s2/Kconfig.spiram | 101 +++ .../port/esp32s3/Kconfig.spiram | 109 ++++ .../esp_hw_support/sdkconfig.rename.esp32 | 6 + .../esp_hw_support/sdkconfig.rename.esp32s2 | 2 + .../esp_hw_support/sdkconfig.rename.esp32s3 | 4 + components/esp_hw_support/sleep_modes.c | 6 +- components/esp_hw_support/sleep_retention.c | 2 +- .../rgb_lcd/sdkconfig.defaults.esp32s3 | 2 +- components/esp_system/Kconfig | 10 +- .../esp_system/port/soc/esp32/Kconfig.memory | 44 ++ .../esp_system/port/soc/esp32/Kconfig.system | 17 + .../port/soc/esp32/Kconfig.tracemem | 39 ++ components/esp_system/port/soc/esp32/clk.c | 4 +- .../esp_system/port/soc/esp32c2/Kconfig.cache | 33 + .../esp_system/port/soc/esp32s2/Kconfig.cache | 75 +++ .../port/soc/esp32s2/Kconfig.memory | 29 + .../port/soc/esp32s2/Kconfig.system | 8 + .../port/soc/esp32s2/Kconfig.tracemem | 27 + .../esp_system/port/soc/esp32s3/Kconfig.cache | 136 ++++ .../port/soc/esp32s3/Kconfig.memory | 29 + .../port/soc/esp32s3/Kconfig.tracemem | 38 ++ components/esp_system/sdkconfig.rename.esp32 | 5 + components/esp_wifi/Kconfig | 8 +- components/esp_wifi/src/wifi_init.c | 2 +- components/esp_wifi/src/wifi_netif.c | 2 +- .../mdns/test_afl_fuzz_host/sdkconfig.h | 2 +- components/partition_table/Kconfig.projbuild | 2 +- components/spi_flash/cache_utils.c | 16 +- .../spi_flash/esp32s3/spi_timing_config.h | 4 +- docs/en/api-guides/bootloader.rst | 4 +- docs/en/api-guides/flash_psram_config.rst | 2 +- docs/en/api-guides/partition-tables.rst | 2 +- docs/zh_CN/api-guides/bootloader.rst | 4 +- docs/zh_CN/api-guides/partition-tables.rst | 2 +- .../ble/ble_ancs/sdkconfig.defaults.esp32 | 5 +- .../ble/ble_ancs/sdkconfig.defaults.esp32s3 | 1 - .../sdkconfig.defaults.esp32 | 5 +- .../sdkconfig.defaults.esp32s3 | 1 - .../ble_eddystone/sdkconfig.defaults.esp32s3 | 1 - .../sdkconfig.defaults.esp32 | 5 +- .../sdkconfig.defaults.esp32s3 | 1 - .../ble/ble_ibeacon/sdkconfig.defaults.esp32 | 5 +- .../ble_ibeacon/sdkconfig.defaults.esp32s3 | 1 - .../ble_spp_client/sdkconfig.defaults.esp32 | 5 +- .../ble_spp_client/sdkconfig.defaults.esp32s3 | 1 - .../ble_spp_server/sdkconfig.defaults.esp32 | 5 +- .../ble_spp_server/sdkconfig.defaults.esp32s3 | 1 - .../sdkconfig.defaults.esp32 | 5 +- .../sdkconfig.defaults.esp32s3 | 1 - .../sdkconfig.defaults.esp32 | 5 +- .../sdkconfig.defaults.esp32s3 | 1 - .../ble/gatt_client/sdkconfig.defaults.esp32 | 5 +- .../gatt_client/sdkconfig.defaults.esp32s3 | 1 - .../sdkconfig.defaults.esp32 | 5 +- .../sdkconfig.defaults.esp32s3 | 1 - .../sdkconfig.defaults.esp32 | 5 +- .../sdkconfig.defaults.esp32s3 | 1 - .../ble/gatt_server/sdkconfig.defaults.esp32 | 5 +- .../gatt_server/sdkconfig.defaults.esp32s3 | 1 - .../sdkconfig.defaults.esp32 | 5 +- .../sdkconfig.defaults.esp32s3 | 1 - .../sdkconfig.defaults.esp32 | 5 +- .../sdkconfig.defaults.esp32s3 | 1 - .../sdkconfig.defaults.esp32s3 | 1 - .../sdkconfig.defaults.esp32s3 | 1 - .../multi-adv/sdkconfig.defaults.esp32s3 | 1 - .../peroidic_adv/sdkconfig.defaults.esp32s3 | 1 - .../peroidic_sync/sdkconfig.defaults.esp32s3 | 1 - .../sdkconfig.defaults.esp32s3 | 1 - .../gattc_gatts_coex/sdkconfig.defauts.esp32 | 5 +- .../bluetooth/blufi/sdkconfig.defaults.esp32 | 5 +- .../blufi/sdkconfig.defaults.esp32s3 | 1 - .../ble_mesh_coex_test/sdkconfig.defaults | 2 +- .../fast_prov_server/sdkconfig.ci.psram | 2 +- .../i80_controller/sdkconfig.defaults.esp32s3 | 2 +- .../lcd/rgb_panel/sdkconfig.defaults.esp32s3 | 2 +- examples/protocols/http2_request/sdkconfig.ci | 2 +- examples/protocols/https_mbedtls/sdkconfig.ci | 2 +- examples/protocols/https_request/sdkconfig.ci | 2 +- .../https_request/sdkconfig.ci.ssldyn | 2 +- examples/system/himem/sdkconfig.defaults | 2 +- .../simple_ota_example/sdkconfig.ci.spiram | 2 +- sdkconfig.rename | 2 + tools/ci/test_build_system_cmake.sh | 22 +- tools/ldgen/samples/sdkconfig | 6 +- .../sdkconfig.ci.f4r4_120sdr_120sdr | 2 +- .../sdkconfig.ci.f4r4_120sdr_40sdr | 2 +- .../sdkconfig.ci.f4r4_40sdr_120sdr | 2 +- .../flash_psram/sdkconfig.ci.f4r4_80sdr_80sdr | 2 +- .../flash_psram/sdkconfig.ci.f4r8_80sdr_40ddr | 2 +- .../flash_psram/sdkconfig.ci.f4r8_80sdr_80ddr | 2 +- .../flash_psram/sdkconfig.ci.f8r8_120sdr | 2 +- .../flash_psram/sdkconfig.ci.f8r8_40ddr_40ddr | 2 +- .../flash_psram/sdkconfig.ci.f8r8_40ddr_80ddr | 2 +- .../flash_psram/sdkconfig.ci.f8r8_80ddr_40ddr | 2 +- .../flash_psram/sdkconfig.ci.f8r8_80ddr_80ddr | 2 +- .../sdkconfig.ci.f8r8_80ddr_80ddr_ecc | 2 +- .../flash_psram/sdkconfig.ci.f8r8_80sdr_80ddr | 2 +- tools/unit-test-app/README.md | 4 +- .../test_utils/test/ccomp_timer_test_data.c | 8 +- .../configs/flash_encryption_psram | 2 +- tools/unit-test-app/configs/psram | 2 +- tools/unit-test-app/configs/psram_2 | 2 +- tools/unit-test-app/configs/psram_3 | 2 +- tools/unit-test-app/configs/psram_8m | 2 +- tools/unit-test-app/configs/psram_all_ext_1 | 2 +- tools/unit-test-app/configs/psram_all_ext_2 | 2 +- tools/unit-test-app/configs/psram_hspi | 2 +- tools/unit-test-app/configs/psram_s2_advanced | 2 +- tools/unit-test-app/configs/psram_s2_base | 2 +- tools/unit-test-app/configs/psram_s3_base | 2 +- tools/unit-test-app/configs/psram_vspi | 2 +- .../configs/spi_flash_config_1_s2 | 2 +- .../configs/spi_flash_config_2_s2 | 2 +- .../configs/spi_flash_config_3_s2 | 2 +- .../configs/spi_flash_config_4_s2 | 2 +- tools/unit-test-app/configs/spi_flash_legacy | 2 +- tools/unit-test-app/configs/test_utils_psram | 2 +- .../unit-test-app/disabled_configs/psram_2_s2 | 2 +- .../disabled_configs/psram_8m_s2 | 2 +- tools/unit-test-app/disabled_configs/psram_s2 | 2 +- .../unit-test-app/tools/ConfigDependency.yml | 2 +- tools/unit-test-app/tools/UnitTestParser.py | 2 +- 137 files changed, 1356 insertions(+), 1416 deletions(-) delete mode 100644 components/esp32/Kconfig delete mode 100644 components/esp32/sdkconfig.rename delete mode 100644 components/esp32c2/Kconfig delete mode 100644 components/esp32s2/Kconfig delete mode 100644 components/esp32s3/Kconfig create mode 100644 components/esp_hw_support/port/esp32/Kconfig.spiram create mode 100644 components/esp_hw_support/port/esp32s2/Kconfig.spiram create mode 100644 components/esp_hw_support/port/esp32s3/Kconfig.spiram create mode 100644 components/esp_system/port/soc/esp32/Kconfig.memory create mode 100644 components/esp_system/port/soc/esp32/Kconfig.tracemem create mode 100644 components/esp_system/port/soc/esp32c2/Kconfig.cache create mode 100644 components/esp_system/port/soc/esp32s2/Kconfig.cache create mode 100644 components/esp_system/port/soc/esp32s2/Kconfig.memory create mode 100644 components/esp_system/port/soc/esp32s2/Kconfig.tracemem create mode 100644 components/esp_system/port/soc/esp32s3/Kconfig.cache create mode 100644 components/esp_system/port/soc/esp32s3/Kconfig.memory create mode 100644 components/esp_system/port/soc/esp32s3/Kconfig.tracemem diff --git a/Kconfig b/Kconfig index 9e9626a8e9..d843cc0118 100644 --- a/Kconfig +++ b/Kconfig @@ -200,6 +200,48 @@ mainmenu "Espressif IoT Development Framework Configuration" If enabled, this disables the linking of binary libraries in the application build. Note that after enabling this Wi-Fi/Bluetooth will not work. + config APP_COMPATIBLE_PRE_V2_1_BOOTLOADERS + bool "App compatible with bootloaders before ESP-IDF v2.1" + select APP_COMPATIBLE_PRE_V3_1_BOOTLOADERS + depends on IDF_TARGET_ESP32 + default n + help + Bootloaders before ESP-IDF v2.1 did less initialisation of the + system clock. This setting needs to be enabled to build an app + which can be booted by these older bootloaders. + + If this setting is enabled, the app can be booted by any bootloader + from IDF v1.0 up to the current version. + + If this setting is disabled, the app can only be booted by bootloaders + from IDF v2.1 or newer. + + Enabling this setting adds approximately 1KB to the app's IRAM usage. + + config APP_COMPATIBLE_PRE_V3_1_BOOTLOADERS + bool "App compatible with bootloader and partition table before ESP-IDF v3.1" + depends on IDF_TARGET_ESP32 + default n + help + Partition tables before ESP-IDF V3.1 do not contain an MD5 checksum + field, and the bootloader before ESP-IDF v3.1 cannot read a partition + table that contains an MD5 checksum field. + + Enable this option only if your app needs to boot on a bootloader and/or + partition table that was generated from a version *before* ESP-IDF v3.1. + + If this option and Flash Encryption are enabled at the same time, and any + data partitions in the partition table are marked Encrypted, then the + partition encrypted flag should be manually verified in the app before accessing + the partition (see CVE-2021-27926). + + config APP_INIT_CLK + bool + depends on IDF_TARGET_ESP32 + default y if APP_COMPATIBLE_PRE_V2_1_BOOTLOADERS + default y if APP_BUILD_TYPE_ELF_RAM + + endmenu # Build type source "$COMPONENT_KCONFIGS_PROJBUILD_SOURCE_FILE" diff --git a/components/bootloader/Kconfig.projbuild b/components/bootloader/Kconfig.projbuild index b0ac322f78..46244b88cf 100644 --- a/components/bootloader/Kconfig.projbuild +++ b/components/bootloader/Kconfig.projbuild @@ -805,7 +805,7 @@ menu "Security features" config SECURE_FLASH_ENCRYPTION_MODE_RELEASE bool "Release" - select PARTITION_TABLE_MD5 if !ESP32_COMPATIBLE_PRE_V3_1_BOOTLOADERS + select PARTITION_TABLE_MD5 if !APP_COMPATIBLE_PRE_V3_1_BOOTLOADERS endchoice diff --git a/components/bt/esp_ble_mesh/Kconfig.in b/components/bt/esp_ble_mesh/Kconfig.in index 38e9caa01d..68a9ac6f6b 100644 --- a/components/bt/esp_ble_mesh/Kconfig.in +++ b/components/bt/esp_ble_mesh/Kconfig.in @@ -68,7 +68,7 @@ if BLE_MESH config BLE_MESH_FREERTOS_STATIC_ALLOC bool "Enable FreeRTOS static allocation" - depends on FREERTOS_SUPPORT_STATIC_ALLOCATION && (ESP32_SPIRAM_SUPPORT || ESP32_IRAM_AS_8BIT_ACCESSIBLE_MEMORY) + depends on FREERTOS_SUPPORT_STATIC_ALLOCATION && ((IDF_TARGET_ESP32 && SPIRAM) || ESP32_IRAM_AS_8BIT_ACCESSIBLE_MEMORY) # NOERROR default n help Enable this option to use FreeRTOS static allocation APIs for BLE Mesh, @@ -85,7 +85,7 @@ if BLE_MESH config BLE_MESH_FREERTOS_STATIC_ALLOC_EXTERNAL bool "External SPIRAM" - depends on ESP32_SPIRAM_SUPPORT + depends on IDF_TARGET_ESP32 && SPIRAM help If enabled, BLE Mesh allocates dynamic memory from external SPIRAM for FreeRTOS objects, i.e. mutex, queue, and task stack. External SPIRAM diff --git a/components/driver/test/test_spi_bus_lock.c b/components/driver/test/test_spi_bus_lock.c index 42bd53a7d0..8159d61909 100644 --- a/components/driver/test/test_spi_bus_lock.c +++ b/components/driver/test/test_spi_bus_lock.c @@ -43,7 +43,7 @@ typedef struct { bool finished; } task_context_t; -#ifndef CONFIG_ESP32_SPIRAM_SUPPORT +#if !(CONFIG_SPIRAM && CONFIG_IDF_TARGET_ESP32) const static char TAG[] = "test_spi"; @@ -347,4 +347,4 @@ TEST_CASE("spi master can be used on SPI1", "[spi]") //TODO: add a case when a non-polling transaction happened in the bus-acquiring time and then release the bus then queue a new trans -#endif //!CONFIG_ESP32_SPIRAM_SUPPORT +#endif //!(CONFIG_SPIRAM && CONFIG_IDF_TARGET_ESP32) diff --git a/components/esp32/Kconfig b/components/esp32/Kconfig deleted file mode 100644 index 9ccc22c7fd..0000000000 --- a/components/esp32/Kconfig +++ /dev/null @@ -1,603 +0,0 @@ -menu "ESP32-specific" - # TODO: this component simply shouldn't be included - # in the build at the CMake level, but this is currently - # not working so we just hide all items here - visible if IDF_TARGET_ESP32 - - config ESP32_ECO3_CACHE_LOCK_FIX - bool - default y - depends on !FREERTOS_UNICORE && ESP32_SPIRAM_SUPPORT - - config ESP32_DPORT_WORKAROUND - bool - default "y" if !FREERTOS_UNICORE && ESP32_REV_MIN < 2 - - # Note: to support SPIRAM across multiple chips, check CONFIG_SPIRAM - # instead - config ESP32_SPIRAM_SUPPORT - bool "Support for external, SPI-connected RAM" - default "n" - select SPIRAM - help - This enables support for an external SPI RAM chip, connected in parallel with the - main SPI flash chip. - - menu "SPI RAM config" - depends on ESP32_SPIRAM_SUPPORT - - config SPIRAM_MODE_QUAD - bool - default "y" - - choice SPIRAM_TYPE - prompt "Type of SPI RAM chip in use" - default SPIRAM_TYPE_AUTO - - config SPIRAM_TYPE_AUTO - bool "Auto-detect" - - config SPIRAM_TYPE_ESPPSRAM16 - bool "ESP-PSRAM16 or APS1604" - - config SPIRAM_TYPE_ESPPSRAM32 - bool "ESP-PSRAM32" - - config SPIRAM_TYPE_ESPPSRAM64 - bool "ESP-PSRAM64 or LY68L6400" - - endchoice - - config SPIRAM_SIZE - int - default -1 if SPIRAM_TYPE_AUTO - default 2097152 if SPIRAM_TYPE_ESPPSRAM16 - default 4194304 if SPIRAM_TYPE_ESPPSRAM32 - default 8388608 if SPIRAM_TYPE_ESPPSRAM64 - default 0 - - choice SPIRAM_SPEED - prompt "Set RAM clock speed" - default SPIRAM_SPEED_40M - help - Select the speed for the SPI RAM chip. - If SPI RAM is enabled, we only support three combinations of SPI speed mode we supported now: - - 1. Flash SPI running at 40Mhz and RAM SPI running at 40Mhz - 2. Flash SPI running at 80Mhz and RAM SPI running at 40Mhz - 3. Flash SPI running at 80Mhz and RAM SPI running at 80Mhz - - Note: If the third mode(80Mhz+80Mhz) is enabled for SPI RAM of type 32MBit, one of the HSPI/VSPI host - will be occupied by the system. Which SPI host to use can be selected by the config item - SPIRAM_OCCUPY_SPI_HOST. Application code should never touch HSPI/VSPI hardware in this case. The - option to select 80MHz will only be visible if the flash SPI speed is also 80MHz. - (ESPTOOLPY_FLASHFREQ_80M is true) - - config SPIRAM_SPEED_40M - bool "40MHz clock speed" - config SPIRAM_SPEED_80M - depends on ESPTOOLPY_FLASHFREQ_80M - bool "80MHz clock speed" - endchoice - - # insert non-chip-specific items here - source "$IDF_PATH/components/esp_hw_support/Kconfig.spiram.common" - - config SPIRAM_CACHE_WORKAROUND - bool "Enable workaround for bug in SPI RAM cache for Rev1 ESP32s" - depends on (SPIRAM_USE_MEMMAP || SPIRAM_USE_CAPS_ALLOC || SPIRAM_USE_MALLOC) && (ESP32_REV_MIN < 3) - default "y" - help - Revision 1 of the ESP32 has a bug that can cause a write to PSRAM not to take place in some situations - when the cache line needs to be fetched from external RAM and an interrupt occurs. This enables a - fix in the compiler (-mfix-esp32-psram-cache-issue) that makes sure the specific code that is - vulnerable to this will not be emitted. - - This will also not use any bits of newlib that are located in ROM, opting for a version that is - compiled with the workaround and located in flash instead. - - The workaround is not required for ESP32 revision 3 and above. - - menu "SPIRAM cache workaround debugging" - - choice SPIRAM_CACHE_WORKAROUND_STRATEGY - prompt "Workaround strategy" - depends on SPIRAM_CACHE_WORKAROUND - default SPIRAM_CACHE_WORKAROUND_STRATEGY_MEMW - help - Select the workaround strategy. Note that the strategy for precompiled - libraries (libgcc, newlib, bt, wifi) is not affected by this selection. - - Unless you know you need a different strategy, it's suggested you stay - with the default MEMW strategy. Note that DUPLDST can interfere with hardware - encryption and this will be automatically disabled if this workaround is selected. - 'Insert nops' is the workaround that was used in older esp-idf versions. This workaround - still can cause faulty data transfers from/to SPI RAM in some situation. - - config SPIRAM_CACHE_WORKAROUND_STRATEGY_MEMW - bool "Insert memw after vulnerable instructions (default)" - - config SPIRAM_CACHE_WORKAROUND_STRATEGY_DUPLDST - bool "Duplicate LD/ST for 32-bit, memw for 8/16 bit" - - config SPIRAM_CACHE_WORKAROUND_STRATEGY_NOPS - bool "Insert nops between vulnerable loads/stores (old strategy, obsolete)" - endchoice - - #This needs to be Y only for the dupldst workaround - config SPIRAM_WORKAROUND_NEED_VOLATILE_SPINLOCK - bool - default "y" if SPIRAM_CACHE_WORKAROUND_STRATEGY_DUPLDST - endmenu - - menu "SPIRAM workaround libraries placement" - visible if SPIRAM_CACHE_WORKAROUND - - config SPIRAM_CACHE_LIBJMP_IN_IRAM - bool "Put libc's jump related functions in IRAM" - depends on SPIRAM_CACHE_WORKAROUND - default "y" - help - The functions affected by this option are: longjmp and setjmp. - Putting these function in IRAM will allow them to be called when flash cache is disabled - but it will also reduce the available size of free IRAM for the user application. - - config SPIRAM_CACHE_LIBMATH_IN_IRAM - bool "Put libc's math related functions in IRAM" - depends on SPIRAM_CACHE_WORKAROUND - default "y" - help - The functions affected by this option are: abs, div, labs, ldiv, quorem, fpclassify, - and nan. - Putting these function in IRAM will allow them to be called when flash cache is disabled - but it will also reduce the available size of free IRAM for the user application. - - config SPIRAM_CACHE_LIBNUMPARSER_IN_IRAM - bool "Put libc's number parsing related functions in IRAM" - depends on SPIRAM_CACHE_WORKAROUND - default "y" - help - The functions affected by this option are: utoa, itoa, atoi, atol, strtol, and strtoul. - Putting these function in IRAM will allow them to be called when flash cache is disabled - but it will also reduce the available size of free IRAM for the user application. - - config SPIRAM_CACHE_LIBIO_IN_IRAM - bool "Put libc's I/O related functions in IRAM" - depends on SPIRAM_CACHE_WORKAROUND - default "y" - help - The functions affected by this option are: wcrtomb, fvwrite, wbuf, wsetup, fputwc, wctomb_r, - ungetc, makebuf, fflush, refill, and sccl. - Putting these function in IRAM will allow them to be called when flash cache is disabled - but it will also reduce the available size of free IRAM for the user application. - - config SPIRAM_CACHE_LIBTIME_IN_IRAM - bool "Put libc's time related functions in IRAM" - depends on SPIRAM_CACHE_WORKAROUND - default "y" - help - The functions affected by this option are: asctime, asctime_r, ctime, ctime_r, lcltime, lcltime_r, - gmtime, gmtime_r, strftime, mktime, tzset_r, tzset, time, gettzinfo, systimes, month_lengths, - timelocal, tzvars, tzlock, tzcalc_limits, and strptime. - Putting these function in IRAM will allow them to be called when flash cache is disabled - but it will also reduce the available size of free IRAM for the user application. - - config SPIRAM_CACHE_LIBCHAR_IN_IRAM - bool "Put libc's characters related functions in IRAM" - depends on SPIRAM_CACHE_WORKAROUND - default "y" - help - The functions affected by this option are: ctype_, toupper, tolower, toascii, strupr, bzero, - isalnum, isalpha, isascii, isblank, iscntrl, isdigit, isgraph, islower, isprint, ispunct, - isspace, and isupper. - Putting these function in IRAM will allow them to be called when flash cache is disabled - but it will also reduce the available size of free IRAM for the user application. - - config SPIRAM_CACHE_LIBMEM_IN_IRAM - bool "Put libc's memory related functions in IRAM" - depends on SPIRAM_CACHE_WORKAROUND - default "y" - help - The functions affected by this option are: memccpy, memchr memmove, and memrchr. - Putting these function in IRAM will allow them to be called when flash cache is disabled - but it will also reduce the available size of free IRAM for the user application. - - config SPIRAM_CACHE_LIBSTR_IN_IRAM - bool "Put libc's string related functions in IRAM" - depends on SPIRAM_CACHE_WORKAROUND - default "y" - help - The functions affected by this option are: strcasecmp, strcasestr, strchr, strcoll, - strcpy, strcspn, strdup, strdup_r, strlcat, strlcpy, strlen, strlwr, strncasecmp, - strncat, strncmp, strncpy, strndup, strndup_r, strrchr, strsep, strspn, strstr, - strtok_r, and strupr. - Putting these function in IRAM will allow them to be called when flash cache is disabled - but it will also reduce the available size of free IRAM for the user application. - - config SPIRAM_CACHE_LIBRAND_IN_IRAM - bool "Put libc's random related functions in IRAM" - depends on SPIRAM_CACHE_WORKAROUND - default "y" - help - The functions affected by this option are: srand, rand, and rand_r. - Putting these function in IRAM will allow them to be called when flash cache is disabled - but it will also reduce the available size of free IRAM for the user application. - - config SPIRAM_CACHE_LIBENV_IN_IRAM - bool "Put libc's environment related functions in IRAM" - depends on SPIRAM_CACHE_WORKAROUND - default "y" - help - The functions affected by this option are: environ, envlock, and getenv_r. - Putting these function in IRAM will allow them to be called when flash cache is disabled - but it will also reduce the available size of free IRAM for the user application. - - config SPIRAM_CACHE_LIBFILE_IN_IRAM - bool "Put libc's file related functions in IRAM" - depends on SPIRAM_CACHE_WORKAROUND - default "y" - help - The functions affected by this option are: lock, isatty, fclose, open, close, creat, read, - rshift, sbrk, stdio, syssbrk, sysclose, sysopen, creat, sysread, syswrite, impure, fwalk, - and findfp. - Putting these function in IRAM will allow them to be called when flash cache is disabled - but it will also reduce the available size of free IRAM for the user application. - - config SPIRAM_CACHE_LIBMISC_IN_IRAM - bool "Put libc's miscellaneous functions in IRAM, see help" - depends on SPIRAM_CACHE_WORKAROUND - default "y" - help - The functions affected by this option are: raise and system - Putting these function in IRAM will allow them to be called when flash cache is disabled - but it will also reduce the available size of free IRAM for the user application. - endmenu - - config SPIRAM_BANKSWITCH_ENABLE - bool "Enable bank switching for >4MiB external RAM" - default y - depends on SPIRAM_USE_MEMMAP || SPIRAM_USE_CAPS_ALLOC || SPIRAM_USE_MALLOC - help - The ESP32 only supports 4MiB of external RAM in its address space. The hardware does support larger - memories, but these have to be bank-switched in and out of this address space. Enabling this allows you - to reserve some MMU pages for this, which allows the use of the esp_himem api to manage these banks. - - #Note that this is limited to 62 banks, as esp_spiram_writeback_cache needs some kind of mapping of - #some banks below that mark to work. We cannot at this moment guarantee this to exist when himem is - #enabled. - - If spiram 2T mode is enabled, the size of 64Mbit psram will be changed as 32Mbit, so himem will be - unusable. - config SPIRAM_BANKSWITCH_RESERVE - int "Amount of 32K pages to reserve for bank switching" - depends on SPIRAM_BANKSWITCH_ENABLE - default 8 - range 1 62 - help - Select the amount of banks reserved for bank switching. Note that the amount of RAM allocatable with - malloc/esp_heap_alloc_caps will decrease by 32K for each page reserved here. - - Note that this reservation is only actually done if your program actually uses the himem API. Without - any himem calls, the reservation is not done and the original amount of memory will be available - to malloc/esp_heap_alloc_caps. - - config SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY - bool "Allow external memory as an argument to xTaskCreateStatic" - default n - depends on SPIRAM_USE_MALLOC - help - Because some bits of the ESP32 code environment cannot be recompiled with the cache workaround, - normally tasks cannot be safely run with their stack residing in external memory; for this reason - xTaskCreate (and related task creaton functions) always allocate stack in internal memory and - xTaskCreateStatic will check if the memory passed to it is in internal memory. If you have a task that - needs a large amount of stack and does not call on ROM code in any way (no direct calls, but also no - Bluetooth/WiFi), you can try enable this to cause xTaskCreateStatic to allow tasks stack in external - memory. - - choice SPIRAM_OCCUPY_SPI_HOST - prompt "SPI host to use for 32MBit PSRAM" - default SPIRAM_OCCUPY_VSPI_HOST - depends on SPIRAM_SPEED_80M - help - When both flash and PSRAM is working under 80MHz, and the PSRAM is of type 32MBit, one of the HSPI/VSPI - host will be used to output the clock. Select which one to use here. - - config SPIRAM_OCCUPY_HSPI_HOST - bool "HSPI host (SPI2)" - config SPIRAM_OCCUPY_VSPI_HOST - bool "VSPI host (SPI3)" - config SPIRAM_OCCUPY_NO_HOST - bool "Will not try to use any host, will abort if not able to use the PSRAM" - - endchoice - - menu "PSRAM clock and cs IO for ESP32-DOWD" - - config D0WD_PSRAM_CLK_IO - int "PSRAM CLK IO number" - depends on ESP32_SPIRAM_SUPPORT - range 0 33 - default 17 - help - The PSRAM CLOCK IO can be any unused GPIO, user can config it based on hardware design. If user use - 1.8V flash and 1.8V psram, this value can only be one of 6, 7, 8, 9, 10, 11, 16, 17. - - config D0WD_PSRAM_CS_IO - int "PSRAM CS IO number" - depends on ESP32_SPIRAM_SUPPORT - range 0 33 - default 16 - help - The PSRAM CS IO can be any unused GPIO, user can config it based on hardware design. If user use - 1.8V flash and 1.8V psram, this value can only be one of 6, 7, 8, 9, 10, 11, 16, 17. - endmenu - - menu "PSRAM clock and cs IO for ESP32-D2WD" - - config D2WD_PSRAM_CLK_IO - int "PSRAM CLK IO number" - depends on ESP32_SPIRAM_SUPPORT - range 0 33 - default 9 - help - User can config it based on hardware design. For ESP32-D2WD chip, the psram can only be 1.8V psram, - so this value can only be one of 6, 7, 8, 9, 10, 11, 16, 17. - - config D2WD_PSRAM_CS_IO - int "PSRAM CS IO number" - depends on ESP32_SPIRAM_SUPPORT - range 0 33 - default 10 - help - User can config it based on hardware design. For ESP32-D2WD chip, the psram can only be 1.8V psram, - so this value can only be one of 6, 7, 8, 9, 10, 11, 16, 17. - endmenu - - menu "PSRAM clock and cs IO for ESP32-PICO" - - config PICO_PSRAM_CS_IO - int "PSRAM CS IO number" - depends on ESP32_SPIRAM_SUPPORT - range 0 33 - default 10 - help - The PSRAM CS IO can be any unused GPIO, user can config it based on hardware design. - - For ESP32-PICO chip, the psram share clock with flash, so user do not need to configure the clock - IO. - For the reference hardware design, please refer to - https://www.espressif.com/sites/default/files/documentation/esp32-pico-d4_datasheet_en.pdf - - endmenu - - config SPIRAM_CUSTOM_SPIWP_SD3_PIN - bool "Use custom SPI PSRAM WP(SD3) Pin when flash pins set in eFuse (read help)" - depends on IDF_TARGET_ESP32 && (ESPTOOLPY_FLASHMODE_DIO || ESPTOOLPY_FLASHMODE_DOUT) - default y if SPIRAM_SPIWP_SD3_PIN != 7 # backwards compatibility, can remove in IDF 5 - default n - help - This setting is only used if the SPI flash pins have been overridden by setting the eFuses - SPI_PAD_CONFIG_xxx, and the SPI flash mode is DIO or DOUT. - - When this is the case, the eFuse config only defines 3 of the 4 Quad I/O data pins. The WP pin (aka - ESP32 pin "SD_DATA_3" or SPI flash pin "IO2") is not specified in eFuse. The psram only has QPI - mode, so a WP pin setting is necessary. - - If this config item is set to N (default), the correct WP pin will be automatically used for any - Espressif chip or module with integrated flash. If a custom setting is needed, set this config item - to Y and specify the GPIO number connected to the WP pin. - - When flash mode is set to QIO or QOUT, the PSRAM WP pin will be set the same as the SPI Flash WP pin - configured in the bootloader. - - config SPIRAM_SPIWP_SD3_PIN - int "Custom SPI PSRAM WP(SD3) Pin" - depends on IDF_TARGET_ESP32 && (ESPTOOLPY_FLASHMODE_DIO || ESPTOOLPY_FLASHMODE_DOUT) - #depends on SPIRAM_CUSTOM_SPIWP_SD3_PIN # backwards compatibility, can uncomment in IDF 5 - range 0 33 - default 7 - help - The option "Use custom SPI PSRAM WP(SD3) pin" must be set or this value is ignored - - If burning a customized set of SPI flash pins in eFuse and using DIO or DOUT mode for flash, set this - value to the GPIO number of the SPIRAM WP pin. - - config SPIRAM_2T_MODE - bool "Enable SPI PSRAM 2T mode" - depends on ESP32_SPIRAM_SUPPORT - default "n" - help - Enable this option to fix single bit errors inside 64Mbit PSRAM. - - Some 64Mbit PSRAM chips have a hardware issue in the RAM which causes bit errors at multiple - fixed bit positions. - - Note: If this option is enabled, the 64Mbit PSRAM chip will appear to be 32Mbit in size. - Applications will not be affected unless the use the esp_himem APIs, which are not supported - in 2T mode. - - endmenu # "SPI RAM config" - - config ESP32_MEMMAP_TRACEMEM - bool - default "n" - - config ESP32_MEMMAP_TRACEMEM_TWOBANKS - bool - default "n" - - config ESP32_TRAX - bool "Use TRAX tracing feature" - default "n" - select ESP32_MEMMAP_TRACEMEM - help - The ESP32 contains a feature which allows you to trace the execution path the processor - has taken through the program. This is stored in a chunk of 32K (16K for single-processor) - of memory that can't be used for general purposes anymore. Disable this if you do not know - what this is. - - config ESP32_TRAX_TWOBANKS - bool "Reserve memory for tracing both pro as well as app cpu execution" - default "n" - depends on ESP32_TRAX && !FREERTOS_UNICORE - select ESP32_MEMMAP_TRACEMEM_TWOBANKS - help - The ESP32 contains a feature which allows you to trace the execution path the processor - has taken through the program. This is stored in a chunk of 32K (16K for single-processor) - of memory that can't be used for general purposes anymore. Disable this if you do not know - what this is. - - # Memory to reverse for trace, used in linker script - config ESP32_TRACEMEM_RESERVE_DRAM - hex - default 0x8000 if ESP32_MEMMAP_TRACEMEM && ESP32_MEMMAP_TRACEMEM_TWOBANKS - default 0x4000 if ESP32_MEMMAP_TRACEMEM && !ESP32_MEMMAP_TRACEMEM_TWOBANKS - default 0x0 - - config ESP32_DEEP_SLEEP_WAKEUP_DELAY - int "Extra delay in deep sleep wake stub (in us)" - default 2000 - range 0 5000 - help - When ESP32 exits deep sleep, the CPU and the flash chip are powered on - at the same time. CPU will run deep sleep stub first, and then - proceed to load code from flash. Some flash chips need sufficient - time to pass between power on and first read operation. By default, - without any extra delay, this time is approximately 900us, although - some flash chip types need more than that. - - By default extra delay is set to 2000us. When optimizing startup time - for applications which require it, this value may be reduced. - - If you are seeing "flash read err, 1000" message printed to the - console after deep sleep reset, try increasing this value. - - choice ESP32_XTAL_FREQ_SEL - prompt "Main XTAL frequency" - default ESP32_XTAL_FREQ_40 - help - ESP32 currently supports the following XTAL frequencies: - - - 26 MHz - - 40 MHz - - Startup code can automatically estimate XTAL frequency. This feature - uses the internal 8MHz oscillator as a reference. Because the internal - oscillator frequency is temperature dependent, it is not recommended - to use automatic XTAL frequency detection in applications which need - to work at high ambient temperatures and use high-temperature - qualified chips and modules. - config ESP32_XTAL_FREQ_40 - bool "40 MHz" - config ESP32_XTAL_FREQ_26 - bool "26 MHz" - config ESP32_XTAL_FREQ_AUTO - bool "Autodetect" - endchoice - - # Keep these values in sync with rtc_xtal_freq_t enum in soc/rtc.h - config ESP32_XTAL_FREQ - int - default 0 if ESP32_XTAL_FREQ_AUTO - default 40 if ESP32_XTAL_FREQ_40 - default 26 if ESP32_XTAL_FREQ_26 - - config ESP32_DISABLE_BASIC_ROM_CONSOLE - bool "Permanently disable BASIC ROM Console" - default n - help - If set, the first time the app boots it will disable the BASIC ROM Console - permanently (by burning an eFuse). - - Otherwise, the BASIC ROM Console starts on reset if no valid bootloader is - read from the flash. - - (Enabling secure boot also disables the BASIC ROM Console by default.) - - config ESP32_COMPATIBLE_PRE_V2_1_BOOTLOADERS - bool "App compatible with bootloaders before ESP-IDF v2.1" - select ESP32_COMPATIBLE_PRE_V3_1_BOOTLOADERS - default n - help - Bootloaders before ESP-IDF v2.1 did less initialisation of the - system clock. This setting needs to be enabled to build an app - which can be booted by these older bootloaders. - - If this setting is enabled, the app can be booted by any bootloader - from IDF v1.0 up to the current version. - - If this setting is disabled, the app can only be booted by bootloaders - from IDF v2.1 or newer. - - Enabling this setting adds approximately 1KB to the app's IRAM usage. - - config ESP32_COMPATIBLE_PRE_V3_1_BOOTLOADERS - bool "App compatible with bootloader and partition table before ESP-IDF v3.1" - default n - help - Partition tables before ESP-IDF V3.1 do not contain an MD5 checksum - field, and the bootloader before ESP-IDF v3.1 cannot read a partition - table that contains an MD5 checksum field. - - Enable this option only if your app needs to boot on a bootloader and/or - partition table that was generated from a version *before* ESP-IDF v3.1. - - If this option and Flash Encryption are enabled at the same time, and any - data partitions in the partition table are marked Encrypted, then the - partition encrypted flag should be manually verified in the app before accessing - the partition (see CVE-2021-27926). - - config ESP32_APP_INIT_CLK - bool - default y if ESP32_COMPATIBLE_PRE_V2_1_BOOTLOADERS - default y if APP_BUILD_TYPE_ELF_RAM - - config ESP32_RTCDATA_IN_FAST_MEM - bool "Place RTC_DATA_ATTR and RTC_RODATA_ATTR variables into RTC fast memory segment" - default n - depends on FREERTOS_UNICORE - help - This option allows to place .rtc_data and .rtc_rodata sections into - RTC fast memory segment to free the slow memory region for ULP programs. - This option depends on the CONFIG_FREERTOS_UNICORE option because RTC fast memory - can be accessed only by PRO_CPU core. - - config ESP32_USE_FIXED_STATIC_RAM_SIZE - bool "Use fixed static RAM size" - default n - help - If this option is disabled, the DRAM part of the heap starts right after the .bss section, - within the dram0_0 region. As a result, adding or removing some static variables - will change the available heap size. - - If this option is enabled, the DRAM part of the heap starts right after the dram0_0 region, - where its length is set with ESP32_FIXED_STATIC_RAM_SIZE - - config ESP32_FIXED_STATIC_RAM_SIZE - hex "Fixed Static RAM size" - default 0x1E000 - range 0 0x2c200 - depends on ESP32_USE_FIXED_STATIC_RAM_SIZE - help - RAM size dedicated for static variables (.data & .bss sections). - Please note that the actual length will be reduced by BTDM_RESERVE_DRAM if Bluetooth - controller is enabled. - - config ESP32_DPORT_DIS_INTERRUPT_LVL - int "Disable the interrupt level for the DPORT workarounds" - default 5 - help - To prevent interrupting DPORT workarounds, - need to disable interrupt with a maximum used level in the system. - - config ESP32_IRAM_AS_8BIT_ACCESSIBLE_MEMORY - bool "Enable IRAM as 8 bit accessible memory" - depends on FREERTOS_UNICORE - help - If enabled, application can use IRAM as byte accessible region for storing data - (Note: IRAM region cannot be used as task stack) - - This is possible due to handling of exceptions `LoadStoreError (3)` and `LoadStoreAlignmentError (9)` - Each unaligned read/write access will incur a penalty of maximum of 167 CPU cycles. - -endmenu # ESP32-Specific diff --git a/components/esp32/sdkconfig.rename b/components/esp32/sdkconfig.rename deleted file mode 100644 index d77adbf634..0000000000 --- a/components/esp32/sdkconfig.rename +++ /dev/null @@ -1,13 +0,0 @@ -# sdkconfig replacement configurations for deprecated options formatted as -# CONFIG_DEPRECATED_OPTION CONFIG_NEW_OPTION - -# ESP32-specific -CONFIG_SPIRAM_SUPPORT CONFIG_ESP32_SPIRAM_SUPPORT -CONFIG_MEMMAP_TRACEMEM CONFIG_ESP32_MEMMAP_TRACEMEM -CONFIG_MEMMAP_TRACEMEM_TWOBANKS CONFIG_ESP32_MEMMAP_TRACEMEM_TWOBANKS -CONFIG_TRACEMEM_RESERVE_DRAM CONFIG_ESP32_TRACEMEM_RESERVE_DRAM -CONFIG_DISABLE_BASIC_ROM_CONSOLE CONFIG_ESP32_DISABLE_BASIC_ROM_CONSOLE -CONFIG_COMPATIBLE_PRE_V2_1_BOOTLOADERS CONFIG_ESP32_COMPATIBLE_PRE_V2_1_BOOTLOADERS - -# SPI RAM config -CONFIG_WIFI_LWIP_ALLOCATION_FROM_SPIRAM_FIRST CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP diff --git a/components/esp32c2/Kconfig b/components/esp32c2/Kconfig deleted file mode 100644 index 58441c7021..0000000000 --- a/components/esp32c2/Kconfig +++ /dev/null @@ -1,37 +0,0 @@ -menu "ESP32C2-Specific" - visible if IDF_TARGET_ESP32C2 - - menu "Cache config" - - choice ESP32C2_MMU_PAGE_SIZE - # TODO: IDF-3821 - prompt "Cache page size" - default ESP32C2_MMU_PAGE_SIZE_64KB - help - Cache page size to be set on application startup - - config ESP32C2_MMU_PAGE_SIZE_16KB - bool "16KB" - config ESP32C2_MMU_PAGE_SIZE_32KB - bool "32KB" - config ESP32C2_MMU_PAGE_SIZE_64KB - bool "64KB" - endchoice - - config ESP32C2_INSTRUCTION_CACHE_WRAP - bool - prompt "Instruction cache wrap" - help - If enabled, instruction cache will use wrap mode to read spi flash. - The wrap length is fixed to 32B - - - config ESP32C2_MMU_PAGE_MODE - int - default 0 if ESP32C2_MMU_PAGE_SIZE_16KB - default 1 if ESP32C2_MMU_PAGE_SIZE_32KB - default 2 if ESP32C2_MMU_PAGE_SIZE_64KB - - endmenu - -endmenu # ESP32C2-Specific diff --git a/components/esp32s2/Kconfig b/components/esp32s2/Kconfig deleted file mode 100644 index 6ce4246d7c..0000000000 --- a/components/esp32s2/Kconfig +++ /dev/null @@ -1,246 +0,0 @@ -menu "ESP32S2-specific" - # TODO: this component simply shouldn't be included - # in the build at the CMake level, but this is currently - # not working so we just hide all items here - visible if IDF_TARGET_ESP32S2 - - menu "Cache config" - - choice ESP32S2_INSTRUCTION_CACHE_SIZE - prompt "Instruction cache size" - default ESP32S2_INSTRUCTION_CACHE_8KB - help - Instruction cache size to be set on application startup. - If you use 8KB instruction cache rather than 16KB instruction cache, - then the other 8KB will be added to the heap. - - config ESP32S2_INSTRUCTION_CACHE_8KB - bool "8KB" - config ESP32S2_INSTRUCTION_CACHE_16KB - bool "16KB" - endchoice - - choice ESP32S2_INSTRUCTION_CACHE_LINE_SIZE - prompt "Instruction cache line size" - default ESP32S2_INSTRUCTION_CACHE_LINE_32B - help - Instruction cache line size to be set on application startup. - - config ESP32S2_INSTRUCTION_CACHE_LINE_16B - bool "16 Bytes" - config ESP32S2_INSTRUCTION_CACHE_LINE_32B - bool "32 Bytes" - endchoice - - choice ESP32S2_DATA_CACHE_SIZE - prompt "Data cache size" - default ESP32S2_DATA_CACHE_0KB if !ESP32S2_SPIRAM_SUPPORT - default ESP32S2_DATA_CACHE_8KB if ESP32S2_SPIRAM_SUPPORT - help - Data cache size to be set on application startup. - If you use 0KB data cache, the other 16KB will be added to the heap - If you use 8KB data cache rather than 16KB data cache, the other 8KB will be added to the heap - - config ESP32S2_DATA_CACHE_0KB - depends on !ESP32S2_SPIRAM_SUPPORT - bool "0KB" - config ESP32S2_DATA_CACHE_8KB - bool "8KB" - config ESP32S2_DATA_CACHE_16KB - bool "16KB" - endchoice - - choice ESP32S2_DATA_CACHE_LINE_SIZE - prompt "Data cache line size" - default ESP32S2_DATA_CACHE_LINE_32B - help - Data cache line size to be set on application startup. - - config ESP32S2_DATA_CACHE_LINE_16B - bool "16 Bytes" - config ESP32S2_DATA_CACHE_LINE_32B - bool "32 Bytes" - endchoice - - config ESP32S2_INSTRUCTION_CACHE_WRAP - bool "Enable instruction cache wrap" - default "n" - help - If enabled, instruction cache will use wrap mode to read spi flash (maybe spiram). - The wrap length equals to INSTRUCTION_CACHE_LINE_SIZE. - However, it depends on complex conditions. - - config ESP32S2_DATA_CACHE_WRAP - bool "Enable data cache wrap" - default "n" - help - If enabled, data cache will use wrap mode to read spiram (maybe spi flash). - The wrap length equals to DATA_CACHE_LINE_SIZE. - However, it depends on complex conditions. - - endmenu # Cache config - - # Note: to support SPIRAM across multiple chips, check CONFIG_SPIRAM - # instead - config ESP32S2_SPIRAM_SUPPORT - bool "Support for external, SPI-connected RAM" - default "n" - select SPIRAM - help - This enables support for an external SPI RAM chip, connected in parallel with the - main SPI flash chip. - - menu "SPI RAM config" - depends on ESP32S2_SPIRAM_SUPPORT - - config SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY - bool - default "y" - - config SPIRAM_MODE_QUAD - bool - default "y" - - choice SPIRAM_TYPE - prompt "Type of SPI RAM chip in use" - default SPIRAM_TYPE_AUTO - - config SPIRAM_TYPE_AUTO - bool "Auto-detect" - - config SPIRAM_TYPE_ESPPSRAM16 - bool "ESP-PSRAM16 or APS1604" - - config SPIRAM_TYPE_ESPPSRAM32 - bool "ESP-PSRAM32" - - config SPIRAM_TYPE_ESPPSRAM64 - bool "ESP-PSRAM64 or LY68L6400" - endchoice - - config SPIRAM_SIZE - int - default -1 if SPIRAM_TYPE_AUTO - default 2097152 if SPIRAM_TYPE_ESPPSRAM16 - default 4194304 if SPIRAM_TYPE_ESPPSRAM32 - default 8388608 if SPIRAM_TYPE_ESPPSRAM64 - default 0 - - menu "PSRAM clock and cs IO for ESP32S2" - depends on ESP32S2_SPIRAM_SUPPORT - config DEFAULT_PSRAM_CLK_IO - int "PSRAM CLK IO number" - range 0 33 - default 30 - help - The PSRAM CLOCK IO can be any unused GPIO, user can config it based on hardware design. - - config DEFAULT_PSRAM_CS_IO - int "PSRAM CS IO number" - range 0 33 - default 26 - help - The PSRAM CS IO can be any unused GPIO, user can config it based on hardware design. - endmenu - config SPIRAM_FETCH_INSTRUCTIONS - bool "Cache fetch instructions from SPI RAM" - default n - help - If enabled, instruction in flash will be copied into SPIRAM. - If SPIRAM_RODATA also enabled, - you can run the instruction when erasing or programming the flash. - - config SPIRAM_RODATA - bool "Cache load read only data from SPI RAM" - default n - help - If enabled, radata in flash will be copied into SPIRAM. - If SPIRAM_FETCH_INSTRUCTIONS also enabled, - you can run the instruction when erasing or programming the flash. - - choice SPIRAM_SPEED - prompt "Set RAM clock speed" - default SPIRAM_SPEED_40M - help - Select the speed for the SPI RAM chip. - - config SPIRAM_SPEED_80M - bool "80MHz clock speed" - config SPIRAM_SPEED_40M - bool "40Mhz clock speed" - config SPIRAM_SPEED_26M - bool "26Mhz clock speed" - config SPIRAM_SPEED_20M - bool "20Mhz clock speed" - endchoice - - config SPIRAM_SPEED - int - default 80 if SPIRAM_SPEED_80M - default 40 if SPIRAM_SPEED_40M - default 40 if SPIRAM_SPEED_26M - default 40 if SPIRAM_SPEED_20M - - source "$IDF_PATH/components/esp_hw_support/Kconfig.spiram.common" #insert non-chip-specific items here - - endmenu - - config ESP32S2_MEMMAP_TRACEMEM - bool - default "n" - - config ESP32S2_MEMMAP_TRACEMEM_TWOBANKS - bool - default "n" - - config ESP32S2_TRAX - bool "Use TRAX tracing feature" - default "n" - select ESP32S2_MEMMAP_TRACEMEM - help - The ESP32S2 contains a feature which allows you to trace the execution path the processor - has taken through the program. This is stored in a chunk of 32K (16K for single-processor) - of memory that can't be used for general purposes anymore. Disable this if you do not know - what this is. - - config ESP32S2_TRACEMEM_RESERVE_DRAM - hex - default 0x8000 if ESP32S2_MEMMAP_TRACEMEM && ESP32S2_MEMMAP_TRACEMEM_TWOBANKS - default 0x4000 if ESP32S2_MEMMAP_TRACEMEM && !ESP32S2_MEMMAP_TRACEMEM_TWOBANKS - default 0x0 - - config ESP32S2_KEEP_USB_ALIVE - bool "Keep USB peripheral enabled at start up" if !ESP_CONSOLE_USB_CDC - default y if ESP_CONSOLE_USB_CDC - help - During the application initialization process, all the peripherals except UARTs and timers - are reset. Enable this option to keep USB peripheral enabled. - This option is automatically enabled if "USB CDC" console is selected. - - config ESP32S2_RTCDATA_IN_FAST_MEM - bool "Place RTC_DATA_ATTR and RTC_RODATA_ATTR variables into RTC fast memory segment" - default n - help - This option allows to place .rtc_data and .rtc_rodata sections into - RTC fast memory segment to free the slow memory region for ULP programs. - - config ESP32S2_USE_FIXED_STATIC_RAM_SIZE - bool "Use fixed static RAM size" - default n - help - If this option is disabled, the DRAM part of the heap starts right after the .bss section, - within the dram0_0 region. As a result, adding or removing some static variables - will change the available heap size. - - If this option is enabled, the DRAM part of the heap starts right after the dram0_0 region, - where its length is set with ESP32S2_FIXED_STATIC_RAM_SIZE - - config ESP32S2_FIXED_STATIC_RAM_SIZE - hex "Fixed Static RAM size" - default 0x10000 - range 0 0x34000 - depends on ESP32S2_USE_FIXED_STATIC_RAM_SIZE - help - RAM size dedicated for static variables (.data & .bss sections). - -endmenu # ESP32S2-Specific diff --git a/components/esp32s3/Kconfig b/components/esp32s3/Kconfig deleted file mode 100644 index 8beba379c9..0000000000 --- a/components/esp32s3/Kconfig +++ /dev/null @@ -1,333 +0,0 @@ -menu "ESP32S3-Specific" - visible if IDF_TARGET_ESP32S3 - - menu "Cache config" - - choice ESP32S3_INSTRUCTION_CACHE_SIZE - prompt "Instruction cache size" - default ESP32S3_INSTRUCTION_CACHE_16KB - help - Instruction cache size to be set on application startup. - If you use 16KB instruction cache rather than 32KB instruction cache, - then the other 16KB will be managed by heap allocator. - - config ESP32S3_INSTRUCTION_CACHE_16KB - bool "16KB" - config ESP32S3_INSTRUCTION_CACHE_32KB - bool "32KB" - endchoice - - config ESP32S3_INSTRUCTION_CACHE_SIZE - hex - default 0x4000 if ESP32S3_INSTRUCTION_CACHE_16KB - default 0x8000 if ESP32S3_INSTRUCTION_CACHE_32KB - - choice ESP32S3_ICACHE_ASSOCIATED_WAYS - prompt "Instruction cache associated ways" - default ESP32S3_INSTRUCTION_CACHE_8WAYS - help - Instruction cache associated ways to be set on application startup. - - config ESP32S3_INSTRUCTION_CACHE_4WAYS - bool "4 ways" - config ESP32S3_INSTRUCTION_CACHE_8WAYS - bool "8 ways" - endchoice - - config ESP32S3_ICACHE_ASSOCIATED_WAYS - int - default 4 if ESP32S3_INSTRUCTION_CACHE_4WAYS - default 8 if ESP32S3_INSTRUCTION_CACHE_8WAYS - - choice ESP32S3_INSTRUCTION_CACHE_LINE_SIZE - prompt "Instruction cache line size" - default ESP32S3_INSTRUCTION_CACHE_LINE_32B - help - Instruction cache line size to be set on application startup. - - config ESP32S3_INSTRUCTION_CACHE_LINE_16B - bool "16 Bytes" - depends on ESP32S3_INSTRUCTION_CACHE_16KB - config ESP32S3_INSTRUCTION_CACHE_LINE_32B - bool "32 Bytes" - endchoice - - config ESP32S3_INSTRUCTION_CACHE_LINE_SIZE - int - default 16 if ESP32S3_INSTRUCTION_CACHE_LINE_16B - default 32 if ESP32S3_INSTRUCTION_CACHE_LINE_32B - - config ESP32S3_INSTRUCTION_CACHE_WRAP - bool ## TODO IDF-4307 - default "n" - depends on !SPIRAM_ECC_ENABLE - help - If enabled, instruction cache will use wrap mode to read spi flash or spi ram. - The wrap length equals to ESP32S3_INSTRUCTION_CACHE_LINE_SIZE. - However, it depends on complex conditions. - - choice ESP32S3_DATA_CACHE_SIZE - prompt "Data cache size" - default ESP32S3_DATA_CACHE_32KB - help - Data cache size to be set on application startup. - If you use 32KB data cache rather than 64KB data cache, - the other 32KB will be added to the heap. - - config ESP32S3_DATA_CACHE_16KB - bool "16KB" - config ESP32S3_DATA_CACHE_32KB - bool "32KB" - config ESP32S3_DATA_CACHE_64KB - bool "64KB" - endchoice - - config ESP32S3_DATA_CACHE_SIZE - hex - # For 16KB the actual configuration is 32kb cache, but 16kb will be reserved for heap at startup - default 0x8000 if ESP32S3_DATA_CACHE_16KB - default 0x8000 if ESP32S3_DATA_CACHE_32KB - default 0x10000 if ESP32S3_DATA_CACHE_64KB - - choice ESP32S3_DCACHE_ASSOCIATED_WAYS - prompt "Data cache associated ways" - default ESP32S3_DATA_CACHE_8WAYS - help - Data cache associated ways to be set on application startup. - - config ESP32S3_DATA_CACHE_4WAYS - bool "4 ways" - config ESP32S3_DATA_CACHE_8WAYS - bool "8 ways" - endchoice - - config ESP32S3_DCACHE_ASSOCIATED_WAYS - int - default 4 if ESP32S3_DATA_CACHE_4WAYS - default 8 if ESP32S3_DATA_CACHE_8WAYS - - choice ESP32S3_DATA_CACHE_LINE_SIZE - prompt "Data cache line size" - default ESP32S3_DATA_CACHE_LINE_32B - help - Data cache line size to be set on application startup. - - config ESP32S3_DATA_CACHE_LINE_16B - bool "16 Bytes" - depends on ESP32S3_DATA_CACHE_16KB || ESP32S3_DATA_CACHE_32KB - config ESP32S3_DATA_CACHE_LINE_32B - bool "32 Bytes" - config ESP32S3_DATA_CACHE_LINE_64B - bool "64 Bytes" - endchoice - - config ESP32S3_DATA_CACHE_LINE_SIZE - int - default 16 if ESP32S3_DATA_CACHE_LINE_16B - default 32 if ESP32S3_DATA_CACHE_LINE_32B - default 64 if ESP32S3_DATA_CACHE_LINE_64B - - config ESP32S3_DATA_CACHE_WRAP - bool ## TODO IDF-4307 - default "n" - depends on !SPIRAM_ECC_ENABLE - help - If enabled, data cache will use wrap mode to read spi flash or spi ram. - The wrap length equals to ESP32S3_DATA_CACHE_LINE_SIZE. - However, it depends on complex conditions. - - endmenu # Cache config - - # Hint: to support SPIRAM across multiple chips, check CONFIG_SPIRAM instead - config ESP32S3_SPIRAM_SUPPORT - bool "Support for external, SPI-connected RAM" - default "n" - select SPIRAM - help - This enables support for an external SPI RAM chip, connected in parallel with the - main SPI flash chip. - - menu "SPI RAM config" - depends on ESP32S3_SPIRAM_SUPPORT - - config SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY - bool - default "y" - - choice SPIRAM_MODE - prompt "Mode (QUAD/OCT) of SPI RAM chip in use" - default SPIRAM_MODE_QUAD - - config SPIRAM_MODE_QUAD - bool "Quad Mode PSRAM" - - config SPIRAM_MODE_OCT - bool "Octal Mode PSRAM" - endchoice - - choice SPIRAM_TYPE - prompt "Type of SPIRAM chip in use" - default SPIRAM_TYPE_AUTO - - config SPIRAM_TYPE_AUTO - bool "Auto-detect" - - config SPIRAM_TYPE_ESPPSRAM16 - bool "ESP-PSRAM16 or APS1604" - depends on SPIRAM_MODE_QUAD - - config SPIRAM_TYPE_ESPPSRAM32 - bool "ESP-PSRAM32" - depends on SPIRAM_MODE_QUAD - - config SPIRAM_TYPE_ESPPSRAM64 - bool "ESP-PSRAM64 , LY68L6400 or APS6408" - endchoice - - config SPIRAM_SIZE - int - default -1 if SPIRAM_TYPE_AUTO - default 2097152 if SPIRAM_TYPE_ESPPSRAM16 - default 4194304 if SPIRAM_TYPE_ESPPSRAM32 - default 8388608 if SPIRAM_TYPE_ESPPSRAM64 - default 16777216 if SPIRAM_TYPE_ESPPSRAM128 - default 33554432 if SPIRAM_TYPE_ESPPSRAM256 - default 0 - - menu "PSRAM Clock and CS IO for ESP32S3" - depends on ESP32S3_SPIRAM_SUPPORT - config DEFAULT_PSRAM_CLK_IO - int "PSRAM CLK IO number" - range 0 33 - default 30 - help - The PSRAM Clock IO can be any unused GPIO, please refer to your hardware design. - - config DEFAULT_PSRAM_CS_IO - int "PSRAM CS IO number" - range 0 33 - default 26 - help - The PSRAM CS IO can be any unused GPIO, please refer to your hardware design. - endmenu - config SPIRAM_FETCH_INSTRUCTIONS - bool "Cache fetch instructions from SPI RAM" - default n - help - If enabled, instruction in flash will be copied into SPIRAM. - If SPIRAM_RODATA also enabled, you can run the instruction when erasing or programming the flash. - - config SPIRAM_RODATA - bool "Cache load read only data from SPI RAM" - default n - help - If enabled, rodata in flash will be copied into SPIRAM. - If SPIRAM_FETCH_INSTRUCTIONS is also enabled, - you can run the instruction when erasing or programming the flash. - - choice SPIRAM_SPEED - prompt "Set RAM clock speed" - default SPIRAM_SPEED_40M - help - Select the speed for the SPI RAM chip. - - config SPIRAM_SPEED_120M - depends on SPIRAM_MODE_QUAD - bool "120MHz clock speed" - config SPIRAM_SPEED_80M - bool "80MHz clock speed" - config SPIRAM_SPEED_40M - bool "40Mhz clock speed" - endchoice - - config SPIRAM_SPEED - int - default 120 if SPIRAM_SPEED_120M - default 80 if SPIRAM_SPEED_80M - default 40 if SPIRAM_SPEED_40M - - source "$IDF_PATH/components/esp_hw_support/Kconfig.spiram.common" # insert non-chip-specific items here - - endmenu - - config ESP32S3_MEMMAP_TRACEMEM - bool - default "n" - - config ESP32S3_MEMMAP_TRACEMEM_TWOBANKS - bool - default "n" - - config ESP32S3_TRAX - bool "Use TRAX tracing feature" - default "n" - select ESP32S3_MEMMAP_TRACEMEM - help - The esp32-s3 contains a feature which allows you to trace the execution path the processor - has taken through the program. This is stored in a chunk of 32K (16K for single-processor) - of memory that can't be used for general purposes anymore. Disable this if you do not know - what this is. - - config ESP32S3_TRAX_TWOBANKS - bool "Reserve memory for tracing both pro as well as app cpu execution" - default "n" - depends on ESP32S3_TRAX && !FREERTOS_UNICORE - select ESP32S3_MEMMAP_TRACEMEM_TWOBANKS - help - The esp32-s3 contains a feature which allows you to trace the execution path the processor - has taken through the program. This is stored in a chunk of 32K (16K for single-processor) - of memory that can't be used for general purposes anymore. Disable this if you do not know - what this is. - - config ESP32S3_TRACEMEM_RESERVE_DRAM - hex - default 0x8000 if ESP32S3_MEMMAP_TRACEMEM && ESP32S3_MEMMAP_TRACEMEM_TWOBANKS - default 0x4000 if ESP32S3_MEMMAP_TRACEMEM && !ESP32S3_MEMMAP_TRACEMEM_TWOBANKS - default 0x0 - - - config ESP32S3_DEEP_SLEEP_WAKEUP_DELAY - int "Extra delay in deep sleep wake stub (in us)" - default 2000 - range 0 5000 - help - When ESP32S3 exits deep sleep, the CPU and the flash chip are powered on - at the same time. CPU will run deep sleep stub first, and then - proceed to load code from flash. Some flash chips need sufficient - time to pass between power on and first read operation. By default, - without any extra delay, this time is approximately 900us, although - some flash chip types need more than that. - - By default extra delay is set to 2000us. When optimizing startup time - for applications which require it, this value may be reduced. - - If you are seeing "flash read err, 1000" message printed to the - console after deep sleep reset, try increasing this value. - - config ESP32S3_RTCDATA_IN_FAST_MEM - bool "Place RTC_DATA_ATTR and RTC_RODATA_ATTR variables into RTC fast memory segment" - default n - help - This option allows to place .rtc_data and .rtc_rodata sections into - RTC fast memory segment to free the slow memory region for ULP programs. - - config ESP32S3_USE_FIXED_STATIC_RAM_SIZE - bool "Use fixed static RAM size" - default n - help - If this option is disabled, the DRAM part of the heap starts right after the .bss section, - within the dram0_0 region. As a result, adding or removing some static variables - will change the available heap size. - - If this option is enabled, the DRAM part of the heap starts right after the dram0_0 region, - where its length is set with ESP32S3_FIXED_STATIC_RAM_SIZE - - config ESP32S3_FIXED_STATIC_RAM_SIZE - hex "Fixed Static RAM size" - default 0x10000 - range 0 0x34000 - depends on ESP32S3_USE_FIXED_STATIC_RAM_SIZE - help - RAM size dedicated for static variables (.data & .bss sections). - -endmenu # ESP32S3-Specific diff --git a/components/esp_hw_support/Kconfig b/components/esp_hw_support/Kconfig index 4341c4d166..f966c05d1c 100644 --- a/components/esp_hw_support/Kconfig +++ b/components/esp_hw_support/Kconfig @@ -1,4 +1,6 @@ menu "Hardware Settings" + orsource "./port/$IDF_TARGET/Kconfig.spiram" + menu "MAC Config" config ESP_MAC_ADDR_UNIVERSE_WIFI_STA bool @@ -69,6 +71,26 @@ menu "Hardware Settings" increase during light sleep. If the CS pin of Flash has an external pull-up, you do not need to select this option, otherwise, you should enable this option. + + config ESP_SLEEP_DEEP_SLEEP_WAKEUP_DELAY + int "Extra delay in deep sleep wake stub (in us)" + depends on IDF_TARGET_ESP32 || IDF_TARGET_ESP32S3 + default 2000 + range 0 5000 + help + When the chip exits deep sleep, the CPU and the flash chip are powered on + at the same time. CPU will run deep sleep stub first, and then + proceed to load code from flash. Some flash chips need sufficient + time to pass between power on and first read operation. By default, + without any extra delay, this time is approximately 900us, although + some flash chip types need more than that. + + By default extra delay is set to 2000us. When optimizing startup time + for applications which require it, this value may be reduced. + + If you are seeing "flash read err, 1000" message printed to the + console after deep sleep reset, try increasing this value. + endmenu menu "RTC Clock Config" diff --git a/components/esp_hw_support/Kconfig.spiram.common b/components/esp_hw_support/Kconfig.spiram.common index 89b10e1397..759c1334d8 100644 --- a/components/esp_hw_support/Kconfig.spiram.common +++ b/components/esp_hw_support/Kconfig.spiram.common @@ -1,10 +1,6 @@ # Common (non-chip-specific) SPIRAM options # -# sourced into the "SPIRAM config" submenu for ESP32 or ESP32S2 - -# invisible option selected by ${target}_SPIRAM_SUPPORT -config SPIRAM - bool +# sourced into the "SPIRAM config" submenu for a specific chip. config SPIRAM_BOOT_INIT bool "Initialize SPI RAM during startup" diff --git a/components/esp_hw_support/include/spinlock.h b/components/esp_hw_support/include/spinlock.h index 7c7aee48df..50ac792cb1 100644 --- a/components/esp_hw_support/include/spinlock.h +++ b/components/esp_hw_support/include/spinlock.h @@ -37,7 +37,7 @@ typedef struct { NEED_VOLATILE_MUX uint32_t count; }spinlock_t; -#if (CONFIG_ESP32_SPIRAM_SUPPORT) +#if (CONFIG_SPIRAM && CONFIG_IDF_TARGET_ESP32) /** * @brief Check if the pointer is on external ram * @param p pointer @@ -108,13 +108,13 @@ static inline bool __attribute__((always_inline)) spinlock_acquire(spinlock_t *l */ result = core_id; -#if defined(CONFIG_ESP32_SPIRAM_SUPPORT) +#if (CONFIG_SPIRAM && CONFIG_IDF_TARGET_ESP32) if (spinlock_ptr_external_ram(lock)) { compare_and_set_extram(&lock->owner, SPINLOCK_FREE, &result); } else { #endif compare_and_set_native(&lock->owner, SPINLOCK_FREE, &result); -#if defined(CONFIG_ESP32_SPIRAM_SUPPORT) +#if (CONFIG_SPIRAM && CONFIG_IDF_TARGET_ESP32) } #endif if(result != other_core_id) { diff --git a/components/esp_hw_support/port/esp32/Kconfig.hw_support b/components/esp_hw_support/port/esp32/Kconfig.hw_support index a56864c0be..e08fe92dbb 100644 --- a/components/esp_hw_support/port/esp32/Kconfig.hw_support +++ b/components/esp_hw_support/port/esp32/Kconfig.hw_support @@ -22,3 +22,44 @@ config ESP32_REV_MIN default 1 if ESP32_REV_MIN_1 default 2 if ESP32_REV_MIN_2 default 3 if ESP32_REV_MIN_3 + +config ESP32_DPORT_WORKAROUND + bool + default "y" if !FREERTOS_UNICORE && ESP32_REV_MIN < 2 + +config ESP32_DPORT_DIS_INTERRUPT_LVL + int "Disable the interrupt level for the DPORT workarounds" + default 5 + help + To prevent interrupting DPORT workarounds, + need to disable interrupt with a maximum used level in the system. + +choice ESP32_XTAL_FREQ_SEL + prompt "Main XTAL frequency" + default ESP32_XTAL_FREQ_40 + help + ESP32 currently supports the following XTAL frequencies: + + - 26 MHz + - 40 MHz + + Startup code can automatically estimate XTAL frequency. This feature + uses the internal 8MHz oscillator as a reference. Because the internal + oscillator frequency is temperature dependent, it is not recommended + to use automatic XTAL frequency detection in applications which need + to work at high ambient temperatures and use high-temperature + qualified chips and modules. + config ESP32_XTAL_FREQ_40 + bool "40 MHz" + config ESP32_XTAL_FREQ_26 + bool "26 MHz" + config ESP32_XTAL_FREQ_AUTO + bool "Autodetect" +endchoice + +# Keep these values in sync with rtc_xtal_freq_t enum in soc/rtc.h +config ESP32_XTAL_FREQ + int + default 0 if ESP32_XTAL_FREQ_AUTO + default 40 if ESP32_XTAL_FREQ_40 + default 26 if ESP32_XTAL_FREQ_26 diff --git a/components/esp_hw_support/port/esp32/Kconfig.spiram b/components/esp_hw_support/port/esp32/Kconfig.spiram new file mode 100644 index 0000000000..f02d15e0e5 --- /dev/null +++ b/components/esp_hw_support/port/esp32/Kconfig.spiram @@ -0,0 +1,401 @@ +config SPIRAM + bool "Support for external, SPI-connected RAM" + default "n" + help + This enables support for an external SPI RAM chip, connected in parallel with the + main SPI flash chip. + +menu "SPI RAM config" + depends on SPIRAM + + config SPIRAM_MODE_QUAD + bool + default "y" + + choice SPIRAM_TYPE + prompt "Type of SPI RAM chip in use" + default SPIRAM_TYPE_AUTO + + config SPIRAM_TYPE_AUTO + bool "Auto-detect" + + config SPIRAM_TYPE_ESPPSRAM16 + bool "ESP-PSRAM16 or APS1604" + + config SPIRAM_TYPE_ESPPSRAM32 + bool "ESP-PSRAM32" + + config SPIRAM_TYPE_ESPPSRAM64 + bool "ESP-PSRAM64 or LY68L6400" + + endchoice + + config SPIRAM_SIZE + int + default -1 if SPIRAM_TYPE_AUTO + default 2097152 if SPIRAM_TYPE_ESPPSRAM16 + default 4194304 if SPIRAM_TYPE_ESPPSRAM32 + default 8388608 if SPIRAM_TYPE_ESPPSRAM64 + default 0 + + choice SPIRAM_SPEED + prompt "Set RAM clock speed" + default SPIRAM_SPEED_40M + help + Select the speed for the SPI RAM chip. + If SPI RAM is enabled, we only support three combinations of SPI speed mode we supported now: + + 1. Flash SPI running at 40Mhz and RAM SPI running at 40Mhz + 2. Flash SPI running at 80Mhz and RAM SPI running at 40Mhz + 3. Flash SPI running at 80Mhz and RAM SPI running at 80Mhz + + Note: If the third mode(80Mhz+80Mhz) is enabled for SPI RAM of type 32MBit, one of the HSPI/VSPI host + will be occupied by the system. Which SPI host to use can be selected by the config item + SPIRAM_OCCUPY_SPI_HOST. Application code should never touch HSPI/VSPI hardware in this case. The + option to select 80MHz will only be visible if the flash SPI speed is also 80MHz. + (ESPTOOLPY_FLASHFREQ_80M is true) + + config SPIRAM_SPEED_40M + bool "40MHz clock speed" + config SPIRAM_SPEED_80M + depends on ESPTOOLPY_FLASHFREQ_80M + bool "80MHz clock speed" + endchoice + + # insert non-chip-specific items here + source "$IDF_PATH/components/esp_hw_support/Kconfig.spiram.common" + + config SPIRAM_CACHE_WORKAROUND + bool "Enable workaround for bug in SPI RAM cache for Rev1 ESP32s" + depends on (SPIRAM_USE_MEMMAP || SPIRAM_USE_CAPS_ALLOC || SPIRAM_USE_MALLOC) && (ESP32_REV_MIN < 3) + default "y" + help + Revision 1 of the ESP32 has a bug that can cause a write to PSRAM not to take place in some situations + when the cache line needs to be fetched from external RAM and an interrupt occurs. This enables a + fix in the compiler (-mfix-esp32-psram-cache-issue) that makes sure the specific code that is + vulnerable to this will not be emitted. + + This will also not use any bits of newlib that are located in ROM, opting for a version that is + compiled with the workaround and located in flash instead. + + The workaround is not required for ESP32 revision 3 and above. + + menu "SPIRAM cache workaround debugging" + + choice SPIRAM_CACHE_WORKAROUND_STRATEGY + prompt "Workaround strategy" + depends on SPIRAM_CACHE_WORKAROUND + default SPIRAM_CACHE_WORKAROUND_STRATEGY_MEMW + help + Select the workaround strategy. Note that the strategy for precompiled + libraries (libgcc, newlib, bt, wifi) is not affected by this selection. + + Unless you know you need a different strategy, it's suggested you stay + with the default MEMW strategy. Note that DUPLDST can interfere with hardware + encryption and this will be automatically disabled if this workaround is selected. + 'Insert nops' is the workaround that was used in older esp-idf versions. This workaround + still can cause faulty data transfers from/to SPI RAM in some situation. + + config SPIRAM_CACHE_WORKAROUND_STRATEGY_MEMW + bool "Insert memw after vulnerable instructions (default)" + + config SPIRAM_CACHE_WORKAROUND_STRATEGY_DUPLDST + bool "Duplicate LD/ST for 32-bit, memw for 8/16 bit" + + config SPIRAM_CACHE_WORKAROUND_STRATEGY_NOPS + bool "Insert nops between vulnerable loads/stores (old strategy, obsolete)" + endchoice + + #This needs to be Y only for the dupldst workaround + config SPIRAM_WORKAROUND_NEED_VOLATILE_SPINLOCK + bool + default "y" if SPIRAM_CACHE_WORKAROUND_STRATEGY_DUPLDST + endmenu + + menu "SPIRAM workaround libraries placement" + visible if SPIRAM_CACHE_WORKAROUND + + config SPIRAM_CACHE_LIBJMP_IN_IRAM + bool "Put libc's jump related functions in IRAM" + depends on SPIRAM_CACHE_WORKAROUND + default "y" + help + The functions affected by this option are: longjmp and setjmp. + Putting these function in IRAM will allow them to be called when flash cache is disabled + but it will also reduce the available size of free IRAM for the user application. + + config SPIRAM_CACHE_LIBMATH_IN_IRAM + bool "Put libc's math related functions in IRAM" + depends on SPIRAM_CACHE_WORKAROUND + default "y" + help + The functions affected by this option are: abs, div, labs, ldiv, quorem, fpclassify, + and nan. + Putting these function in IRAM will allow them to be called when flash cache is disabled + but it will also reduce the available size of free IRAM for the user application. + + config SPIRAM_CACHE_LIBNUMPARSER_IN_IRAM + bool "Put libc's number parsing related functions in IRAM" + depends on SPIRAM_CACHE_WORKAROUND + default "y" + help + The functions affected by this option are: utoa, itoa, atoi, atol, strtol, and strtoul. + Putting these function in IRAM will allow them to be called when flash cache is disabled + but it will also reduce the available size of free IRAM for the user application. + + config SPIRAM_CACHE_LIBIO_IN_IRAM + bool "Put libc's I/O related functions in IRAM" + depends on SPIRAM_CACHE_WORKAROUND + default "y" + help + The functions affected by this option are: wcrtomb, fvwrite, wbuf, wsetup, fputwc, wctomb_r, + ungetc, makebuf, fflush, refill, and sccl. + Putting these function in IRAM will allow them to be called when flash cache is disabled + but it will also reduce the available size of free IRAM for the user application. + + config SPIRAM_CACHE_LIBTIME_IN_IRAM + bool "Put libc's time related functions in IRAM" + depends on SPIRAM_CACHE_WORKAROUND + default "y" + help + The functions affected by this option are: asctime, asctime_r, ctime, ctime_r, lcltime, lcltime_r, + gmtime, gmtime_r, strftime, mktime, tzset_r, tzset, time, gettzinfo, systimes, month_lengths, + timelocal, tzvars, tzlock, tzcalc_limits, and strptime. + Putting these function in IRAM will allow them to be called when flash cache is disabled + but it will also reduce the available size of free IRAM for the user application. + + config SPIRAM_CACHE_LIBCHAR_IN_IRAM + bool "Put libc's characters related functions in IRAM" + depends on SPIRAM_CACHE_WORKAROUND + default "y" + help + The functions affected by this option are: ctype_, toupper, tolower, toascii, strupr, bzero, + isalnum, isalpha, isascii, isblank, iscntrl, isdigit, isgraph, islower, isprint, ispunct, + isspace, and isupper. + Putting these function in IRAM will allow them to be called when flash cache is disabled + but it will also reduce the available size of free IRAM for the user application. + + config SPIRAM_CACHE_LIBMEM_IN_IRAM + bool "Put libc's memory related functions in IRAM" + depends on SPIRAM_CACHE_WORKAROUND + default "y" + help + The functions affected by this option are: memccpy, memchr memmove, and memrchr. + Putting these function in IRAM will allow them to be called when flash cache is disabled + but it will also reduce the available size of free IRAM for the user application. + + config SPIRAM_CACHE_LIBSTR_IN_IRAM + bool "Put libc's string related functions in IRAM" + depends on SPIRAM_CACHE_WORKAROUND + default "y" + help + The functions affected by this option are: strcasecmp, strcasestr, strchr, strcoll, + strcpy, strcspn, strdup, strdup_r, strlcat, strlcpy, strlen, strlwr, strncasecmp, + strncat, strncmp, strncpy, strndup, strndup_r, strrchr, strsep, strspn, strstr, + strtok_r, and strupr. + Putting these function in IRAM will allow them to be called when flash cache is disabled + but it will also reduce the available size of free IRAM for the user application. + + config SPIRAM_CACHE_LIBRAND_IN_IRAM + bool "Put libc's random related functions in IRAM" + depends on SPIRAM_CACHE_WORKAROUND + default "y" + help + The functions affected by this option are: srand, rand, and rand_r. + Putting these function in IRAM will allow them to be called when flash cache is disabled + but it will also reduce the available size of free IRAM for the user application. + + config SPIRAM_CACHE_LIBENV_IN_IRAM + bool "Put libc's environment related functions in IRAM" + depends on SPIRAM_CACHE_WORKAROUND + default "y" + help + The functions affected by this option are: environ, envlock, and getenv_r. + Putting these function in IRAM will allow them to be called when flash cache is disabled + but it will also reduce the available size of free IRAM for the user application. + + config SPIRAM_CACHE_LIBFILE_IN_IRAM + bool "Put libc's file related functions in IRAM" + depends on SPIRAM_CACHE_WORKAROUND + default "y" + help + The functions affected by this option are: lock, isatty, fclose, open, close, creat, read, + rshift, sbrk, stdio, syssbrk, sysclose, sysopen, creat, sysread, syswrite, impure, fwalk, + and findfp. + Putting these function in IRAM will allow them to be called when flash cache is disabled + but it will also reduce the available size of free IRAM for the user application. + + config SPIRAM_CACHE_LIBMISC_IN_IRAM + bool "Put libc's miscellaneous functions in IRAM, see help" + depends on SPIRAM_CACHE_WORKAROUND + default "y" + help + The functions affected by this option are: raise and system + Putting these function in IRAM will allow them to be called when flash cache is disabled + but it will also reduce the available size of free IRAM for the user application. + endmenu + + config SPIRAM_BANKSWITCH_ENABLE + bool "Enable bank switching for >4MiB external RAM" + default y + depends on SPIRAM_USE_MEMMAP || SPIRAM_USE_CAPS_ALLOC || SPIRAM_USE_MALLOC + help + The ESP32 only supports 4MiB of external RAM in its address space. The hardware does support larger + memories, but these have to be bank-switched in and out of this address space. Enabling this allows you + to reserve some MMU pages for this, which allows the use of the esp_himem api to manage these banks. + + #Note that this is limited to 62 banks, as esp_spiram_writeback_cache needs some kind of mapping of + #some banks below that mark to work. We cannot at this moment guarantee this to exist when himem is + #enabled. + + If spiram 2T mode is enabled, the size of 64Mbit psram will be changed as 32Mbit, so himem will be + unusable. + config SPIRAM_BANKSWITCH_RESERVE + int "Amount of 32K pages to reserve for bank switching" + depends on SPIRAM_BANKSWITCH_ENABLE + default 8 + range 1 62 + help + Select the amount of banks reserved for bank switching. Note that the amount of RAM allocatable with + malloc/esp_heap_alloc_caps will decrease by 32K for each page reserved here. + + Note that this reservation is only actually done if your program actually uses the himem API. Without + any himem calls, the reservation is not done and the original amount of memory will be available + to malloc/esp_heap_alloc_caps. + + config SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY + bool "Allow external memory as an argument to xTaskCreateStatic" + default n + depends on SPIRAM_USE_MALLOC + help + Because some bits of the ESP32 code environment cannot be recompiled with the cache workaround, + normally tasks cannot be safely run with their stack residing in external memory; for this reason + xTaskCreate (and related task creaton functions) always allocate stack in internal memory and + xTaskCreateStatic will check if the memory passed to it is in internal memory. If you have a task that + needs a large amount of stack and does not call on ROM code in any way (no direct calls, but also no + Bluetooth/WiFi), you can try enable this to cause xTaskCreateStatic to allow tasks stack in external + memory. + + choice SPIRAM_OCCUPY_SPI_HOST + prompt "SPI host to use for 32MBit PSRAM" + default SPIRAM_OCCUPY_VSPI_HOST + depends on SPIRAM_SPEED_80M + help + When both flash and PSRAM is working under 80MHz, and the PSRAM is of type 32MBit, one of the HSPI/VSPI + host will be used to output the clock. Select which one to use here. + + config SPIRAM_OCCUPY_HSPI_HOST + bool "HSPI host (SPI2)" + config SPIRAM_OCCUPY_VSPI_HOST + bool "VSPI host (SPI3)" + config SPIRAM_OCCUPY_NO_HOST + bool "Will not try to use any host, will abort if not able to use the PSRAM" + + endchoice + + menu "PSRAM clock and cs IO for ESP32-DOWD" + + config D0WD_PSRAM_CLK_IO + int "PSRAM CLK IO number" + depends on SPIRAM + range 0 33 + default 17 + help + The PSRAM CLOCK IO can be any unused GPIO, user can config it based on hardware design. If user use + 1.8V flash and 1.8V psram, this value can only be one of 6, 7, 8, 9, 10, 11, 16, 17. + + config D0WD_PSRAM_CS_IO + int "PSRAM CS IO number" + depends on SPIRAM + range 0 33 + default 16 + help + The PSRAM CS IO can be any unused GPIO, user can config it based on hardware design. If user use + 1.8V flash and 1.8V psram, this value can only be one of 6, 7, 8, 9, 10, 11, 16, 17. + endmenu + + menu "PSRAM clock and cs IO for ESP32-D2WD" + + config D2WD_PSRAM_CLK_IO + int "PSRAM CLK IO number" + depends on SPIRAM + range 0 33 + default 9 + help + User can config it based on hardware design. For ESP32-D2WD chip, the psram can only be 1.8V psram, + so this value can only be one of 6, 7, 8, 9, 10, 11, 16, 17. + + config D2WD_PSRAM_CS_IO + int "PSRAM CS IO number" + depends on SPIRAM + range 0 33 + default 10 + help + User can config it based on hardware design. For ESP32-D2WD chip, the psram can only be 1.8V psram, + so this value can only be one of 6, 7, 8, 9, 10, 11, 16, 17. + endmenu + + menu "PSRAM clock and cs IO for ESP32-PICO" + + config PICO_PSRAM_CS_IO + int "PSRAM CS IO number" + depends on SPIRAM + range 0 33 + default 10 + help + The PSRAM CS IO can be any unused GPIO, user can config it based on hardware design. + + For ESP32-PICO chip, the psram share clock with flash, so user do not need to configure the clock + IO. + For the reference hardware design, please refer to + https://www.espressif.com/sites/default/files/documentation/esp32-pico-d4_datasheet_en.pdf + + endmenu + + config SPIRAM_CUSTOM_SPIWP_SD3_PIN + bool "Use custom SPI PSRAM WP(SD3) Pin when flash pins set in eFuse (read help)" + depends on IDF_TARGET_ESP32 && (ESPTOOLPY_FLASHMODE_DIO || ESPTOOLPY_FLASHMODE_DOUT) + default y if SPIRAM_SPIWP_SD3_PIN != 7 # backwards compatibility, can remove in IDF 5 + default n + help + This setting is only used if the SPI flash pins have been overridden by setting the eFuses + SPI_PAD_CONFIG_xxx, and the SPI flash mode is DIO or DOUT. + + When this is the case, the eFuse config only defines 3 of the 4 Quad I/O data pins. The WP pin (aka + ESP32 pin "SD_DATA_3" or SPI flash pin "IO2") is not specified in eFuse. The psram only has QPI + mode, so a WP pin setting is necessary. + + If this config item is set to N (default), the correct WP pin will be automatically used for any + Espressif chip or module with integrated flash. If a custom setting is needed, set this config item + to Y and specify the GPIO number connected to the WP pin. + + When flash mode is set to QIO or QOUT, the PSRAM WP pin will be set the same as the SPI Flash WP pin + configured in the bootloader. + + config SPIRAM_SPIWP_SD3_PIN + int "Custom SPI PSRAM WP(SD3) Pin" + depends on IDF_TARGET_ESP32 && (ESPTOOLPY_FLASHMODE_DIO || ESPTOOLPY_FLASHMODE_DOUT) + #depends on SPIRAM_CUSTOM_SPIWP_SD3_PIN # backwards compatibility, can uncomment in IDF 5 + range 0 33 + default 7 + help + The option "Use custom SPI PSRAM WP(SD3) pin" must be set or this value is ignored + + If burning a customized set of SPI flash pins in eFuse and using DIO or DOUT mode for flash, set this + value to the GPIO number of the SPIRAM WP pin. + + config SPIRAM_2T_MODE + bool "Enable SPI PSRAM 2T mode" + depends on SPIRAM + default "n" + help + Enable this option to fix single bit errors inside 64Mbit PSRAM. + + Some 64Mbit PSRAM chips have a hardware issue in the RAM which causes bit errors at multiple + fixed bit positions. + + Note: If this option is enabled, the 64Mbit PSRAM chip will appear to be 32Mbit in size. + Applications will not be affected unless the use the esp_himem APIs, which are not supported + in 2T mode. + +endmenu # "SPI RAM config" diff --git a/components/esp_hw_support/port/esp32s2/Kconfig.spiram b/components/esp_hw_support/port/esp32s2/Kconfig.spiram new file mode 100644 index 0000000000..8cedd4b2ac --- /dev/null +++ b/components/esp_hw_support/port/esp32s2/Kconfig.spiram @@ -0,0 +1,101 @@ +config SPIRAM + bool "Support for external, SPI-connected RAM" + default "n" + help + This enables support for an external SPI RAM chip, connected in parallel with the + main SPI flash chip. + +menu "SPI RAM config" + depends on SPIRAM + + config SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY + bool + default "y" + + config SPIRAM_MODE_QUAD + bool + default "y" + + choice SPIRAM_TYPE + prompt "Type of SPI RAM chip in use" + default SPIRAM_TYPE_AUTO + + config SPIRAM_TYPE_AUTO + bool "Auto-detect" + + config SPIRAM_TYPE_ESPPSRAM16 + bool "ESP-PSRAM16 or APS1604" + + config SPIRAM_TYPE_ESPPSRAM32 + bool "ESP-PSRAM32" + + config SPIRAM_TYPE_ESPPSRAM64 + bool "ESP-PSRAM64 or LY68L6400" + endchoice + + config SPIRAM_SIZE + int + default -1 if SPIRAM_TYPE_AUTO + default 2097152 if SPIRAM_TYPE_ESPPSRAM16 + default 4194304 if SPIRAM_TYPE_ESPPSRAM32 + default 8388608 if SPIRAM_TYPE_ESPPSRAM64 + default 0 + + menu "PSRAM clock and cs IO for ESP32S2" + depends on SPIRAM + config DEFAULT_PSRAM_CLK_IO + int "PSRAM CLK IO number" + range 0 33 + default 30 + help + The PSRAM CLOCK IO can be any unused GPIO, user can config it based on hardware design. + + config DEFAULT_PSRAM_CS_IO + int "PSRAM CS IO number" + range 0 33 + default 26 + help + The PSRAM CS IO can be any unused GPIO, user can config it based on hardware design. + endmenu + config SPIRAM_FETCH_INSTRUCTIONS + bool "Cache fetch instructions from SPI RAM" + default n + help + If enabled, instruction in flash will be copied into SPIRAM. + If SPIRAM_RODATA also enabled, + you can run the instruction when erasing or programming the flash. + + config SPIRAM_RODATA + bool "Cache load read only data from SPI RAM" + default n + help + If enabled, radata in flash will be copied into SPIRAM. + If SPIRAM_FETCH_INSTRUCTIONS also enabled, + you can run the instruction when erasing or programming the flash. + + choice SPIRAM_SPEED + prompt "Set RAM clock speed" + default SPIRAM_SPEED_40M + help + Select the speed for the SPI RAM chip. + + config SPIRAM_SPEED_80M + bool "80MHz clock speed" + config SPIRAM_SPEED_40M + bool "40Mhz clock speed" + config SPIRAM_SPEED_26M + bool "26Mhz clock speed" + config SPIRAM_SPEED_20M + bool "20Mhz clock speed" + endchoice + + config SPIRAM_SPEED + int + default 80 if SPIRAM_SPEED_80M + default 40 if SPIRAM_SPEED_40M + default 40 if SPIRAM_SPEED_26M + default 40 if SPIRAM_SPEED_20M + + source "$IDF_PATH/components/esp_hw_support/Kconfig.spiram.common" #insert non-chip-specific items here + +endmenu diff --git a/components/esp_hw_support/port/esp32s3/Kconfig.spiram b/components/esp_hw_support/port/esp32s3/Kconfig.spiram new file mode 100644 index 0000000000..f43c97094e --- /dev/null +++ b/components/esp_hw_support/port/esp32s3/Kconfig.spiram @@ -0,0 +1,109 @@ +config SPIRAM + bool "Support for external, SPI-connected RAM" + default "n" + help + This enables support for an external SPI RAM chip, connected in parallel with the + main SPI flash chip. + +menu "SPI RAM config" + depends on SPIRAM + + config SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY + bool + default "y" + + choice SPIRAM_MODE + prompt "Mode (QUAD/OCT) of SPI RAM chip in use" + default SPIRAM_MODE_QUAD + + config SPIRAM_MODE_QUAD + bool "Quad Mode PSRAM" + + config SPIRAM_MODE_OCT + bool "Octal Mode PSRAM" + endchoice + + choice SPIRAM_TYPE + prompt "Type of SPIRAM chip in use" + default SPIRAM_TYPE_AUTO + + config SPIRAM_TYPE_AUTO + bool "Auto-detect" + + config SPIRAM_TYPE_ESPPSRAM16 + bool "ESP-PSRAM16 or APS1604" + depends on SPIRAM_MODE_QUAD + + config SPIRAM_TYPE_ESPPSRAM32 + bool "ESP-PSRAM32" + depends on SPIRAM_MODE_QUAD + + config SPIRAM_TYPE_ESPPSRAM64 + bool "ESP-PSRAM64 , LY68L6400 or APS6408" + endchoice + + config SPIRAM_SIZE + int + default -1 if SPIRAM_TYPE_AUTO + default 2097152 if SPIRAM_TYPE_ESPPSRAM16 + default 4194304 if SPIRAM_TYPE_ESPPSRAM32 + default 8388608 if SPIRAM_TYPE_ESPPSRAM64 + default 16777216 if SPIRAM_TYPE_ESPPSRAM128 + default 33554432 if SPIRAM_TYPE_ESPPSRAM256 + default 0 + + menu "PSRAM Clock and CS IO for ESP32S3" + depends on SPIRAM + config DEFAULT_PSRAM_CLK_IO + int "PSRAM CLK IO number" + range 0 33 + default 30 + help + The PSRAM Clock IO can be any unused GPIO, please refer to your hardware design. + + config DEFAULT_PSRAM_CS_IO + int "PSRAM CS IO number" + range 0 33 + default 26 + help + The PSRAM CS IO can be any unused GPIO, please refer to your hardware design. + endmenu + config SPIRAM_FETCH_INSTRUCTIONS + bool "Cache fetch instructions from SPI RAM" + default n + help + If enabled, instruction in flash will be copied into SPIRAM. + If SPIRAM_RODATA also enabled, you can run the instruction when erasing or programming the flash. + + config SPIRAM_RODATA + bool "Cache load read only data from SPI RAM" + default n + help + If enabled, rodata in flash will be copied into SPIRAM. + If SPIRAM_FETCH_INSTRUCTIONS is also enabled, + you can run the instruction when erasing or programming the flash. + + choice SPIRAM_SPEED + prompt "Set RAM clock speed" + default SPIRAM_SPEED_40M + help + Select the speed for the SPI RAM chip. + + config SPIRAM_SPEED_120M + depends on SPIRAM_MODE_QUAD + bool "120MHz clock speed" + config SPIRAM_SPEED_80M + bool "80MHz clock speed" + config SPIRAM_SPEED_40M + bool "40Mhz clock speed" + endchoice + + config SPIRAM_SPEED + int + default 120 if SPIRAM_SPEED_120M + default 80 if SPIRAM_SPEED_80M + default 40 if SPIRAM_SPEED_40M + + source "$IDF_PATH/components/esp_hw_support/Kconfig.spiram.common" # insert non-chip-specific items here + +endmenu diff --git a/components/esp_hw_support/sdkconfig.rename.esp32 b/components/esp_hw_support/sdkconfig.rename.esp32 index 4e4cafe94e..f3ce5c9eaf 100644 --- a/components/esp_hw_support/sdkconfig.rename.esp32 +++ b/components/esp_hw_support/sdkconfig.rename.esp32 @@ -16,3 +16,9 @@ CONFIG_ESP32_RTC_CLOCK_SOURCE_INTERNAL_RC CONFIG_RTC_CLK_SRC_INT_R CONFIG_ESP32_RTC_CLOCK_SOURCE_EXTERNAL_CRYSTAL CONFIG_RTC_CLK_SRC_EXT_CRYS CONFIG_ESP32_RTC_CLOCK_SOURCE_EXTERNAL_OSC CONFIG_RTC_CLK_SRC_EXT_OSC CONFIG_ESP32_RTC_CLOCK_SOURCE_INTERNAL_8MD256 CONFIG_RTC_CLK_SRC_INT_8MD256 + +CONFIG_SPIRAM_SUPPORT CONFIG_SPIRAM +CONFIG_ESP32_SPIRAM_SUPPORT CONFIG_SPIRAM +CONFIG_WIFI_LWIP_ALLOCATION_FROM_SPIRAM_FIRST CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP + +CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY CONFIG_ESP_SLEEP_DEEP_SLEEP_WAKEUP_DELAY diff --git a/components/esp_hw_support/sdkconfig.rename.esp32s2 b/components/esp_hw_support/sdkconfig.rename.esp32s2 index 8d5dbd3d0e..78fb88d9ab 100644 --- a/components/esp_hw_support/sdkconfig.rename.esp32s2 +++ b/components/esp_hw_support/sdkconfig.rename.esp32s2 @@ -7,3 +7,5 @@ CONFIG_ESP32S2_RTC_CLK_SRC_EXT_OSC CONFIG_RTC_CLK_SRC_EXT CONFIG_ESP32S2_RTC_CLK_SRC_INT_8MD256 CONFIG_RTC_CLK_SRC_INT_8MD256 CONFIG_ESP32S2_RTC_CLK_CAL_CYCLES CONFIG_RTC_CLK_CAL_CYCLES CONFIG_ESP32S2_RTC_XTAL_CAL_RETRY CONFIG_RTC_XTAL_CAL_RETRY + +CONFIG_ESP32S2_SPIRAM_SUPPORT CONFIG_SPIRAM diff --git a/components/esp_hw_support/sdkconfig.rename.esp32s3 b/components/esp_hw_support/sdkconfig.rename.esp32s3 index d647a12a25..77e595a907 100644 --- a/components/esp_hw_support/sdkconfig.rename.esp32s3 +++ b/components/esp_hw_support/sdkconfig.rename.esp32s3 @@ -7,3 +7,7 @@ CONFIG_ESP32S3_RTC_CLK_SRC_EXT_OSC CONFIG_RTC_CLK_SRC_EXT CONFIG_ESP32S3_RTC_CLK_SRC_INT_8MD256 CONFIG_RTC_CLK_SRC_INT_8MD256 CONFIG_ESP32S3_RTC_CLK_CAL_CYCLES CONFIG_RTC_CLK_CAL_CYCLES CONFIG_ESP32S3_RTC_XTAL_CAL_RETRY CONFIG_RTC_XTAL_CAL_RETRY + +CONFIG_ESP32S3_SPIRAM_SUPPORT CONFIG_SPIRAM + +CONFIG_ESP32S3_DEEP_SLEEP_WAKEUP_DELAY CONFIG_ESP_SLEEP_DEEP_SLEEP_WAKEUP_DELAY diff --git a/components/esp_hw_support/sleep_modes.c b/components/esp_hw_support/sleep_modes.c index 97ece34de8..cfbec39091 100644 --- a/components/esp_hw_support/sleep_modes.c +++ b/components/esp_hw_support/sleep_modes.c @@ -112,10 +112,8 @@ #define DEEP_SLEEP_TIME_OVERHEAD_US (250 + 100 * 240 / CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ) #endif -#if defined(CONFIG_IDF_TARGET_ESP32) && defined(CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY) -#define DEEP_SLEEP_WAKEUP_DELAY CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY -#elif defined(CONFIG_IDF_TARGET_ESP32S3) && defined(CONFIG_ESP32S3_DEEP_SLEEP_WAKEUP_DELAY) -#define DEEP_SLEEP_WAKEUP_DELAY CONFIG_ESP32S3_DEEP_SLEEP_WAKEUP_DELAY +#if CONFIG_ESP_SLEEP_DEEP_SLEEP_WAKEUP_DELAY +#define DEEP_SLEEP_WAKEUP_DELAY CONFIG_ESP_SLEEP_DEEP_SLEEP_WAKEUP_DELAY #else #define DEEP_SLEEP_WAKEUP_DELAY 0 #endif diff --git a/components/esp_hw_support/sleep_retention.c b/components/esp_hw_support/sleep_retention.c index 5a708f47f6..f2c8946fd1 100644 --- a/components/esp_hw_support/sleep_retention.c +++ b/components/esp_hw_support/sleep_retention.c @@ -110,7 +110,7 @@ static esp_err_t esp_sleep_tagmem_pd_low_init(bool enable) extern char _stext[], _etext[]; uint32_t code_start = (uint32_t)_stext; uint32_t code_size = (uint32_t)(_etext - _stext); -#if !CONFIG_ESP32S3_SPIRAM_SUPPORT +#if !(CONFIG_SPIRAM && CONFIG_IDF_TARGET_ESP32S3) extern char _rodata_start[], _rodata_reserved_end[]; uint32_t data_start = (uint32_t)_rodata_start; uint32_t data_size = (uint32_t)(_rodata_reserved_end - _rodata_start); diff --git a/components/esp_lcd/test_apps/rgb_lcd/sdkconfig.defaults.esp32s3 b/components/esp_lcd/test_apps/rgb_lcd/sdkconfig.defaults.esp32s3 index 2877855408..655c2aef85 100644 --- a/components/esp_lcd/test_apps/rgb_lcd/sdkconfig.defaults.esp32s3 +++ b/components/esp_lcd/test_apps/rgb_lcd/sdkconfig.defaults.esp32s3 @@ -1,3 +1,3 @@ -CONFIG_ESP32S3_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_SPIRAM_MODE_OCT=y CONFIG_SPIRAM_SPEED_80M=y diff --git a/components/esp_system/Kconfig b/components/esp_system/Kconfig index f0a711161a..7ff117390d 100644 --- a/components/esp_system/Kconfig +++ b/components/esp_system/Kconfig @@ -3,6 +3,12 @@ menu "ESP System Settings" # Insert chip-specific cpu config rsource "./port/soc/$IDF_TARGET/Kconfig.cpu" + orsource "./port/soc/$IDF_TARGET/Kconfig.cache" + + orsource "./port/soc/$IDF_TARGET/Kconfig.memory" + + orsource "./port/soc/$IDF_TARGET/Kconfig.tracemem" + choice ESP_SYSTEM_PANIC prompt "Panic handler behaviour" default ESP_SYSTEM_PANIC_PRINT_REBOOT @@ -377,8 +383,8 @@ menu "ESP System Settings" config ESP_INT_WDT_TIMEOUT_MS int "Interrupt watchdog timeout (ms)" depends on ESP_INT_WDT - default 300 if !ESP32_SPIRAM_SUPPORT - default 800 if ESP32_SPIRAM_SUPPORT + default 300 if !(SPIRAM && IDF_TARGET_ESP32) + default 800 if (SPIRAM && IDF_TARGET_ESP32) range 10 10000 help The timeout of the watchdog, in miliseconds. Make this higher than the FreeRTOS tick rate. diff --git a/components/esp_system/port/soc/esp32/Kconfig.memory b/components/esp_system/port/soc/esp32/Kconfig.memory new file mode 100644 index 0000000000..d5214bd0b6 --- /dev/null +++ b/components/esp_system/port/soc/esp32/Kconfig.memory @@ -0,0 +1,44 @@ +menu "Memory" + + config ESP32_RTCDATA_IN_FAST_MEM + bool "Place RTC_DATA_ATTR and RTC_RODATA_ATTR variables into RTC fast memory segment" + default n + depends on FREERTOS_UNICORE + help + This option allows to place .rtc_data and .rtc_rodata sections into + RTC fast memory segment to free the slow memory region for ULP programs. + This option depends on the CONFIG_FREERTOS_UNICORE option because RTC fast memory + can be accessed only by PRO_CPU core. + + config ESP32_USE_FIXED_STATIC_RAM_SIZE + bool "Use fixed static RAM size" + default n + help + If this option is disabled, the DRAM part of the heap starts right after the .bss section, + within the dram0_0 region. As a result, adding or removing some static variables + will change the available heap size. + + If this option is enabled, the DRAM part of the heap starts right after the dram0_0 region, + where its length is set with ESP32_FIXED_STATIC_RAM_SIZE + + config ESP32_FIXED_STATIC_RAM_SIZE + hex "Fixed Static RAM size" + default 0x1E000 + range 0 0x2c200 + depends on ESP32_USE_FIXED_STATIC_RAM_SIZE + help + RAM size dedicated for static variables (.data & .bss sections). + Please note that the actual length will be reduced by BTDM_RESERVE_DRAM if Bluetooth + controller is enabled. + + config ESP32_IRAM_AS_8BIT_ACCESSIBLE_MEMORY + bool "Enable IRAM as 8 bit accessible memory" + depends on FREERTOS_UNICORE + help + If enabled, application can use IRAM as byte accessible region for storing data + (Note: IRAM region cannot be used as task stack) + + This is possible due to handling of exceptions `LoadStoreError (3)` and `LoadStoreAlignmentError (9)` + Each unaligned read/write access will incur a penalty of maximum of 167 CPU cycles. + +endmenu # Memory diff --git a/components/esp_system/port/soc/esp32/Kconfig.system b/components/esp_system/port/soc/esp32/Kconfig.system index c7af8ce2c8..484a249fd0 100644 --- a/components/esp_system/port/soc/esp32/Kconfig.system +++ b/components/esp_system/port/soc/esp32/Kconfig.system @@ -50,3 +50,20 @@ menu "Brownout Detector" default 7 if ESP_BROWNOUT_DET_LVL_SEL_7 endmenu + +config ESP32_DISABLE_BASIC_ROM_CONSOLE + bool "Permanently disable BASIC ROM Console" + default n + help + If set, the first time the app boots it will disable the BASIC ROM Console + permanently (by burning an eFuse). + + Otherwise, the BASIC ROM Console starts on reset if no valid bootloader is + read from the flash. + + (Enabling secure boot also disables the BASIC ROM Console by default.) + +config ESP32_ECO3_CACHE_LOCK_FIX + bool + default y + depends on !FREERTOS_UNICORE && SPIRAM diff --git a/components/esp_system/port/soc/esp32/Kconfig.tracemem b/components/esp_system/port/soc/esp32/Kconfig.tracemem new file mode 100644 index 0000000000..f886d17fec --- /dev/null +++ b/components/esp_system/port/soc/esp32/Kconfig.tracemem @@ -0,0 +1,39 @@ +menu "Trace memory" + + config ESP32_MEMMAP_TRACEMEM + bool + default "n" + + config ESP32_MEMMAP_TRACEMEM_TWOBANKS + bool + default "n" + + config ESP32_TRAX + bool "Use TRAX tracing feature" + default "n" + select ESP32_MEMMAP_TRACEMEM + help + The ESP32 contains a feature which allows you to trace the execution path the processor + has taken through the program. This is stored in a chunk of 32K (16K for single-processor) + of memory that can't be used for general purposes anymore. Disable this if you do not know + what this is. + + config ESP32_TRAX_TWOBANKS + bool "Reserve memory for tracing both pro as well as app cpu execution" + default "n" + depends on ESP32_TRAX && !FREERTOS_UNICORE + select ESP32_MEMMAP_TRACEMEM_TWOBANKS + help + The ESP32 contains a feature which allows you to trace the execution path the processor + has taken through the program. This is stored in a chunk of 32K (16K for single-processor) + of memory that can't be used for general purposes anymore. Disable this if you do not know + what this is. + + # Memory to reverse for trace, used in linker script + config ESP32_TRACEMEM_RESERVE_DRAM + hex + default 0x8000 if ESP32_MEMMAP_TRACEMEM && ESP32_MEMMAP_TRACEMEM_TWOBANKS + default 0x4000 if ESP32_MEMMAP_TRACEMEM && !ESP32_MEMMAP_TRACEMEM_TWOBANKS + default 0x0 + +endmenu # Trace memory diff --git a/components/esp_system/port/soc/esp32/clk.c b/components/esp_system/port/soc/esp32/clk.c index 251415a02f..6ea32da504 100644 --- a/components/esp_system/port/soc/esp32/clk.c +++ b/components/esp_system/port/soc/esp32/clk.c @@ -117,7 +117,7 @@ static void select_rtc_slow_clk(slow_clk_sel_t slow_clk) rtc_config_t cfg = RTC_CONFIG_DEFAULT(); rtc_init(cfg); -#if (CONFIG_ESP32_COMPATIBLE_PRE_V2_1_BOOTLOADERS || CONFIG_ESP32_APP_INIT_CLK) +#if (CONFIG_APP_COMPATIBLE_PRE_V2_1_BOOTLOADERS || CONFIG_APP_INIT_CLK) /* Check the bootloader set the XTAL frequency. Bootloaders pre-v2.1 don't do this. @@ -128,7 +128,7 @@ static void select_rtc_slow_clk(slow_clk_sel_t slow_clk) bootloader_clock_configure(); } #else - /* If this assertion fails, either upgrade the bootloader or enable CONFIG_ESP32_COMPATIBLE_PRE_V2_1_BOOTLOADERS */ + /* If this assertion fails, either upgrade the bootloader or enable CONFIG_APP_COMPATIBLE_PRE_V2_1_BOOTLOADERS */ assert(rtc_clk_xtal_freq_get() != RTC_XTAL_FREQ_AUTO); #endif diff --git a/components/esp_system/port/soc/esp32c2/Kconfig.cache b/components/esp_system/port/soc/esp32c2/Kconfig.cache new file mode 100644 index 0000000000..03dd5558ad --- /dev/null +++ b/components/esp_system/port/soc/esp32c2/Kconfig.cache @@ -0,0 +1,33 @@ +menu "Cache config" + + choice ESP32C2_MMU_PAGE_SIZE + # TODO: IDF-3821 + prompt "Cache page size" + default ESP32C2_MMU_PAGE_SIZE_64KB + help + Cache page size to be set on application startup + + config ESP32C2_MMU_PAGE_SIZE_16KB + bool "16KB" + config ESP32C2_MMU_PAGE_SIZE_32KB + bool "32KB" + config ESP32C2_MMU_PAGE_SIZE_64KB + bool "64KB" + endchoice + + config ESP32C2_INSTRUCTION_CACHE_WRAP + # TODO: IDF-4194 + bool + prompt "Instruction cache wrap" + help + If enabled, instruction cache will use wrap mode to read spi flash. + The wrap length is fixed to 32B + + + config ESP32C2_MMU_PAGE_MODE + int + default 0 if ESP32C2_MMU_PAGE_SIZE_16KB + default 1 if ESP32C2_MMU_PAGE_SIZE_32KB + default 2 if ESP32C2_MMU_PAGE_SIZE_64KB + +endmenu diff --git a/components/esp_system/port/soc/esp32s2/Kconfig.cache b/components/esp_system/port/soc/esp32s2/Kconfig.cache new file mode 100644 index 0000000000..bef23e3be6 --- /dev/null +++ b/components/esp_system/port/soc/esp32s2/Kconfig.cache @@ -0,0 +1,75 @@ +menu "Cache config" + + choice ESP32S2_INSTRUCTION_CACHE_SIZE + prompt "Instruction cache size" + default ESP32S2_INSTRUCTION_CACHE_8KB + help + Instruction cache size to be set on application startup. + If you use 8KB instruction cache rather than 16KB instruction cache, + then the other 8KB will be added to the heap. + + config ESP32S2_INSTRUCTION_CACHE_8KB + bool "8KB" + config ESP32S2_INSTRUCTION_CACHE_16KB + bool "16KB" + endchoice + + choice ESP32S2_INSTRUCTION_CACHE_LINE_SIZE + prompt "Instruction cache line size" + default ESP32S2_INSTRUCTION_CACHE_LINE_32B + help + Instruction cache line size to be set on application startup. + + config ESP32S2_INSTRUCTION_CACHE_LINE_16B + bool "16 Bytes" + config ESP32S2_INSTRUCTION_CACHE_LINE_32B + bool "32 Bytes" + endchoice + + choice ESP32S2_DATA_CACHE_SIZE + prompt "Data cache size" + default ESP32S2_DATA_CACHE_0KB if !SPIRAM + default ESP32S2_DATA_CACHE_8KB if SPIRAM + help + Data cache size to be set on application startup. + If you use 0KB data cache, the other 16KB will be added to the heap + If you use 8KB data cache rather than 16KB data cache, the other 8KB will be added to the heap + + config ESP32S2_DATA_CACHE_0KB + depends on !SPIRAM + bool "0KB" + config ESP32S2_DATA_CACHE_8KB + bool "8KB" + config ESP32S2_DATA_CACHE_16KB + bool "16KB" + endchoice + + choice ESP32S2_DATA_CACHE_LINE_SIZE + prompt "Data cache line size" + default ESP32S2_DATA_CACHE_LINE_32B + help + Data cache line size to be set on application startup. + + config ESP32S2_DATA_CACHE_LINE_16B + bool "16 Bytes" + config ESP32S2_DATA_CACHE_LINE_32B + bool "32 Bytes" + endchoice + + config ESP32S2_INSTRUCTION_CACHE_WRAP + bool "Enable instruction cache wrap" + default "n" + help + If enabled, instruction cache will use wrap mode to read spi flash (maybe spiram). + The wrap length equals to INSTRUCTION_CACHE_LINE_SIZE. + However, it depends on complex conditions. + + config ESP32S2_DATA_CACHE_WRAP + bool "Enable data cache wrap" + default "n" + help + If enabled, data cache will use wrap mode to read spiram (maybe spi flash). + The wrap length equals to DATA_CACHE_LINE_SIZE. + However, it depends on complex conditions. + +endmenu # Cache config diff --git a/components/esp_system/port/soc/esp32s2/Kconfig.memory b/components/esp_system/port/soc/esp32s2/Kconfig.memory new file mode 100644 index 0000000000..aa7a64bae3 --- /dev/null +++ b/components/esp_system/port/soc/esp32s2/Kconfig.memory @@ -0,0 +1,29 @@ +menu "Memory" + + config ESP32S2_RTCDATA_IN_FAST_MEM + bool "Place RTC_DATA_ATTR and RTC_RODATA_ATTR variables into RTC fast memory segment" + default n + help + This option allows to place .rtc_data and .rtc_rodata sections into + RTC fast memory segment to free the slow memory region for ULP programs. + + config ESP32S2_USE_FIXED_STATIC_RAM_SIZE + bool "Use fixed static RAM size" + default n + help + If this option is disabled, the DRAM part of the heap starts right after the .bss section, + within the dram0_0 region. As a result, adding or removing some static variables + will change the available heap size. + + If this option is enabled, the DRAM part of the heap starts right after the dram0_0 region, + where its length is set with ESP32S2_FIXED_STATIC_RAM_SIZE + + config ESP32S2_FIXED_STATIC_RAM_SIZE + hex "Fixed Static RAM size" + default 0x10000 + range 0 0x34000 + depends on ESP32S2_USE_FIXED_STATIC_RAM_SIZE + help + RAM size dedicated for static variables (.data & .bss sections). + +endmenu # Memory diff --git a/components/esp_system/port/soc/esp32s2/Kconfig.system b/components/esp_system/port/soc/esp32s2/Kconfig.system index 642eb31ac3..d31ee4eff3 100644 --- a/components/esp_system/port/soc/esp32s2/Kconfig.system +++ b/components/esp_system/port/soc/esp32s2/Kconfig.system @@ -47,3 +47,11 @@ menu "Brownout Detector" default 7 if ESP_BROWNOUT_DET_LVL_SEL_7 endmenu + +config ESP32S2_KEEP_USB_ALIVE + bool "Keep USB peripheral enabled at start up" if !ESP_CONSOLE_USB_CDC + default y if ESP_CONSOLE_USB_CDC + help + During the application initialization process, all the peripherals except UARTs and timers + are reset. Enable this option to keep USB peripheral enabled. + This option is automatically enabled if "USB CDC" console is selected. diff --git a/components/esp_system/port/soc/esp32s2/Kconfig.tracemem b/components/esp_system/port/soc/esp32s2/Kconfig.tracemem new file mode 100644 index 0000000000..ec02792944 --- /dev/null +++ b/components/esp_system/port/soc/esp32s2/Kconfig.tracemem @@ -0,0 +1,27 @@ +menu "Trace memory" + + config ESP32S2_MEMMAP_TRACEMEM + bool + default "n" + + config ESP32S2_MEMMAP_TRACEMEM_TWOBANKS + bool + default "n" + + config ESP32S2_TRAX + bool "Use TRAX tracing feature" + default "n" + select ESP32S2_MEMMAP_TRACEMEM + help + The ESP32S2 contains a feature which allows you to trace the execution path the processor + has taken through the program. This is stored in a chunk of 32K (16K for single-processor) + of memory that can't be used for general purposes anymore. Disable this if you do not know + what this is. + + config ESP32S2_TRACEMEM_RESERVE_DRAM + hex + default 0x8000 if ESP32S2_MEMMAP_TRACEMEM && ESP32S2_MEMMAP_TRACEMEM_TWOBANKS + default 0x4000 if ESP32S2_MEMMAP_TRACEMEM && !ESP32S2_MEMMAP_TRACEMEM_TWOBANKS + default 0x0 + +endmenu # Trace memory diff --git a/components/esp_system/port/soc/esp32s3/Kconfig.cache b/components/esp_system/port/soc/esp32s3/Kconfig.cache new file mode 100644 index 0000000000..b7b5cd61d9 --- /dev/null +++ b/components/esp_system/port/soc/esp32s3/Kconfig.cache @@ -0,0 +1,136 @@ +menu "Cache config" + + choice ESP32S3_INSTRUCTION_CACHE_SIZE + prompt "Instruction cache size" + default ESP32S3_INSTRUCTION_CACHE_16KB + help + Instruction cache size to be set on application startup. + If you use 16KB instruction cache rather than 32KB instruction cache, + then the other 16KB will be managed by heap allocator. + + config ESP32S3_INSTRUCTION_CACHE_16KB + bool "16KB" + config ESP32S3_INSTRUCTION_CACHE_32KB + bool "32KB" + endchoice + + config ESP32S3_INSTRUCTION_CACHE_SIZE + hex + default 0x4000 if ESP32S3_INSTRUCTION_CACHE_16KB + default 0x8000 if ESP32S3_INSTRUCTION_CACHE_32KB + + choice ESP32S3_ICACHE_ASSOCIATED_WAYS + prompt "Instruction cache associated ways" + default ESP32S3_INSTRUCTION_CACHE_8WAYS + help + Instruction cache associated ways to be set on application startup. + + config ESP32S3_INSTRUCTION_CACHE_4WAYS + bool "4 ways" + config ESP32S3_INSTRUCTION_CACHE_8WAYS + bool "8 ways" + endchoice + + config ESP32S3_ICACHE_ASSOCIATED_WAYS + int + default 4 if ESP32S3_INSTRUCTION_CACHE_4WAYS + default 8 if ESP32S3_INSTRUCTION_CACHE_8WAYS + + choice ESP32S3_INSTRUCTION_CACHE_LINE_SIZE + prompt "Instruction cache line size" + default ESP32S3_INSTRUCTION_CACHE_LINE_32B + help + Instruction cache line size to be set on application startup. + + config ESP32S3_INSTRUCTION_CACHE_LINE_16B + bool "16 Bytes" + depends on ESP32S3_INSTRUCTION_CACHE_16KB + config ESP32S3_INSTRUCTION_CACHE_LINE_32B + bool "32 Bytes" + endchoice + + config ESP32S3_INSTRUCTION_CACHE_LINE_SIZE + int + default 16 if ESP32S3_INSTRUCTION_CACHE_LINE_16B + default 32 if ESP32S3_INSTRUCTION_CACHE_LINE_32B + + config ESP32S3_INSTRUCTION_CACHE_WRAP + bool ## TODO IDF-4307 + default "n" + depends on !SPIRAM_ECC_ENABLE + help + If enabled, instruction cache will use wrap mode to read spi flash or spi ram. + The wrap length equals to ESP32S3_INSTRUCTION_CACHE_LINE_SIZE. + However, it depends on complex conditions. + + choice ESP32S3_DATA_CACHE_SIZE + prompt "Data cache size" + default ESP32S3_DATA_CACHE_32KB + help + Data cache size to be set on application startup. + If you use 32KB data cache rather than 64KB data cache, + the other 32KB will be added to the heap. + + config ESP32S3_DATA_CACHE_16KB + bool "16KB" + config ESP32S3_DATA_CACHE_32KB + bool "32KB" + config ESP32S3_DATA_CACHE_64KB + bool "64KB" + endchoice + + config ESP32S3_DATA_CACHE_SIZE + hex + # For 16KB the actual configuration is 32kb cache, but 16kb will be reserved for heap at startup + default 0x8000 if ESP32S3_DATA_CACHE_16KB + default 0x8000 if ESP32S3_DATA_CACHE_32KB + default 0x10000 if ESP32S3_DATA_CACHE_64KB + + choice ESP32S3_DCACHE_ASSOCIATED_WAYS + prompt "Data cache associated ways" + default ESP32S3_DATA_CACHE_8WAYS + help + Data cache associated ways to be set on application startup. + + config ESP32S3_DATA_CACHE_4WAYS + bool "4 ways" + config ESP32S3_DATA_CACHE_8WAYS + bool "8 ways" + endchoice + + config ESP32S3_DCACHE_ASSOCIATED_WAYS + int + default 4 if ESP32S3_DATA_CACHE_4WAYS + default 8 if ESP32S3_DATA_CACHE_8WAYS + + choice ESP32S3_DATA_CACHE_LINE_SIZE + prompt "Data cache line size" + default ESP32S3_DATA_CACHE_LINE_32B + help + Data cache line size to be set on application startup. + + config ESP32S3_DATA_CACHE_LINE_16B + bool "16 Bytes" + depends on ESP32S3_DATA_CACHE_16KB || ESP32S3_DATA_CACHE_32KB + config ESP32S3_DATA_CACHE_LINE_32B + bool "32 Bytes" + config ESP32S3_DATA_CACHE_LINE_64B + bool "64 Bytes" + endchoice + + config ESP32S3_DATA_CACHE_LINE_SIZE + int + default 16 if ESP32S3_DATA_CACHE_LINE_16B + default 32 if ESP32S3_DATA_CACHE_LINE_32B + default 64 if ESP32S3_DATA_CACHE_LINE_64B + + config ESP32S3_DATA_CACHE_WRAP + bool ## TODO IDF-4307 + default "n" + depends on !SPIRAM_ECC_ENABLE + help + If enabled, data cache will use wrap mode to read spi flash or spi ram. + The wrap length equals to ESP32S3_DATA_CACHE_LINE_SIZE. + However, it depends on complex conditions. + +endmenu # Cache config diff --git a/components/esp_system/port/soc/esp32s3/Kconfig.memory b/components/esp_system/port/soc/esp32s3/Kconfig.memory new file mode 100644 index 0000000000..5a1076647f --- /dev/null +++ b/components/esp_system/port/soc/esp32s3/Kconfig.memory @@ -0,0 +1,29 @@ +menu "Memory" + + config ESP32S3_RTCDATA_IN_FAST_MEM + bool "Place RTC_DATA_ATTR and RTC_RODATA_ATTR variables into RTC fast memory segment" + default n + help + This option allows to place .rtc_data and .rtc_rodata sections into + RTC fast memory segment to free the slow memory region for ULP programs. + + config ESP32S3_USE_FIXED_STATIC_RAM_SIZE + bool "Use fixed static RAM size" + default n + help + If this option is disabled, the DRAM part of the heap starts right after the .bss section, + within the dram0_0 region. As a result, adding or removing some static variables + will change the available heap size. + + If this option is enabled, the DRAM part of the heap starts right after the dram0_0 region, + where its length is set with ESP32S3_FIXED_STATIC_RAM_SIZE + + config ESP32S3_FIXED_STATIC_RAM_SIZE + hex "Fixed Static RAM size" + default 0x10000 + range 0 0x34000 + depends on ESP32S3_USE_FIXED_STATIC_RAM_SIZE + help + RAM size dedicated for static variables (.data & .bss sections). + +endmenu # Memory diff --git a/components/esp_system/port/soc/esp32s3/Kconfig.tracemem b/components/esp_system/port/soc/esp32s3/Kconfig.tracemem new file mode 100644 index 0000000000..4d4ba103a3 --- /dev/null +++ b/components/esp_system/port/soc/esp32s3/Kconfig.tracemem @@ -0,0 +1,38 @@ +menu "Trace memory" + + config ESP32S3_MEMMAP_TRACEMEM + bool + default "n" + + config ESP32S3_MEMMAP_TRACEMEM_TWOBANKS + bool + default "n" + + config ESP32S3_TRAX + bool "Use TRAX tracing feature" + default "n" + select ESP32S3_MEMMAP_TRACEMEM + help + The esp32-s3 contains a feature which allows you to trace the execution path the processor + has taken through the program. This is stored in a chunk of 32K (16K for single-processor) + of memory that can't be used for general purposes anymore. Disable this if you do not know + what this is. + + config ESP32S3_TRAX_TWOBANKS + bool "Reserve memory for tracing both pro as well as app cpu execution" + default "n" + depends on ESP32S3_TRAX && !FREERTOS_UNICORE + select ESP32S3_MEMMAP_TRACEMEM_TWOBANKS + help + The esp32-s3 contains a feature which allows you to trace the execution path the processor + has taken through the program. This is stored in a chunk of 32K (16K for single-processor) + of memory that can't be used for general purposes anymore. Disable this if you do not know + what this is. + + config ESP32S3_TRACEMEM_RESERVE_DRAM + hex + default 0x8000 if ESP32S3_MEMMAP_TRACEMEM && ESP32S3_MEMMAP_TRACEMEM_TWOBANKS + default 0x4000 if ESP32S3_MEMMAP_TRACEMEM && !ESP32S3_MEMMAP_TRACEMEM_TWOBANKS + default 0x0 + +endmenu # Trace memory diff --git a/components/esp_system/sdkconfig.rename.esp32 b/components/esp_system/sdkconfig.rename.esp32 index b88309d76b..cbd4854936 100644 --- a/components/esp_system/sdkconfig.rename.esp32 +++ b/components/esp_system/sdkconfig.rename.esp32 @@ -27,3 +27,8 @@ CONFIG_ESP32_DEFAULT_CPU_FREQ_40 CONFIG_ESP_DEFAULT_CPU_F CONFIG_ESP32_DEFAULT_CPU_FREQ_80 CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_80 CONFIG_ESP32_DEFAULT_CPU_FREQ_160 CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_160 CONFIG_ESP32_DEFAULT_CPU_FREQ_240 CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240 + +CONFIG_DISABLE_BASIC_ROM_CONSOLE CONFIG_ESP32_DISABLE_BASIC_ROM_CONSOLE +CONFIG_MEMMAP_TRACEMEM CONFIG_ESP32_MEMMAP_TRACEMEM +CONFIG_MEMMAP_TRACEMEM_TWOBANKS CONFIG_ESP32_MEMMAP_TRACEMEM_TWOBANKS +CONFIG_TRACEMEM_RESERVE_DRAM CONFIG_ESP32_TRACEMEM_RESERVE_DRAM diff --git a/components/esp_wifi/Kconfig b/components/esp_wifi/Kconfig index 44e3ea16b8..6832f480b2 100644 --- a/components/esp_wifi/Kconfig +++ b/components/esp_wifi/Kconfig @@ -98,7 +98,7 @@ menu "Wi-Fi" config ESP32_WIFI_CACHE_TX_BUFFER_NUM int "Max number of WiFi cache TX buffers" - depends on (ESP32_SPIRAM_SUPPORT || ESP32S2_SPIRAM_SUPPORT || ESP32S3_SPIRAM_SUPPORT) + depends on SPIRAM range 16 128 default 32 help @@ -171,7 +171,7 @@ menu "Wi-Fi" config ESP32_WIFI_AMSDU_TX_ENABLED bool "WiFi AMSDU TX" - depends on (ESP32_SPIRAM_SUPPORT || ESP32S2_SPIRAM_SUPPORT || ESP32S3_SPIRAM_SUPPORT) + depends on SPIRAM default n help Select this option to enable AMSDU TX feature @@ -226,7 +226,7 @@ menu "Wi-Fi" config ESP32_WIFI_IRAM_OPT bool "WiFi IRAM speed optimization" - default n if (BT_ENABLED && ESP32_SPIRAM_SUPPORT) + default n if (BT_ENABLED && SPIRAM && IDF_TARGET_ESP32) default y help Select this option to place frequently called Wi-Fi library functions in IRAM. @@ -235,7 +235,7 @@ menu "Wi-Fi" config ESP32_WIFI_RX_IRAM_OPT bool "WiFi RX IRAM speed optimization" - default n if (BT_ENABLED && ESP32_SPIRAM_SUPPORT) + default n if (BT_ENABLED && SPIRAM && IDF_TARGET_ESP32) default y help Select this option to place frequently called Wi-Fi library RX functions in IRAM. diff --git a/components/esp_wifi/src/wifi_init.c b/components/esp_wifi/src/wifi_init.c index 61f9214f7a..351f8a5600 100644 --- a/components/esp_wifi/src/wifi_init.c +++ b/components/esp_wifi/src/wifi_init.c @@ -44,7 +44,7 @@ uint64_t g_wifi_feature_caps = #if CONFIG_ESP32_WIFI_ENABLE_WPA3_SAE CONFIG_FEATURE_WPA3_SAE_BIT | #endif -#if (CONFIG_ESP32_SPIRAM_SUPPORT || CONFIG_ESP32S2_SPIRAM_SUPPORT || CONFIG_ESP32S3_SPIRAM_SUPPORT) +#if CONFIG_SPIRAM CONFIG_FEATURE_CACHE_TX_BUF_BIT | #endif #if CONFIG_ESP_WIFI_FTM_INITIATOR_SUPPORT diff --git a/components/esp_wifi/src/wifi_netif.c b/components/esp_wifi/src/wifi_netif.c index 54900b8f01..571a6c3717 100644 --- a/components/esp_wifi/src/wifi_netif.c +++ b/components/esp_wifi/src/wifi_netif.c @@ -62,7 +62,7 @@ static esp_err_t wifi_transmit(void *h, void *buffer, size_t len) static esp_err_t wifi_transmit_wrap(void *h, void *buffer, size_t len, void *netstack_buf) { wifi_netif_driver_t driver = h; -#if (CONFIG_ESP32_SPIRAM_SUPPORT || CONFIG_ESP32S2_SPIRAM_SUPPORT || CONFIG_ESP32S3_SPIRAM_SUPPORT) +#if CONFIG_SPIRAM return esp_wifi_internal_tx_by_ref(driver->wifi_if, buffer, len, netstack_buf); #else return esp_wifi_internal_tx(driver->wifi_if, buffer, len); diff --git a/components/mdns/test_afl_fuzz_host/sdkconfig.h b/components/mdns/test_afl_fuzz_host/sdkconfig.h index bcb1b9d13a..9307ef8c82 100644 --- a/components/mdns/test_afl_fuzz_host/sdkconfig.h +++ b/components/mdns/test_afl_fuzz_host/sdkconfig.h @@ -74,7 +74,7 @@ #define CONFIG_NEWLIB_TIME_SYSCALL_USE_RTC_HRT 1 #define CONFIG_RTC_CLK_SRC_INT_RC 1 #define CONFIG_RTC_CLK_CAL_CYCLES 1024 -#define CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY 2000 +#define CONFIG_ESP_SLEEP_DEEP_SLEEP_WAKEUP_DELAY 2000 #define CONFIG_ESP32_XTAL_FREQ_40 1 #define CONFIG_ESP32_XTAL_FREQ 40 #define CONFIG_ESP32_DPORT_DIS_INTERRUPT_LVL 5 diff --git a/components/partition_table/Kconfig.projbuild b/components/partition_table/Kconfig.projbuild index 57e0cd2624..546bafe141 100644 --- a/components/partition_table/Kconfig.projbuild +++ b/components/partition_table/Kconfig.projbuild @@ -121,7 +121,7 @@ menu "Partition Table" config PARTITION_TABLE_MD5 bool "Generate an MD5 checksum for the partition table" default y - depends on !ESP32_COMPATIBLE_PRE_V3_1_BOOTLOADERS && !IDF_TARGET_LINUX + depends on !APP_COMPATIBLE_PRE_V3_1_BOOTLOADERS && !IDF_TARGET_LINUX help Generate an MD5 checksum for the partition table for protecting the integrity of the table. The generation should be turned off for legacy diff --git a/components/spi_flash/cache_utils.c b/components/spi_flash/cache_utils.c index 4fb312513c..b28a26344c 100644 --- a/components/spi_flash/cache_utils.c +++ b/components/spi_flash/cache_utils.c @@ -491,7 +491,7 @@ static IRAM_ATTR void esp_enable_cache_flash_wrap(bool icache, bool dcache) } } -#if CONFIG_ESP32S2_SPIRAM_SUPPORT +#if (CONFIG_IDF_TARGET_ESP32S2 && CONFIG_SPIRAM) static IRAM_ATTR void esp_enable_cache_spiram_wrap(bool icache, bool dcache) { uint32_t i_autoload, d_autoload; @@ -569,7 +569,7 @@ esp_err_t esp_enable_cache_wrap(bool icache_wrap_enable, bool dcache_wrap_enable flash_wrap_sizes[1] = dcache_wrap_size; } } -#ifdef CONFIG_ESP32S2_SPIRAM_SUPPORT +#if (CONFIG_IDF_TARGET_ESP32S2 && CONFIG_SPIRAM) spiram_wrap_sizes[1] = dcache_wrap_size; #endif for (i = 0; i < 2; i++) { @@ -627,7 +627,7 @@ esp_err_t esp_enable_cache_wrap(bool icache_wrap_enable, bool dcache_wrap_enable ESP_EARLY_LOGW(TAG, "Flash is not in QIO mode, do not support wrap."); #endif -#ifdef CONFIG_ESP32S2_SPIRAM_SUPPORT +#if (CONFIG_IDF_TARGET_ESP32S2 && CONFIG_SPIRAM) extern bool psram_support_wrap_size(uint32_t wrap_size); if (!psram_support_wrap_size(spiram_wrap_size)) { spiram_support_wrap = false; @@ -646,7 +646,7 @@ esp_err_t esp_enable_cache_wrap(bool icache_wrap_enable, bool dcache_wrap_enable spi_flash_enable_wrap(flash_wrap_size); esp_enable_cache_flash_wrap((flash_wrap_sizes[0] > 0), (flash_wrap_sizes[1] > 0)); } -#if CONFIG_ESP32S2_SPIRAM_SUPPORT +#if (CONFIG_IDF_TARGET_ESP32S2 && CONFIG_SPIRAM) extern esp_err_t psram_enable_wrap(uint32_t wrap_size); if (spiram_support_wrap && spiram_wrap_size > 0) { ESP_EARLY_LOGI(TAG, "SPIRAM wrap enabled, size = %d.", spiram_wrap_size); @@ -740,7 +740,7 @@ static IRAM_ATTR void esp_enable_cache_flash_wrap(bool icache, bool dcache) } } -#if CONFIG_ESP32S3_SPIRAM_SUPPORT +#if (CONFIG_IDF_TARGET_ESP32S3 && CONFIG_SPIRAM) static IRAM_ATTR void esp_enable_cache_spiram_wrap(bool icache, bool dcache) { uint32_t i_autoload, d_autoload; @@ -818,7 +818,7 @@ esp_err_t esp_enable_cache_wrap(bool icache_wrap_enable, bool dcache_wrap_enable flash_wrap_sizes[1] = dcache_wrap_size; } } -#ifdef CONFIG_ESP32S3_SPIRAM_SUPPORT +#if (CONFIG_IDF_TARGET_ESP32S3 && CONFIG_SPIRAM) spiram_wrap_sizes[1] = dcache_wrap_size; #endif for (i = 0; i < 2; i++) { @@ -876,7 +876,7 @@ esp_err_t esp_enable_cache_wrap(bool icache_wrap_enable, bool dcache_wrap_enable #endif -#ifdef CONFIG_ESP32S3_SPIRAM_SUPPORT +#if (CONFIG_IDF_TARGET_ESP32S3 && CONFIG_SPIRAM) extern bool psram_support_wrap_size(uint32_t wrap_size); if (!psram_support_wrap_size(spiram_wrap_size)) { spiram_support_wrap = false; @@ -895,7 +895,7 @@ esp_err_t esp_enable_cache_wrap(bool icache_wrap_enable, bool dcache_wrap_enable spi_flash_enable_wrap(flash_wrap_size); esp_enable_cache_flash_wrap((flash_wrap_sizes[0] > 0), (flash_wrap_sizes[1] > 0)); } -#if CONFIG_ESP32S3_SPIRAM_SUPPORT +#if (CONFIG_IDF_TARGET_ESP32S3 && CONFIG_SPIRAM) extern esp_err_t psram_enable_wrap(uint32_t wrap_size); if (spiram_support_wrap && spiram_wrap_size > 0) { ESP_EARLY_LOGI(TAG, "SPIRAM wrap enabled, size = %d.", spiram_wrap_size); diff --git a/components/spi_flash/esp32s3/spi_timing_config.h b/components/spi_flash/esp32s3/spi_timing_config.h index 06af783c9f..57e9f3fb3d 100644 --- a/components/spi_flash/esp32s3/spi_timing_config.h +++ b/components/spi_flash/esp32s3/spi_timing_config.h @@ -67,7 +67,7 @@ extern "C" { #define SPI_TIMING_PSRAM_DTR_MODE CONFIG_SPIRAM_MODE_OCT #define SPI_TIMING_PSRAM_STR_MODE !CONFIG_SPIRAM_MODE_OCT //--------------------------------------PSRAM Module Clock --------------------------------------// -#if CONFIG_ESP32S3_SPIRAM_SUPPORT +#if CONFIG_SPIRAM #if CONFIG_SPIRAM_SPEED_40M #define SPI_TIMING_PSRAM_MODULE_CLOCK 40 #elif CONFIG_SPIRAM_SPEED_80M @@ -96,7 +96,7 @@ extern "C" { */ #if (SPI_TIMING_FLASH_DTR_MODE || SPI_TIMING_PSRAM_DTR_MODE) #define SPI_TIMING_CORE_CLOCK_DIV 2 -#else //#if (SPI_TIMING_FLASH_STR_MODE && (SPI_TIMING_PSRAM_STR_MODE || !CONFIG_ESP32S3_SPIRAM_SUPPORT)) +#else //#if (SPI_TIMING_FLASH_STR_MODE && (SPI_TIMING_PSRAM_STR_MODE)) #define SPI_TIMING_CORE_CLOCK_DIV 1 #endif diff --git a/docs/en/api-guides/bootloader.rst b/docs/en/api-guides/bootloader.rst index 63ef86fd6d..39919215d0 100644 --- a/docs/en/api-guides/bootloader.rst +++ b/docs/en/api-guides/bootloader.rst @@ -34,12 +34,12 @@ The bootloader does not support booting apps from older versions of ESP-IDF. Whe Before ESP-IDF V2.1 ^^^^^^^^^^^^^^^^^^^ - Bootloaders built from very old versions of ESP-IDF (before ESP-IDF V2.1) perform less hardware configuration than newer versions. When using a bootloader from these early ESP-IDF versions and building a new app, enable the config option :ref:`CONFIG_ESP32_COMPATIBLE_PRE_V2_1_BOOTLOADERS`. + Bootloaders built from very old versions of ESP-IDF (before ESP-IDF V2.1) perform less hardware configuration than newer versions. When using a bootloader from these early ESP-IDF versions and building a new app, enable the config option :ref:`CONFIG_APP_COMPATIBLE_PRE_V2_1_BOOTLOADERS`. Before ESP-IDF V3.1 ^^^^^^^^^^^^^^^^^^^ - Bootloaders built from versions of ESP-IDF before V3.1 do not support MD5 checksums in the partition table binary. When using a bootloader from these ESP-IDF versions and building a new app, enable the config option :ref:`CONFIG_ESP32_COMPATIBLE_PRE_V3_1_BOOTLOADERS`. + Bootloaders built from versions of ESP-IDF before V3.1 do not support MD5 checksums in the partition table binary. When using a bootloader from these ESP-IDF versions and building a new app, enable the config option :ref:`CONFIG_APP_COMPATIBLE_PRE_V3_1_BOOTLOADERS`. SPI Flash Configuration ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/docs/en/api-guides/flash_psram_config.rst b/docs/en/api-guides/flash_psram_config.rst index 19fd372b4e..d7dab1acc3 100644 --- a/docs/en/api-guides/flash_psram_config.rst +++ b/docs/en/api-guides/flash_psram_config.rst @@ -43,7 +43,7 @@ The Flash related configurations are under ``Serial flasher config`` menu. Configure the PSRAM ^^^^^^^^^^^^^^^^^^^ -To enable PSRAM, please enable the :ref:`CONFIG_{IDF_TARGET_CFG_PREFIX}_SPIRAM_SUPPORT` under ``Component config / {IDF_TARGET_NAME}-Specific`` menu. Then all the PSRAM related configurations will be visible under ``SPI RAM config`` menu. +To enable PSRAM, please enable the :ref:`CONFIG_SPIRAM` under ``Component config / Hardware Settings`` menu. Then all the PSRAM related configurations will be visible under ``SPI RAM config`` menu. 1. PSRAM type used on the board. Select a type in :ref:`CONFIG_SPIRAM_MODE` for Quad or Octal PSRAM. 2. PSRAM speed. Select a PSRAM frequency in :ref:`CONFIG_SPIRAM_SPEED`. diff --git a/docs/en/api-guides/partition-tables.rst b/docs/en/api-guides/partition-tables.rst index 942b0bd225..cad9f9cd63 100644 --- a/docs/en/api-guides/partition-tables.rst +++ b/docs/en/api-guides/partition-tables.rst @@ -191,7 +191,7 @@ The binary format of the partition table contains an MD5 checksum computed based .. only:: esp32 - The MD5 checksum generation can be disabled by the ``--disable-md5sum`` option of ``gen_esp32part.py`` or by the :ref:`CONFIG_PARTITION_TABLE_MD5` option. This is useful for example when one :ref:`uses a bootloader from ESP-IDF before v3.1 ` which cannot process MD5 checksums and the boot fails with the error message ``invalid magic number 0xebeb``. + The MD5 checksum generation can be disabled by the ``--disable-md5sum`` option of ``gen_esp32part.py`` or by the :ref:`CONFIG_PARTITION_TABLE_MD5` option. This is useful for example when one :ref:`uses a bootloader from ESP-IDF before v3.1 ` which cannot process MD5 checksums and the boot fails with the error message ``invalid magic number 0xebeb``. .. only:: not esp32 diff --git a/docs/zh_CN/api-guides/bootloader.rst b/docs/zh_CN/api-guides/bootloader.rst index e899f396c6..9151203452 100644 --- a/docs/zh_CN/api-guides/bootloader.rst +++ b/docs/zh_CN/api-guides/bootloader.rst @@ -34,12 +34,12 @@ ESP-IDF 软件引导加载程序 (Bootloader) 主要执行以下任务: ESP-IDF V2.1 之前的版本 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - 与新版本相比,ESP-IDF V2.1 之前的版本构建的引导加载程序对硬件的配置更少。使用这些早期 ESP-IDF 版本的引导加载程序并构建新应用程序时,请启用配置选项 :ref:`CONFIG_ESP32_COMPATIBLE_PRE_V2_1_BOOTLOADERS`。 + 与新版本相比,ESP-IDF V2.1 之前的版本构建的引导加载程序对硬件的配置更少。使用这些早期 ESP-IDF 版本的引导加载程序并构建新应用程序时,请启用配置选项 :ref:`CONFIG_APP_COMPATIBLE_PRE_V2_1_BOOTLOADERS`。 ESP-IDF V3.1 之前的版本 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - ESP-IDF V3.1 之前的版本构建的引导加载程序不支持分区表二进制文件中的 MD5 校验。使用这些 ESP-IDF 版本的引导加载程序并构建新应用程序时,请启用配置选项 :ref:`CONFIG_ESP32_COMPATIBLE_PRE_V3_1_BOOTLOADERS`。 + ESP-IDF V3.1 之前的版本构建的引导加载程序不支持分区表二进制文件中的 MD5 校验。使用这些 ESP-IDF 版本的引导加载程序并构建新应用程序时,请启用配置选项 :ref:`CONFIG_APP_COMPATIBLE_PRE_V3_1_BOOTLOADERS`。 配置 SPI Flash ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/docs/zh_CN/api-guides/partition-tables.rst b/docs/zh_CN/api-guides/partition-tables.rst index 1d505b86c2..982c052e89 100644 --- a/docs/zh_CN/api-guides/partition-tables.rst +++ b/docs/zh_CN/api-guides/partition-tables.rst @@ -191,7 +191,7 @@ MD5 校验和 .. only:: esp32 - 用户可通过 ``gen_esp32part.py`` 的 ``--disable-md5sum`` 选项或者 :ref:`CONFIG_PARTITION_TABLE_MD5` 选项关闭 MD5 校验。对于 :ref:`ESP-IDF v3.1 版本前的引导加载程序 `,因为它不支持 MD5 校验,所以无法正常启动并报错 ``invalid magic number 0xebeb``,此时用户可以使用此选项关闭 MD5 校验。 + 用户可通过 ``gen_esp32part.py`` 的 ``--disable-md5sum`` 选项或者 :ref:`CONFIG_PARTITION_TABLE_MD5` 选项关闭 MD5 校验。对于 :ref:`ESP-IDF v3.1 版本前的引导加载程序 `,因为它不支持 MD5 校验,所以无法正常启动并报错 ``invalid magic number 0xebeb``,此时用户可以使用此选项关闭 MD5 校验。 .. only:: not esp32 diff --git a/examples/bluetooth/bluedroid/ble/ble_ancs/sdkconfig.defaults.esp32 b/examples/bluetooth/bluedroid/ble/ble_ancs/sdkconfig.defaults.esp32 index eb0c4159c9..bb4d20b6b3 100644 --- a/examples/bluetooth/bluedroid/ble/ble_ancs/sdkconfig.defaults.esp32 +++ b/examples/bluetooth/bluedroid/ble/ble_ancs/sdkconfig.defaults.esp32 @@ -1091,7 +1091,6 @@ CONFIG_ESP32_DPORT_WORKAROUND=y CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_160=y # CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240 is not set CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ=160 -# CONFIG_ESP32_SPIRAM_SUPPORT is not set # CONFIG_ESP32_TRAX is not set CONFIG_ESP32_TRACEMEM_RESERVE_DRAM=0x0 # CONFIG_ESP32_UNIVERSAL_MAC_ADDRESSES_TWO is not set @@ -1120,13 +1119,13 @@ CONFIG_RTC_CLK_SRC_INT_RC=y # CONFIG_RTC_CLK_SRC_EXT_OSC is not set # CONFIG_RTC_CLK_SRC_INT_8MD256 is not set CONFIG_RTC_CLK_CAL_CYCLES=1024 -CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY=2000 +CONFIG_ESP_SLEEP_DEEP_SLEEP_WAKEUP_DELAY=2000 CONFIG_ESP32_XTAL_FREQ_40=y # CONFIG_ESP32_XTAL_FREQ_26 is not set # CONFIG_ESP32_XTAL_FREQ_AUTO is not set CONFIG_ESP32_XTAL_FREQ=40 # CONFIG_ESP32_DISABLE_BASIC_ROM_CONSOLE is not set -# CONFIG_ESP32_COMPATIBLE_PRE_V2_1_BOOTLOADERS is not set +# CONFIG_APP_COMPATIBLE_PRE_V2_1_BOOTLOADERS is not set # CONFIG_ESP32_USE_FIXED_STATIC_RAM_SIZE is not set CONFIG_ESP32_DPORT_DIS_INTERRUPT_LVL=5 # end of ESP32-specific diff --git a/examples/bluetooth/bluedroid/ble/ble_ancs/sdkconfig.defaults.esp32s3 b/examples/bluetooth/bluedroid/ble/ble_ancs/sdkconfig.defaults.esp32s3 index edf9830c9f..0ed7851011 100644 --- a/examples/bluetooth/bluedroid/ble/ble_ancs/sdkconfig.defaults.esp32s3 +++ b/examples/bluetooth/bluedroid/ble/ble_ancs/sdkconfig.defaults.esp32s3 @@ -354,7 +354,6 @@ CONFIG_ESP32S3_DATA_CACHE_LINE_SIZE=32 # CONFIG_ESP32S3_DATA_CACHE_WRAP is not set # end of Cache config -# CONFIG_ESP32S3_SPIRAM_SUPPORT is not set # CONFIG_ESP32S3_TRAX is not set CONFIG_ESP32S3_TRACEMEM_RESERVE_DRAM=0x0 # CONFIG_ESP32S3_ULP_COPROC_ENABLED is not set diff --git a/examples/bluetooth/bluedroid/ble/ble_compatibility_test/sdkconfig.defaults.esp32 b/examples/bluetooth/bluedroid/ble/ble_compatibility_test/sdkconfig.defaults.esp32 index a304fc52e6..75fdca7ae3 100644 --- a/examples/bluetooth/bluedroid/ble/ble_compatibility_test/sdkconfig.defaults.esp32 +++ b/examples/bluetooth/bluedroid/ble/ble_compatibility_test/sdkconfig.defaults.esp32 @@ -1095,7 +1095,6 @@ CONFIG_ESP32_DPORT_WORKAROUND=y CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_160=y # CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240 is not set CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ=160 -# CONFIG_ESP32_SPIRAM_SUPPORT is not set # CONFIG_ESP32_TRAX is not set CONFIG_ESP32_TRACEMEM_RESERVE_DRAM=0x0 # CONFIG_ESP32_UNIVERSAL_MAC_ADDRESSES_TWO is not set @@ -1124,13 +1123,13 @@ CONFIG_RTC_CLK_SRC_INT_RC=y # CONFIG_RTC_CLK_SRC_EXT_OSC is not set # CONFIG_RTC_CLK_SRC_INT_8MD256 is not set CONFIG_RTC_CLK_CAL_CYCLES=1024 -CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY=2000 +CONFIG_ESP_SLEEP_DEEP_SLEEP_WAKEUP_DELAY=2000 CONFIG_ESP32_XTAL_FREQ_40=y # CONFIG_ESP32_XTAL_FREQ_26 is not set # CONFIG_ESP32_XTAL_FREQ_AUTO is not set CONFIG_ESP32_XTAL_FREQ=40 # CONFIG_ESP32_DISABLE_BASIC_ROM_CONSOLE is not set -# CONFIG_ESP32_COMPATIBLE_PRE_V2_1_BOOTLOADERS is not set +# CONFIG_APP_COMPATIBLE_PRE_V2_1_BOOTLOADERS is not set # CONFIG_ESP32_USE_FIXED_STATIC_RAM_SIZE is not set CONFIG_ESP32_DPORT_DIS_INTERRUPT_LVL=5 # end of ESP32-specific diff --git a/examples/bluetooth/bluedroid/ble/ble_compatibility_test/sdkconfig.defaults.esp32s3 b/examples/bluetooth/bluedroid/ble/ble_compatibility_test/sdkconfig.defaults.esp32s3 index edf9830c9f..0ed7851011 100644 --- a/examples/bluetooth/bluedroid/ble/ble_compatibility_test/sdkconfig.defaults.esp32s3 +++ b/examples/bluetooth/bluedroid/ble/ble_compatibility_test/sdkconfig.defaults.esp32s3 @@ -354,7 +354,6 @@ CONFIG_ESP32S3_DATA_CACHE_LINE_SIZE=32 # CONFIG_ESP32S3_DATA_CACHE_WRAP is not set # end of Cache config -# CONFIG_ESP32S3_SPIRAM_SUPPORT is not set # CONFIG_ESP32S3_TRAX is not set CONFIG_ESP32S3_TRACEMEM_RESERVE_DRAM=0x0 # CONFIG_ESP32S3_ULP_COPROC_ENABLED is not set diff --git a/examples/bluetooth/bluedroid/ble/ble_eddystone/sdkconfig.defaults.esp32s3 b/examples/bluetooth/bluedroid/ble/ble_eddystone/sdkconfig.defaults.esp32s3 index edf9830c9f..0ed7851011 100644 --- a/examples/bluetooth/bluedroid/ble/ble_eddystone/sdkconfig.defaults.esp32s3 +++ b/examples/bluetooth/bluedroid/ble/ble_eddystone/sdkconfig.defaults.esp32s3 @@ -354,7 +354,6 @@ CONFIG_ESP32S3_DATA_CACHE_LINE_SIZE=32 # CONFIG_ESP32S3_DATA_CACHE_WRAP is not set # end of Cache config -# CONFIG_ESP32S3_SPIRAM_SUPPORT is not set # CONFIG_ESP32S3_TRAX is not set CONFIG_ESP32S3_TRACEMEM_RESERVE_DRAM=0x0 # CONFIG_ESP32S3_ULP_COPROC_ENABLED is not set diff --git a/examples/bluetooth/bluedroid/ble/ble_hid_device_demo/sdkconfig.defaults.esp32 b/examples/bluetooth/bluedroid/ble/ble_hid_device_demo/sdkconfig.defaults.esp32 index 8ff1347357..13edaa05f3 100644 --- a/examples/bluetooth/bluedroid/ble/ble_hid_device_demo/sdkconfig.defaults.esp32 +++ b/examples/bluetooth/bluedroid/ble/ble_hid_device_demo/sdkconfig.defaults.esp32 @@ -1095,7 +1095,6 @@ CONFIG_ESP32_DPORT_WORKAROUND=y CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_160=y # CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240 is not set CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ=160 -# CONFIG_ESP32_SPIRAM_SUPPORT is not set # CONFIG_ESP32_TRAX is not set CONFIG_ESP32_TRACEMEM_RESERVE_DRAM=0x0 # CONFIG_ESP32_UNIVERSAL_MAC_ADDRESSES_TWO is not set @@ -1124,13 +1123,13 @@ CONFIG_RTC_CLK_SRC_INT_RC=y # CONFIG_RTC_CLK_SRC_EXT_OSC is not set # CONFIG_RTC_CLK_SRC_INT_8MD256 is not set CONFIG_RTC_CLK_CAL_CYCLES=1024 -CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY=2000 +CONFIG_ESP_SLEEP_DEEP_SLEEP_WAKEUP_DELAY=2000 CONFIG_ESP32_XTAL_FREQ_40=y # CONFIG_ESP32_XTAL_FREQ_26 is not set # CONFIG_ESP32_XTAL_FREQ_AUTO is not set CONFIG_ESP32_XTAL_FREQ=40 # CONFIG_ESP32_DISABLE_BASIC_ROM_CONSOLE is not set -# CONFIG_ESP32_COMPATIBLE_PRE_V2_1_BOOTLOADERS is not set +# CONFIG_APP_COMPATIBLE_PRE_V2_1_BOOTLOADERS is not set # CONFIG_ESP32_USE_FIXED_STATIC_RAM_SIZE is not set CONFIG_ESP32_DPORT_DIS_INTERRUPT_LVL=5 # end of ESP32-specific diff --git a/examples/bluetooth/bluedroid/ble/ble_hid_device_demo/sdkconfig.defaults.esp32s3 b/examples/bluetooth/bluedroid/ble/ble_hid_device_demo/sdkconfig.defaults.esp32s3 index edf9830c9f..0ed7851011 100644 --- a/examples/bluetooth/bluedroid/ble/ble_hid_device_demo/sdkconfig.defaults.esp32s3 +++ b/examples/bluetooth/bluedroid/ble/ble_hid_device_demo/sdkconfig.defaults.esp32s3 @@ -354,7 +354,6 @@ CONFIG_ESP32S3_DATA_CACHE_LINE_SIZE=32 # CONFIG_ESP32S3_DATA_CACHE_WRAP is not set # end of Cache config -# CONFIG_ESP32S3_SPIRAM_SUPPORT is not set # CONFIG_ESP32S3_TRAX is not set CONFIG_ESP32S3_TRACEMEM_RESERVE_DRAM=0x0 # CONFIG_ESP32S3_ULP_COPROC_ENABLED is not set diff --git a/examples/bluetooth/bluedroid/ble/ble_ibeacon/sdkconfig.defaults.esp32 b/examples/bluetooth/bluedroid/ble/ble_ibeacon/sdkconfig.defaults.esp32 index 718eddf0f6..6f9cc9b777 100644 --- a/examples/bluetooth/bluedroid/ble/ble_ibeacon/sdkconfig.defaults.esp32 +++ b/examples/bluetooth/bluedroid/ble/ble_ibeacon/sdkconfig.defaults.esp32 @@ -1092,7 +1092,6 @@ CONFIG_ESP32_DPORT_WORKAROUND=y CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_160=y # CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240 is not set CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ=160 -# CONFIG_ESP32_SPIRAM_SUPPORT is not set # CONFIG_ESP32_TRAX is not set CONFIG_ESP32_TRACEMEM_RESERVE_DRAM=0x0 # CONFIG_ESP32_UNIVERSAL_MAC_ADDRESSES_TWO is not set @@ -1121,13 +1120,13 @@ CONFIG_RTC_CLK_SRC_INT_RC=y # CONFIG_RTC_CLK_SRC_EXT_OSC is not set # CONFIG_RTC_CLK_SRC_INT_8MD256 is not set CONFIG_RTC_CLK_CAL_CYCLES=1024 -CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY=2000 +CONFIG_ESP_SLEEP_DEEP_SLEEP_WAKEUP_DELAY=2000 CONFIG_ESP32_XTAL_FREQ_40=y # CONFIG_ESP32_XTAL_FREQ_26 is not set # CONFIG_ESP32_XTAL_FREQ_AUTO is not set CONFIG_ESP32_XTAL_FREQ=40 # CONFIG_ESP32_DISABLE_BASIC_ROM_CONSOLE is not set -# CONFIG_ESP32_COMPATIBLE_PRE_V2_1_BOOTLOADERS is not set +# CONFIG_APP_COMPATIBLE_PRE_V2_1_BOOTLOADERS is not set # CONFIG_ESP32_USE_FIXED_STATIC_RAM_SIZE is not set CONFIG_ESP32_DPORT_DIS_INTERRUPT_LVL=5 # end of ESP32-specific diff --git a/examples/bluetooth/bluedroid/ble/ble_ibeacon/sdkconfig.defaults.esp32s3 b/examples/bluetooth/bluedroid/ble/ble_ibeacon/sdkconfig.defaults.esp32s3 index edf9830c9f..0ed7851011 100644 --- a/examples/bluetooth/bluedroid/ble/ble_ibeacon/sdkconfig.defaults.esp32s3 +++ b/examples/bluetooth/bluedroid/ble/ble_ibeacon/sdkconfig.defaults.esp32s3 @@ -354,7 +354,6 @@ CONFIG_ESP32S3_DATA_CACHE_LINE_SIZE=32 # CONFIG_ESP32S3_DATA_CACHE_WRAP is not set # end of Cache config -# CONFIG_ESP32S3_SPIRAM_SUPPORT is not set # CONFIG_ESP32S3_TRAX is not set CONFIG_ESP32S3_TRACEMEM_RESERVE_DRAM=0x0 # CONFIG_ESP32S3_ULP_COPROC_ENABLED is not set diff --git a/examples/bluetooth/bluedroid/ble/ble_spp_client/sdkconfig.defaults.esp32 b/examples/bluetooth/bluedroid/ble/ble_spp_client/sdkconfig.defaults.esp32 index 5dcced8ec1..5c21cae27b 100644 --- a/examples/bluetooth/bluedroid/ble/ble_spp_client/sdkconfig.defaults.esp32 +++ b/examples/bluetooth/bluedroid/ble/ble_spp_client/sdkconfig.defaults.esp32 @@ -1094,7 +1094,6 @@ CONFIG_ESP32_DPORT_WORKAROUND=y CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_160=y # CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240 is not set CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ=160 -# CONFIG_ESP32_SPIRAM_SUPPORT is not set # CONFIG_ESP32_TRAX is not set CONFIG_ESP32_TRACEMEM_RESERVE_DRAM=0x0 # CONFIG_ESP32_UNIVERSAL_MAC_ADDRESSES_TWO is not set @@ -1123,13 +1122,13 @@ CONFIG_RTC_CLK_SRC_INT_RC=y # CONFIG_RTC_CLK_SRC_EXT_OSC is not set # CONFIG_RTC_CLK_SRC_INT_8MD256 is not set CONFIG_RTC_CLK_CAL_CYCLES=1024 -CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY=2000 +CONFIG_ESP_SLEEP_DEEP_SLEEP_WAKEUP_DELAY=2000 CONFIG_ESP32_XTAL_FREQ_40=y # CONFIG_ESP32_XTAL_FREQ_26 is not set # CONFIG_ESP32_XTAL_FREQ_AUTO is not set CONFIG_ESP32_XTAL_FREQ=40 # CONFIG_ESP32_DISABLE_BASIC_ROM_CONSOLE is not set -# CONFIG_ESP32_COMPATIBLE_PRE_V2_1_BOOTLOADERS is not set +# CONFIG_APP_COMPATIBLE_PRE_V2_1_BOOTLOADERS is not set # CONFIG_ESP32_USE_FIXED_STATIC_RAM_SIZE is not set CONFIG_ESP32_DPORT_DIS_INTERRUPT_LVL=5 # end of ESP32-specific diff --git a/examples/bluetooth/bluedroid/ble/ble_spp_client/sdkconfig.defaults.esp32s3 b/examples/bluetooth/bluedroid/ble/ble_spp_client/sdkconfig.defaults.esp32s3 index edf9830c9f..0ed7851011 100644 --- a/examples/bluetooth/bluedroid/ble/ble_spp_client/sdkconfig.defaults.esp32s3 +++ b/examples/bluetooth/bluedroid/ble/ble_spp_client/sdkconfig.defaults.esp32s3 @@ -354,7 +354,6 @@ CONFIG_ESP32S3_DATA_CACHE_LINE_SIZE=32 # CONFIG_ESP32S3_DATA_CACHE_WRAP is not set # end of Cache config -# CONFIG_ESP32S3_SPIRAM_SUPPORT is not set # CONFIG_ESP32S3_TRAX is not set CONFIG_ESP32S3_TRACEMEM_RESERVE_DRAM=0x0 # CONFIG_ESP32S3_ULP_COPROC_ENABLED is not set diff --git a/examples/bluetooth/bluedroid/ble/ble_spp_server/sdkconfig.defaults.esp32 b/examples/bluetooth/bluedroid/ble/ble_spp_server/sdkconfig.defaults.esp32 index 718eddf0f6..6f9cc9b777 100644 --- a/examples/bluetooth/bluedroid/ble/ble_spp_server/sdkconfig.defaults.esp32 +++ b/examples/bluetooth/bluedroid/ble/ble_spp_server/sdkconfig.defaults.esp32 @@ -1092,7 +1092,6 @@ CONFIG_ESP32_DPORT_WORKAROUND=y CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_160=y # CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240 is not set CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ=160 -# CONFIG_ESP32_SPIRAM_SUPPORT is not set # CONFIG_ESP32_TRAX is not set CONFIG_ESP32_TRACEMEM_RESERVE_DRAM=0x0 # CONFIG_ESP32_UNIVERSAL_MAC_ADDRESSES_TWO is not set @@ -1121,13 +1120,13 @@ CONFIG_RTC_CLK_SRC_INT_RC=y # CONFIG_RTC_CLK_SRC_EXT_OSC is not set # CONFIG_RTC_CLK_SRC_INT_8MD256 is not set CONFIG_RTC_CLK_CAL_CYCLES=1024 -CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY=2000 +CONFIG_ESP_SLEEP_DEEP_SLEEP_WAKEUP_DELAY=2000 CONFIG_ESP32_XTAL_FREQ_40=y # CONFIG_ESP32_XTAL_FREQ_26 is not set # CONFIG_ESP32_XTAL_FREQ_AUTO is not set CONFIG_ESP32_XTAL_FREQ=40 # CONFIG_ESP32_DISABLE_BASIC_ROM_CONSOLE is not set -# CONFIG_ESP32_COMPATIBLE_PRE_V2_1_BOOTLOADERS is not set +# CONFIG_APP_COMPATIBLE_PRE_V2_1_BOOTLOADERS is not set # CONFIG_ESP32_USE_FIXED_STATIC_RAM_SIZE is not set CONFIG_ESP32_DPORT_DIS_INTERRUPT_LVL=5 # end of ESP32-specific diff --git a/examples/bluetooth/bluedroid/ble/ble_spp_server/sdkconfig.defaults.esp32s3 b/examples/bluetooth/bluedroid/ble/ble_spp_server/sdkconfig.defaults.esp32s3 index edf9830c9f..0ed7851011 100644 --- a/examples/bluetooth/bluedroid/ble/ble_spp_server/sdkconfig.defaults.esp32s3 +++ b/examples/bluetooth/bluedroid/ble/ble_spp_server/sdkconfig.defaults.esp32s3 @@ -354,7 +354,6 @@ CONFIG_ESP32S3_DATA_CACHE_LINE_SIZE=32 # CONFIG_ESP32S3_DATA_CACHE_WRAP is not set # end of Cache config -# CONFIG_ESP32S3_SPIRAM_SUPPORT is not set # CONFIG_ESP32S3_TRAX is not set CONFIG_ESP32S3_TRACEMEM_RESERVE_DRAM=0x0 # CONFIG_ESP32S3_ULP_COPROC_ENABLED is not set diff --git a/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_client/sdkconfig.defaults.esp32 b/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_client/sdkconfig.defaults.esp32 index 5dcced8ec1..5c21cae27b 100644 --- a/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_client/sdkconfig.defaults.esp32 +++ b/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_client/sdkconfig.defaults.esp32 @@ -1094,7 +1094,6 @@ CONFIG_ESP32_DPORT_WORKAROUND=y CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_160=y # CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240 is not set CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ=160 -# CONFIG_ESP32_SPIRAM_SUPPORT is not set # CONFIG_ESP32_TRAX is not set CONFIG_ESP32_TRACEMEM_RESERVE_DRAM=0x0 # CONFIG_ESP32_UNIVERSAL_MAC_ADDRESSES_TWO is not set @@ -1123,13 +1122,13 @@ CONFIG_RTC_CLK_SRC_INT_RC=y # CONFIG_RTC_CLK_SRC_EXT_OSC is not set # CONFIG_RTC_CLK_SRC_INT_8MD256 is not set CONFIG_RTC_CLK_CAL_CYCLES=1024 -CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY=2000 +CONFIG_ESP_SLEEP_DEEP_SLEEP_WAKEUP_DELAY=2000 CONFIG_ESP32_XTAL_FREQ_40=y # CONFIG_ESP32_XTAL_FREQ_26 is not set # CONFIG_ESP32_XTAL_FREQ_AUTO is not set CONFIG_ESP32_XTAL_FREQ=40 # CONFIG_ESP32_DISABLE_BASIC_ROM_CONSOLE is not set -# CONFIG_ESP32_COMPATIBLE_PRE_V2_1_BOOTLOADERS is not set +# CONFIG_APP_COMPATIBLE_PRE_V2_1_BOOTLOADERS is not set # CONFIG_ESP32_USE_FIXED_STATIC_RAM_SIZE is not set CONFIG_ESP32_DPORT_DIS_INTERRUPT_LVL=5 # end of ESP32-specific diff --git a/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_client/sdkconfig.defaults.esp32s3 b/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_client/sdkconfig.defaults.esp32s3 index edf9830c9f..0ed7851011 100644 --- a/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_client/sdkconfig.defaults.esp32s3 +++ b/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_client/sdkconfig.defaults.esp32s3 @@ -354,7 +354,6 @@ CONFIG_ESP32S3_DATA_CACHE_LINE_SIZE=32 # CONFIG_ESP32S3_DATA_CACHE_WRAP is not set # end of Cache config -# CONFIG_ESP32S3_SPIRAM_SUPPORT is not set # CONFIG_ESP32S3_TRAX is not set CONFIG_ESP32S3_TRACEMEM_RESERVE_DRAM=0x0 # CONFIG_ESP32S3_ULP_COPROC_ENABLED is not set diff --git a/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_server/sdkconfig.defaults.esp32 b/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_server/sdkconfig.defaults.esp32 index 718eddf0f6..6f9cc9b777 100644 --- a/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_server/sdkconfig.defaults.esp32 +++ b/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_server/sdkconfig.defaults.esp32 @@ -1092,7 +1092,6 @@ CONFIG_ESP32_DPORT_WORKAROUND=y CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_160=y # CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240 is not set CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ=160 -# CONFIG_ESP32_SPIRAM_SUPPORT is not set # CONFIG_ESP32_TRAX is not set CONFIG_ESP32_TRACEMEM_RESERVE_DRAM=0x0 # CONFIG_ESP32_UNIVERSAL_MAC_ADDRESSES_TWO is not set @@ -1121,13 +1120,13 @@ CONFIG_RTC_CLK_SRC_INT_RC=y # CONFIG_RTC_CLK_SRC_EXT_OSC is not set # CONFIG_RTC_CLK_SRC_INT_8MD256 is not set CONFIG_RTC_CLK_CAL_CYCLES=1024 -CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY=2000 +CONFIG_ESP_SLEEP_DEEP_SLEEP_WAKEUP_DELAY=2000 CONFIG_ESP32_XTAL_FREQ_40=y # CONFIG_ESP32_XTAL_FREQ_26 is not set # CONFIG_ESP32_XTAL_FREQ_AUTO is not set CONFIG_ESP32_XTAL_FREQ=40 # CONFIG_ESP32_DISABLE_BASIC_ROM_CONSOLE is not set -# CONFIG_ESP32_COMPATIBLE_PRE_V2_1_BOOTLOADERS is not set +# CONFIG_APP_COMPATIBLE_PRE_V2_1_BOOTLOADERS is not set # CONFIG_ESP32_USE_FIXED_STATIC_RAM_SIZE is not set CONFIG_ESP32_DPORT_DIS_INTERRUPT_LVL=5 # end of ESP32-specific diff --git a/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_server/sdkconfig.defaults.esp32s3 b/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_server/sdkconfig.defaults.esp32s3 index edf9830c9f..0ed7851011 100644 --- a/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_server/sdkconfig.defaults.esp32s3 +++ b/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_server/sdkconfig.defaults.esp32s3 @@ -354,7 +354,6 @@ CONFIG_ESP32S3_DATA_CACHE_LINE_SIZE=32 # CONFIG_ESP32S3_DATA_CACHE_WRAP is not set # end of Cache config -# CONFIG_ESP32S3_SPIRAM_SUPPORT is not set # CONFIG_ESP32S3_TRAX is not set CONFIG_ESP32S3_TRACEMEM_RESERVE_DRAM=0x0 # CONFIG_ESP32S3_ULP_COPROC_ENABLED is not set diff --git a/examples/bluetooth/bluedroid/ble/gatt_client/sdkconfig.defaults.esp32 b/examples/bluetooth/bluedroid/ble/gatt_client/sdkconfig.defaults.esp32 index 5dcced8ec1..5c21cae27b 100644 --- a/examples/bluetooth/bluedroid/ble/gatt_client/sdkconfig.defaults.esp32 +++ b/examples/bluetooth/bluedroid/ble/gatt_client/sdkconfig.defaults.esp32 @@ -1094,7 +1094,6 @@ CONFIG_ESP32_DPORT_WORKAROUND=y CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_160=y # CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240 is not set CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ=160 -# CONFIG_ESP32_SPIRAM_SUPPORT is not set # CONFIG_ESP32_TRAX is not set CONFIG_ESP32_TRACEMEM_RESERVE_DRAM=0x0 # CONFIG_ESP32_UNIVERSAL_MAC_ADDRESSES_TWO is not set @@ -1123,13 +1122,13 @@ CONFIG_RTC_CLK_SRC_INT_RC=y # CONFIG_RTC_CLK_SRC_EXT_OSC is not set # CONFIG_RTC_CLK_SRC_INT_8MD256 is not set CONFIG_RTC_CLK_CAL_CYCLES=1024 -CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY=2000 +CONFIG_ESP_SLEEP_DEEP_SLEEP_WAKEUP_DELAY=2000 CONFIG_ESP32_XTAL_FREQ_40=y # CONFIG_ESP32_XTAL_FREQ_26 is not set # CONFIG_ESP32_XTAL_FREQ_AUTO is not set CONFIG_ESP32_XTAL_FREQ=40 # CONFIG_ESP32_DISABLE_BASIC_ROM_CONSOLE is not set -# CONFIG_ESP32_COMPATIBLE_PRE_V2_1_BOOTLOADERS is not set +# CONFIG_APP_COMPATIBLE_PRE_V2_1_BOOTLOADERS is not set # CONFIG_ESP32_USE_FIXED_STATIC_RAM_SIZE is not set CONFIG_ESP32_DPORT_DIS_INTERRUPT_LVL=5 # end of ESP32-specific diff --git a/examples/bluetooth/bluedroid/ble/gatt_client/sdkconfig.defaults.esp32s3 b/examples/bluetooth/bluedroid/ble/gatt_client/sdkconfig.defaults.esp32s3 index edf9830c9f..0ed7851011 100644 --- a/examples/bluetooth/bluedroid/ble/gatt_client/sdkconfig.defaults.esp32s3 +++ b/examples/bluetooth/bluedroid/ble/gatt_client/sdkconfig.defaults.esp32s3 @@ -354,7 +354,6 @@ CONFIG_ESP32S3_DATA_CACHE_LINE_SIZE=32 # CONFIG_ESP32S3_DATA_CACHE_WRAP is not set # end of Cache config -# CONFIG_ESP32S3_SPIRAM_SUPPORT is not set # CONFIG_ESP32S3_TRAX is not set CONFIG_ESP32S3_TRACEMEM_RESERVE_DRAM=0x0 # CONFIG_ESP32S3_ULP_COPROC_ENABLED is not set diff --git a/examples/bluetooth/bluedroid/ble/gatt_security_client/sdkconfig.defaults.esp32 b/examples/bluetooth/bluedroid/ble/gatt_security_client/sdkconfig.defaults.esp32 index a02a825c38..27863f013c 100644 --- a/examples/bluetooth/bluedroid/ble/gatt_security_client/sdkconfig.defaults.esp32 +++ b/examples/bluetooth/bluedroid/ble/gatt_security_client/sdkconfig.defaults.esp32 @@ -1090,7 +1090,6 @@ CONFIG_ESP32_DPORT_WORKAROUND=y CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_160=y # CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240 is not set CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ=160 -# CONFIG_ESP32_SPIRAM_SUPPORT is not set # CONFIG_ESP32_TRAX is not set CONFIG_ESP32_TRACEMEM_RESERVE_DRAM=0x0 # CONFIG_ESP32_UNIVERSAL_MAC_ADDRESSES_TWO is not set @@ -1119,13 +1118,13 @@ CONFIG_RTC_CLK_SRC_INT_RC=y # CONFIG_RTC_CLK_SRC_EXT_OSC is not set # CONFIG_RTC_CLK_SRC_INT_8MD256 is not set CONFIG_RTC_CLK_CAL_CYCLES=1024 -CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY=2000 +CONFIG_ESP_SLEEP_DEEP_SLEEP_WAKEUP_DELAY=2000 CONFIG_ESP32_XTAL_FREQ_40=y # CONFIG_ESP32_XTAL_FREQ_26 is not set # CONFIG_ESP32_XTAL_FREQ_AUTO is not set CONFIG_ESP32_XTAL_FREQ=40 # CONFIG_ESP32_DISABLE_BASIC_ROM_CONSOLE is not set -# CONFIG_ESP32_COMPATIBLE_PRE_V2_1_BOOTLOADERS is not set +# CONFIG_APP_COMPATIBLE_PRE_V2_1_BOOTLOADERS is not set # CONFIG_ESP32_USE_FIXED_STATIC_RAM_SIZE is not set CONFIG_ESP32_DPORT_DIS_INTERRUPT_LVL=5 # end of ESP32-specific diff --git a/examples/bluetooth/bluedroid/ble/gatt_security_client/sdkconfig.defaults.esp32s3 b/examples/bluetooth/bluedroid/ble/gatt_security_client/sdkconfig.defaults.esp32s3 index edf9830c9f..0ed7851011 100644 --- a/examples/bluetooth/bluedroid/ble/gatt_security_client/sdkconfig.defaults.esp32s3 +++ b/examples/bluetooth/bluedroid/ble/gatt_security_client/sdkconfig.defaults.esp32s3 @@ -354,7 +354,6 @@ CONFIG_ESP32S3_DATA_CACHE_LINE_SIZE=32 # CONFIG_ESP32S3_DATA_CACHE_WRAP is not set # end of Cache config -# CONFIG_ESP32S3_SPIRAM_SUPPORT is not set # CONFIG_ESP32S3_TRAX is not set CONFIG_ESP32S3_TRACEMEM_RESERVE_DRAM=0x0 # CONFIG_ESP32S3_ULP_COPROC_ENABLED is not set diff --git a/examples/bluetooth/bluedroid/ble/gatt_security_server/sdkconfig.defaults.esp32 b/examples/bluetooth/bluedroid/ble/gatt_security_server/sdkconfig.defaults.esp32 index 45a057c4d8..2292ffa132 100644 --- a/examples/bluetooth/bluedroid/ble/gatt_security_server/sdkconfig.defaults.esp32 +++ b/examples/bluetooth/bluedroid/ble/gatt_security_server/sdkconfig.defaults.esp32 @@ -1094,7 +1094,6 @@ CONFIG_ESP32_DPORT_WORKAROUND=y CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_160=y # CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240 is not set CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ=160 -# CONFIG_ESP32_SPIRAM_SUPPORT is not set # CONFIG_ESP32_TRAX is not set CONFIG_ESP32_TRACEMEM_RESERVE_DRAM=0x0 # CONFIG_ESP32_UNIVERSAL_MAC_ADDRESSES_TWO is not set @@ -1123,13 +1122,13 @@ CONFIG_RTC_CLK_SRC_INT_RC=y # CONFIG_RTC_CLK_SRC_EXT_OSC is not set # CONFIG_RTC_CLK_SRC_INT_8MD256 is not set CONFIG_RTC_CLK_CAL_CYCLES=1024 -CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY=2000 +CONFIG_ESP_SLEEP_DEEP_SLEEP_WAKEUP_DELAY=2000 CONFIG_ESP32_XTAL_FREQ_40=y # CONFIG_ESP32_XTAL_FREQ_26 is not set # CONFIG_ESP32_XTAL_FREQ_AUTO is not set CONFIG_ESP32_XTAL_FREQ=40 # CONFIG_ESP32_DISABLE_BASIC_ROM_CONSOLE is not set -# CONFIG_ESP32_COMPATIBLE_PRE_V2_1_BOOTLOADERS is not set +# CONFIG_APP_COMPATIBLE_PRE_V2_1_BOOTLOADERS is not set # CONFIG_ESP32_USE_FIXED_STATIC_RAM_SIZE is not set CONFIG_ESP32_DPORT_DIS_INTERRUPT_LVL=5 # end of ESP32-specific diff --git a/examples/bluetooth/bluedroid/ble/gatt_security_server/sdkconfig.defaults.esp32s3 b/examples/bluetooth/bluedroid/ble/gatt_security_server/sdkconfig.defaults.esp32s3 index edf9830c9f..0ed7851011 100644 --- a/examples/bluetooth/bluedroid/ble/gatt_security_server/sdkconfig.defaults.esp32s3 +++ b/examples/bluetooth/bluedroid/ble/gatt_security_server/sdkconfig.defaults.esp32s3 @@ -354,7 +354,6 @@ CONFIG_ESP32S3_DATA_CACHE_LINE_SIZE=32 # CONFIG_ESP32S3_DATA_CACHE_WRAP is not set # end of Cache config -# CONFIG_ESP32S3_SPIRAM_SUPPORT is not set # CONFIG_ESP32S3_TRAX is not set CONFIG_ESP32S3_TRACEMEM_RESERVE_DRAM=0x0 # CONFIG_ESP32S3_ULP_COPROC_ENABLED is not set diff --git a/examples/bluetooth/bluedroid/ble/gatt_server/sdkconfig.defaults.esp32 b/examples/bluetooth/bluedroid/ble/gatt_server/sdkconfig.defaults.esp32 index 718eddf0f6..6f9cc9b777 100644 --- a/examples/bluetooth/bluedroid/ble/gatt_server/sdkconfig.defaults.esp32 +++ b/examples/bluetooth/bluedroid/ble/gatt_server/sdkconfig.defaults.esp32 @@ -1092,7 +1092,6 @@ CONFIG_ESP32_DPORT_WORKAROUND=y CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_160=y # CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240 is not set CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ=160 -# CONFIG_ESP32_SPIRAM_SUPPORT is not set # CONFIG_ESP32_TRAX is not set CONFIG_ESP32_TRACEMEM_RESERVE_DRAM=0x0 # CONFIG_ESP32_UNIVERSAL_MAC_ADDRESSES_TWO is not set @@ -1121,13 +1120,13 @@ CONFIG_RTC_CLK_SRC_INT_RC=y # CONFIG_RTC_CLK_SRC_EXT_OSC is not set # CONFIG_RTC_CLK_SRC_INT_8MD256 is not set CONFIG_RTC_CLK_CAL_CYCLES=1024 -CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY=2000 +CONFIG_ESP_SLEEP_DEEP_SLEEP_WAKEUP_DELAY=2000 CONFIG_ESP32_XTAL_FREQ_40=y # CONFIG_ESP32_XTAL_FREQ_26 is not set # CONFIG_ESP32_XTAL_FREQ_AUTO is not set CONFIG_ESP32_XTAL_FREQ=40 # CONFIG_ESP32_DISABLE_BASIC_ROM_CONSOLE is not set -# CONFIG_ESP32_COMPATIBLE_PRE_V2_1_BOOTLOADERS is not set +# CONFIG_APP_COMPATIBLE_PRE_V2_1_BOOTLOADERS is not set # CONFIG_ESP32_USE_FIXED_STATIC_RAM_SIZE is not set CONFIG_ESP32_DPORT_DIS_INTERRUPT_LVL=5 # end of ESP32-specific diff --git a/examples/bluetooth/bluedroid/ble/gatt_server/sdkconfig.defaults.esp32s3 b/examples/bluetooth/bluedroid/ble/gatt_server/sdkconfig.defaults.esp32s3 index edf9830c9f..0ed7851011 100644 --- a/examples/bluetooth/bluedroid/ble/gatt_server/sdkconfig.defaults.esp32s3 +++ b/examples/bluetooth/bluedroid/ble/gatt_server/sdkconfig.defaults.esp32s3 @@ -354,7 +354,6 @@ CONFIG_ESP32S3_DATA_CACHE_LINE_SIZE=32 # CONFIG_ESP32S3_DATA_CACHE_WRAP is not set # end of Cache config -# CONFIG_ESP32S3_SPIRAM_SUPPORT is not set # CONFIG_ESP32S3_TRAX is not set CONFIG_ESP32S3_TRACEMEM_RESERVE_DRAM=0x0 # CONFIG_ESP32S3_ULP_COPROC_ENABLED is not set diff --git a/examples/bluetooth/bluedroid/ble/gatt_server_service_table/sdkconfig.defaults.esp32 b/examples/bluetooth/bluedroid/ble/gatt_server_service_table/sdkconfig.defaults.esp32 index 718eddf0f6..6f9cc9b777 100644 --- a/examples/bluetooth/bluedroid/ble/gatt_server_service_table/sdkconfig.defaults.esp32 +++ b/examples/bluetooth/bluedroid/ble/gatt_server_service_table/sdkconfig.defaults.esp32 @@ -1092,7 +1092,6 @@ CONFIG_ESP32_DPORT_WORKAROUND=y CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_160=y # CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240 is not set CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ=160 -# CONFIG_ESP32_SPIRAM_SUPPORT is not set # CONFIG_ESP32_TRAX is not set CONFIG_ESP32_TRACEMEM_RESERVE_DRAM=0x0 # CONFIG_ESP32_UNIVERSAL_MAC_ADDRESSES_TWO is not set @@ -1121,13 +1120,13 @@ CONFIG_RTC_CLK_SRC_INT_RC=y # CONFIG_RTC_CLK_SRC_EXT_OSC is not set # CONFIG_RTC_CLK_SRC_INT_8MD256 is not set CONFIG_RTC_CLK_CAL_CYCLES=1024 -CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY=2000 +CONFIG_ESP_SLEEP_DEEP_SLEEP_WAKEUP_DELAY=2000 CONFIG_ESP32_XTAL_FREQ_40=y # CONFIG_ESP32_XTAL_FREQ_26 is not set # CONFIG_ESP32_XTAL_FREQ_AUTO is not set CONFIG_ESP32_XTAL_FREQ=40 # CONFIG_ESP32_DISABLE_BASIC_ROM_CONSOLE is not set -# CONFIG_ESP32_COMPATIBLE_PRE_V2_1_BOOTLOADERS is not set +# CONFIG_APP_COMPATIBLE_PRE_V2_1_BOOTLOADERS is not set # CONFIG_ESP32_USE_FIXED_STATIC_RAM_SIZE is not set CONFIG_ESP32_DPORT_DIS_INTERRUPT_LVL=5 # end of ESP32-specific diff --git a/examples/bluetooth/bluedroid/ble/gatt_server_service_table/sdkconfig.defaults.esp32s3 b/examples/bluetooth/bluedroid/ble/gatt_server_service_table/sdkconfig.defaults.esp32s3 index edf9830c9f..0ed7851011 100644 --- a/examples/bluetooth/bluedroid/ble/gatt_server_service_table/sdkconfig.defaults.esp32s3 +++ b/examples/bluetooth/bluedroid/ble/gatt_server_service_table/sdkconfig.defaults.esp32s3 @@ -354,7 +354,6 @@ CONFIG_ESP32S3_DATA_CACHE_LINE_SIZE=32 # CONFIG_ESP32S3_DATA_CACHE_WRAP is not set # end of Cache config -# CONFIG_ESP32S3_SPIRAM_SUPPORT is not set # CONFIG_ESP32S3_TRAX is not set CONFIG_ESP32S3_TRACEMEM_RESERVE_DRAM=0x0 # CONFIG_ESP32S3_ULP_COPROC_ENABLED is not set diff --git a/examples/bluetooth/bluedroid/ble/gattc_multi_connect/sdkconfig.defaults.esp32 b/examples/bluetooth/bluedroid/ble/gattc_multi_connect/sdkconfig.defaults.esp32 index 5dcced8ec1..5c21cae27b 100644 --- a/examples/bluetooth/bluedroid/ble/gattc_multi_connect/sdkconfig.defaults.esp32 +++ b/examples/bluetooth/bluedroid/ble/gattc_multi_connect/sdkconfig.defaults.esp32 @@ -1094,7 +1094,6 @@ CONFIG_ESP32_DPORT_WORKAROUND=y CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_160=y # CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240 is not set CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ=160 -# CONFIG_ESP32_SPIRAM_SUPPORT is not set # CONFIG_ESP32_TRAX is not set CONFIG_ESP32_TRACEMEM_RESERVE_DRAM=0x0 # CONFIG_ESP32_UNIVERSAL_MAC_ADDRESSES_TWO is not set @@ -1123,13 +1122,13 @@ CONFIG_RTC_CLK_SRC_INT_RC=y # CONFIG_RTC_CLK_SRC_EXT_OSC is not set # CONFIG_RTC_CLK_SRC_INT_8MD256 is not set CONFIG_RTC_CLK_CAL_CYCLES=1024 -CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY=2000 +CONFIG_ESP_SLEEP_DEEP_SLEEP_WAKEUP_DELAY=2000 CONFIG_ESP32_XTAL_FREQ_40=y # CONFIG_ESP32_XTAL_FREQ_26 is not set # CONFIG_ESP32_XTAL_FREQ_AUTO is not set CONFIG_ESP32_XTAL_FREQ=40 # CONFIG_ESP32_DISABLE_BASIC_ROM_CONSOLE is not set -# CONFIG_ESP32_COMPATIBLE_PRE_V2_1_BOOTLOADERS is not set +# CONFIG_APP_COMPATIBLE_PRE_V2_1_BOOTLOADERS is not set # CONFIG_ESP32_USE_FIXED_STATIC_RAM_SIZE is not set CONFIG_ESP32_DPORT_DIS_INTERRUPT_LVL=5 # end of ESP32-specific diff --git a/examples/bluetooth/bluedroid/ble/gattc_multi_connect/sdkconfig.defaults.esp32s3 b/examples/bluetooth/bluedroid/ble/gattc_multi_connect/sdkconfig.defaults.esp32s3 index edf9830c9f..0ed7851011 100644 --- a/examples/bluetooth/bluedroid/ble/gattc_multi_connect/sdkconfig.defaults.esp32s3 +++ b/examples/bluetooth/bluedroid/ble/gattc_multi_connect/sdkconfig.defaults.esp32s3 @@ -354,7 +354,6 @@ CONFIG_ESP32S3_DATA_CACHE_LINE_SIZE=32 # CONFIG_ESP32S3_DATA_CACHE_WRAP is not set # end of Cache config -# CONFIG_ESP32S3_SPIRAM_SUPPORT is not set # CONFIG_ESP32S3_TRAX is not set CONFIG_ESP32S3_TRACEMEM_RESERVE_DRAM=0x0 # CONFIG_ESP32S3_ULP_COPROC_ENABLED is not set diff --git a/examples/bluetooth/bluedroid/ble_50/ble50_security_client/sdkconfig.defaults.esp32s3 b/examples/bluetooth/bluedroid/ble_50/ble50_security_client/sdkconfig.defaults.esp32s3 index 009cdbe60c..10d5374196 100644 --- a/examples/bluetooth/bluedroid/ble_50/ble50_security_client/sdkconfig.defaults.esp32s3 +++ b/examples/bluetooth/bluedroid/ble_50/ble50_security_client/sdkconfig.defaults.esp32s3 @@ -351,7 +351,6 @@ CONFIG_ESP32S3_DATA_CACHE_LINE_SIZE=32 # CONFIG_ESP32S3_DATA_CACHE_WRAP is not set # end of Cache config -# CONFIG_ESP32S3_SPIRAM_SUPPORT is not set # CONFIG_ESP32S3_TRAX is not set CONFIG_ESP32S3_TRACEMEM_RESERVE_DRAM=0x0 # CONFIG_ESP32S3_ULP_COPROC_ENABLED is not set diff --git a/examples/bluetooth/bluedroid/ble_50/ble50_security_server/sdkconfig.defaults.esp32s3 b/examples/bluetooth/bluedroid/ble_50/ble50_security_server/sdkconfig.defaults.esp32s3 index 009cdbe60c..10d5374196 100644 --- a/examples/bluetooth/bluedroid/ble_50/ble50_security_server/sdkconfig.defaults.esp32s3 +++ b/examples/bluetooth/bluedroid/ble_50/ble50_security_server/sdkconfig.defaults.esp32s3 @@ -351,7 +351,6 @@ CONFIG_ESP32S3_DATA_CACHE_LINE_SIZE=32 # CONFIG_ESP32S3_DATA_CACHE_WRAP is not set # end of Cache config -# CONFIG_ESP32S3_SPIRAM_SUPPORT is not set # CONFIG_ESP32S3_TRAX is not set CONFIG_ESP32S3_TRACEMEM_RESERVE_DRAM=0x0 # CONFIG_ESP32S3_ULP_COPROC_ENABLED is not set diff --git a/examples/bluetooth/bluedroid/ble_50/multi-adv/sdkconfig.defaults.esp32s3 b/examples/bluetooth/bluedroid/ble_50/multi-adv/sdkconfig.defaults.esp32s3 index 009cdbe60c..10d5374196 100644 --- a/examples/bluetooth/bluedroid/ble_50/multi-adv/sdkconfig.defaults.esp32s3 +++ b/examples/bluetooth/bluedroid/ble_50/multi-adv/sdkconfig.defaults.esp32s3 @@ -351,7 +351,6 @@ CONFIG_ESP32S3_DATA_CACHE_LINE_SIZE=32 # CONFIG_ESP32S3_DATA_CACHE_WRAP is not set # end of Cache config -# CONFIG_ESP32S3_SPIRAM_SUPPORT is not set # CONFIG_ESP32S3_TRAX is not set CONFIG_ESP32S3_TRACEMEM_RESERVE_DRAM=0x0 # CONFIG_ESP32S3_ULP_COPROC_ENABLED is not set diff --git a/examples/bluetooth/bluedroid/ble_50/peroidic_adv/sdkconfig.defaults.esp32s3 b/examples/bluetooth/bluedroid/ble_50/peroidic_adv/sdkconfig.defaults.esp32s3 index 009cdbe60c..10d5374196 100644 --- a/examples/bluetooth/bluedroid/ble_50/peroidic_adv/sdkconfig.defaults.esp32s3 +++ b/examples/bluetooth/bluedroid/ble_50/peroidic_adv/sdkconfig.defaults.esp32s3 @@ -351,7 +351,6 @@ CONFIG_ESP32S3_DATA_CACHE_LINE_SIZE=32 # CONFIG_ESP32S3_DATA_CACHE_WRAP is not set # end of Cache config -# CONFIG_ESP32S3_SPIRAM_SUPPORT is not set # CONFIG_ESP32S3_TRAX is not set CONFIG_ESP32S3_TRACEMEM_RESERVE_DRAM=0x0 # CONFIG_ESP32S3_ULP_COPROC_ENABLED is not set diff --git a/examples/bluetooth/bluedroid/ble_50/peroidic_sync/sdkconfig.defaults.esp32s3 b/examples/bluetooth/bluedroid/ble_50/peroidic_sync/sdkconfig.defaults.esp32s3 index 009cdbe60c..10d5374196 100644 --- a/examples/bluetooth/bluedroid/ble_50/peroidic_sync/sdkconfig.defaults.esp32s3 +++ b/examples/bluetooth/bluedroid/ble_50/peroidic_sync/sdkconfig.defaults.esp32s3 @@ -351,7 +351,6 @@ CONFIG_ESP32S3_DATA_CACHE_LINE_SIZE=32 # CONFIG_ESP32S3_DATA_CACHE_WRAP is not set # end of Cache config -# CONFIG_ESP32S3_SPIRAM_SUPPORT is not set # CONFIG_ESP32S3_TRAX is not set CONFIG_ESP32S3_TRACEMEM_RESERVE_DRAM=0x0 # CONFIG_ESP32S3_ULP_COPROC_ENABLED is not set diff --git a/examples/bluetooth/bluedroid/coex/gattc_gatts_coex/sdkconfig.defaults.esp32s3 b/examples/bluetooth/bluedroid/coex/gattc_gatts_coex/sdkconfig.defaults.esp32s3 index edf9830c9f..0ed7851011 100644 --- a/examples/bluetooth/bluedroid/coex/gattc_gatts_coex/sdkconfig.defaults.esp32s3 +++ b/examples/bluetooth/bluedroid/coex/gattc_gatts_coex/sdkconfig.defaults.esp32s3 @@ -354,7 +354,6 @@ CONFIG_ESP32S3_DATA_CACHE_LINE_SIZE=32 # CONFIG_ESP32S3_DATA_CACHE_WRAP is not set # end of Cache config -# CONFIG_ESP32S3_SPIRAM_SUPPORT is not set # CONFIG_ESP32S3_TRAX is not set CONFIG_ESP32S3_TRACEMEM_RESERVE_DRAM=0x0 # CONFIG_ESP32S3_ULP_COPROC_ENABLED is not set diff --git a/examples/bluetooth/bluedroid/coex/gattc_gatts_coex/sdkconfig.defauts.esp32 b/examples/bluetooth/bluedroid/coex/gattc_gatts_coex/sdkconfig.defauts.esp32 index 79feab9af1..7e5e5924ab 100644 --- a/examples/bluetooth/bluedroid/coex/gattc_gatts_coex/sdkconfig.defauts.esp32 +++ b/examples/bluetooth/bluedroid/coex/gattc_gatts_coex/sdkconfig.defauts.esp32 @@ -1094,7 +1094,6 @@ CONFIG_ESP32_DPORT_WORKAROUND=y CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_160=y # CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240 is not set CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ=160 -# CONFIG_ESP32_SPIRAM_SUPPORT is not set # CONFIG_ESP32_TRAX is not set CONFIG_ESP32_TRACEMEM_RESERVE_DRAM=0x0 # CONFIG_ESP32_UNIVERSAL_MAC_ADDRESSES_TWO is not set @@ -1123,13 +1122,13 @@ CONFIG_RTC_CLK_SRC_INT_RC=y # CONFIG_RTC_CLK_SRC_EXT_OSC is not set # CONFIG_RTC_CLK_SRC_INT_8MD256 is not set CONFIG_RTC_CLK_CAL_CYCLES=1024 -CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY=2000 +CONFIG_ESP_SLEEP_DEEP_SLEEP_WAKEUP_DELAY=2000 CONFIG_ESP32_XTAL_FREQ_40=y # CONFIG_ESP32_XTAL_FREQ_26 is not set # CONFIG_ESP32_XTAL_FREQ_AUTO is not set CONFIG_ESP32_XTAL_FREQ=40 # CONFIG_ESP32_DISABLE_BASIC_ROM_CONSOLE is not set -# CONFIG_ESP32_COMPATIBLE_PRE_V2_1_BOOTLOADERS is not set +# CONFIG_APP_COMPATIBLE_PRE_V2_1_BOOTLOADERS is not set # CONFIG_ESP32_USE_FIXED_STATIC_RAM_SIZE is not set CONFIG_ESP32_DPORT_DIS_INTERRUPT_LVL=5 # end of ESP32-specific diff --git a/examples/bluetooth/blufi/sdkconfig.defaults.esp32 b/examples/bluetooth/blufi/sdkconfig.defaults.esp32 index 6d46ad000c..fae8f3c0c2 100644 --- a/examples/bluetooth/blufi/sdkconfig.defaults.esp32 +++ b/examples/bluetooth/blufi/sdkconfig.defaults.esp32 @@ -1080,7 +1080,6 @@ CONFIG_ESP32_DPORT_WORKAROUND=y CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_160=y # CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240 is not set CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ=160 -# CONFIG_ESP32_SPIRAM_SUPPORT is not set # CONFIG_ESP32_TRAX is not set CONFIG_ESP32_TRACEMEM_RESERVE_DRAM=0x0 # CONFIG_ESP32_UNIVERSAL_MAC_ADDRESSES_TWO is not set @@ -1109,13 +1108,13 @@ CONFIG_RTC_CLK_SRC_INT_RC=y # CONFIG_RTC_CLK_SRC_EXT_OSC is not set # CONFIG_RTC_CLK_SRC_INT_8MD256 is not set CONFIG_RTC_CLK_CAL_CYCLES=1024 -CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY=2000 +CONFIG_ESP_SLEEP_DEEP_SLEEP_WAKEUP_DELAY=2000 CONFIG_ESP32_XTAL_FREQ_40=y # CONFIG_ESP32_XTAL_FREQ_26 is not set # CONFIG_ESP32_XTAL_FREQ_AUTO is not set CONFIG_ESP32_XTAL_FREQ=40 # CONFIG_ESP32_DISABLE_BASIC_ROM_CONSOLE is not set -# CONFIG_ESP32_COMPATIBLE_PRE_V2_1_BOOTLOADERS is not set +# CONFIG_APP_COMPATIBLE_PRE_V2_1_BOOTLOADERS is not set # CONFIG_ESP32_USE_FIXED_STATIC_RAM_SIZE is not set CONFIG_ESP32_DPORT_DIS_INTERRUPT_LVL=5 # end of ESP32-specific diff --git a/examples/bluetooth/blufi/sdkconfig.defaults.esp32s3 b/examples/bluetooth/blufi/sdkconfig.defaults.esp32s3 index bcbff39c57..61130eae2e 100644 --- a/examples/bluetooth/blufi/sdkconfig.defaults.esp32s3 +++ b/examples/bluetooth/blufi/sdkconfig.defaults.esp32s3 @@ -342,7 +342,6 @@ CONFIG_ESP32S3_DATA_CACHE_LINE_SIZE=32 # CONFIG_ESP32S3_DATA_CACHE_WRAP is not set # end of Cache config -# CONFIG_ESP32S3_SPIRAM_SUPPORT is not set # CONFIG_ESP32S3_TRAX is not set CONFIG_ESP32S3_TRACEMEM_RESERVE_DRAM=0x0 # CONFIG_ESP32S3_ULP_COPROC_ENABLED is not set diff --git a/examples/bluetooth/esp_ble_mesh/ble_mesh_coex_test/sdkconfig.defaults b/examples/bluetooth/esp_ble_mesh/ble_mesh_coex_test/sdkconfig.defaults index e8998f7317..d4553c8624 100644 --- a/examples/bluetooth/esp_ble_mesh/ble_mesh_coex_test/sdkconfig.defaults +++ b/examples/bluetooth/esp_ble_mesh/ble_mesh_coex_test/sdkconfig.defaults @@ -53,7 +53,7 @@ CONFIG_BTDM_RESERVE_DRAM=0x10000 # CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240=y CONFIG_MEMMAP_SMP=y -CONFIG_ESP32_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_SPIRAM_SPEED_80M=y CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL=4096 CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP=y diff --git a/examples/bluetooth/esp_ble_mesh/ble_mesh_fast_provision/fast_prov_server/sdkconfig.ci.psram b/examples/bluetooth/esp_ble_mesh/ble_mesh_fast_provision/fast_prov_server/sdkconfig.ci.psram index 0881f64acd..78d1506e63 100644 --- a/examples/bluetooth/esp_ble_mesh/ble_mesh_fast_provision/fast_prov_server/sdkconfig.ci.psram +++ b/examples/bluetooth/esp_ble_mesh/ble_mesh_fast_provision/fast_prov_server/sdkconfig.ci.psram @@ -13,7 +13,7 @@ CONFIG_BLE_MESH_FAST_PROV=y CONFIG_BLE_MESH_PB_GATT=y CONFIG_BLE_MESH_CFG_CLI=y -CONFIG_ESP32_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY=y CONFIG_BLE_MESH_MEM_ALLOC_MODE_EXTERNAL=y CONFIG_BLE_MESH_FREERTOS_STATIC_ALLOC=y diff --git a/examples/peripherals/lcd/i80_controller/sdkconfig.defaults.esp32s3 b/examples/peripherals/lcd/i80_controller/sdkconfig.defaults.esp32s3 index a39b658841..3119d63719 100644 --- a/examples/peripherals/lcd/i80_controller/sdkconfig.defaults.esp32s3 +++ b/examples/peripherals/lcd/i80_controller/sdkconfig.defaults.esp32s3 @@ -1,4 +1,4 @@ -CONFIG_ESP32S3_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_SPIRAM_SPEED_80M=y # Can't set the FPS too high due to the limitation of PSRAM bandwidth CONFIG_LV_DISP_DEF_REFR_PERIOD=100 diff --git a/examples/peripherals/lcd/rgb_panel/sdkconfig.defaults.esp32s3 b/examples/peripherals/lcd/rgb_panel/sdkconfig.defaults.esp32s3 index 2877855408..655c2aef85 100644 --- a/examples/peripherals/lcd/rgb_panel/sdkconfig.defaults.esp32s3 +++ b/examples/peripherals/lcd/rgb_panel/sdkconfig.defaults.esp32s3 @@ -1,3 +1,3 @@ -CONFIG_ESP32S3_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_SPIRAM_MODE_OCT=y CONFIG_SPIRAM_SPEED_80M=y diff --git a/examples/protocols/http2_request/sdkconfig.ci b/examples/protocols/http2_request/sdkconfig.ci index 42f4b389e1..81b8c599e6 100644 --- a/examples/protocols/http2_request/sdkconfig.ci +++ b/examples/protocols/http2_request/sdkconfig.ci @@ -1,4 +1,4 @@ -CONFIG_ESP32_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_MBEDTLS_EXTERNAL_MEM_ALLOC=y CONFIG_EXAMPLE_CONNECT_ETHERNET=y CONFIG_EXAMPLE_CONNECT_WIFI=n diff --git a/examples/protocols/https_mbedtls/sdkconfig.ci b/examples/protocols/https_mbedtls/sdkconfig.ci index 42f4b389e1..81b8c599e6 100644 --- a/examples/protocols/https_mbedtls/sdkconfig.ci +++ b/examples/protocols/https_mbedtls/sdkconfig.ci @@ -1,4 +1,4 @@ -CONFIG_ESP32_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_MBEDTLS_EXTERNAL_MEM_ALLOC=y CONFIG_EXAMPLE_CONNECT_ETHERNET=y CONFIG_EXAMPLE_CONNECT_WIFI=n diff --git a/examples/protocols/https_request/sdkconfig.ci b/examples/protocols/https_request/sdkconfig.ci index 19398a6bb6..5577f9549a 100644 --- a/examples/protocols/https_request/sdkconfig.ci +++ b/examples/protocols/https_request/sdkconfig.ci @@ -1,4 +1,4 @@ -CONFIG_ESP32_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_MBEDTLS_EXTERNAL_MEM_ALLOC=y CONFIG_EXAMPLE_CONNECT_ETHERNET=y CONFIG_EXAMPLE_CONNECT_WIFI=n diff --git a/examples/protocols/https_request/sdkconfig.ci.ssldyn b/examples/protocols/https_request/sdkconfig.ci.ssldyn index e7d69f8aa8..7840b58649 100644 --- a/examples/protocols/https_request/sdkconfig.ci.ssldyn +++ b/examples/protocols/https_request/sdkconfig.ci.ssldyn @@ -1,4 +1,4 @@ -CONFIG_ESP32_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_MBEDTLS_EXTERNAL_MEM_ALLOC=y CONFIG_EXAMPLE_CONNECT_ETHERNET=y CONFIG_EXAMPLE_CONNECT_WIFI=n diff --git a/examples/system/himem/sdkconfig.defaults b/examples/system/himem/sdkconfig.defaults index 98ee1032c0..bdf45dff00 100644 --- a/examples/system/himem/sdkconfig.defaults +++ b/examples/system/himem/sdkconfig.defaults @@ -1,4 +1,4 @@ -CONFIG_ESP32_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_SPIRAM_BOOT_INIT=y CONFIG_SPIRAM_IGNORE_NOTFOUND=n CONFIG_SPIRAM_USE_MALLOC=y diff --git a/examples/system/ota/simple_ota_example/sdkconfig.ci.spiram b/examples/system/ota/simple_ota_example/sdkconfig.ci.spiram index d2e75f2693..2dfe840136 100644 --- a/examples/system/ota/simple_ota_example/sdkconfig.ci.spiram +++ b/examples/system/ota/simple_ota_example/sdkconfig.ci.spiram @@ -1,6 +1,6 @@ CONFIG_EXAMPLE_FIRMWARE_UPGRADE_URL="FROM_STDIN" CONFIG_EXAMPLE_SKIP_COMMON_NAME_CHECK=y -CONFIG_ESP32_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY=y CONFIG_EXAMPLE_CONNECT_ETHERNET=y CONFIG_EXAMPLE_CONNECT_WIFI=n diff --git a/sdkconfig.rename b/sdkconfig.rename index 7e9b411017..57a455f655 100644 --- a/sdkconfig.rename +++ b/sdkconfig.rename @@ -22,3 +22,5 @@ CONFIG_STACK_CHECK CONFIG_COMPILER_STACK_CHECK CONFIG_WARN_WRITE_STRINGS CONFIG_COMPILER_WARN_WRITE_STRINGS CONFIG_DISABLE_GCC8_WARNINGS CONFIG_COMPILER_DISABLE_GCC8_WARNINGS CONFIG_NO_BLOBS CONFIG_APP_NO_BLOBS +CONFIG_ESP32_COMPATIBLE_PRE_V2_1_BOOTLOADERS CONFIG_APP_COMPATIBLE_PRE_V2_1_BOOTLOADERS +CONFIG_ESP32_COMPATIBLE_PRE_V3_1_BOOTLOADERS CONFIG_APP_COMPATIBLE_PRE_V3_1_BOOTLOADERS diff --git a/tools/ci/test_build_system_cmake.sh b/tools/ci/test_build_system_cmake.sh index 5394d21a7a..cb20728ef0 100755 --- a/tools/ci/test_build_system_cmake.sh +++ b/tools/ci/test_build_system_cmake.sh @@ -518,7 +518,7 @@ function run_tests() print_status "Building a project with CMake library imported and PSRAM workaround, all files compile with workaround" # Test for libraries compiled within ESP-IDF rm -r build sdkconfig - echo "CONFIG_ESP32_SPIRAM_SUPPORT=y" >> sdkconfig.defaults + echo "CONFIG_SPIRAM=y" >> sdkconfig.defaults echo "CONFIG_SPIRAM_CACHE_WORKAROUND=y" >> sdkconfig.defaults # note: we do 'reconfigure' here, as we just need to run cmake idf.py -C $IDF_PATH/examples/build_system/cmake/import_lib -B `pwd`/build -D SDKCONFIG_DEFAULTS="`pwd`/sdkconfig.defaults" reconfigure @@ -529,7 +529,7 @@ function run_tests() print_status "Test for external libraries in custom CMake projects with ESP-IDF components linked" mkdir build IDF_AS_LIB=$IDF_PATH/examples/build_system/cmake/idf_as_lib - echo "CONFIG_ESP32_SPIRAM_SUPPORT=y" > $IDF_AS_LIB/sdkconfig + echo "CONFIG_SPIRAM=y" > $IDF_AS_LIB/sdkconfig echo "CONFIG_SPIRAM_CACHE_WORKAROUND=y" >> $IDF_AS_LIB/sdkconfig # note: we just need to run cmake (cd build && cmake $IDF_AS_LIB -DCMAKE_TOOLCHAIN_FILE=$IDF_PATH/tools/cmake/toolchain-esp32.cmake -DTARGET=esp32) @@ -540,7 +540,7 @@ function run_tests() print_status "Test for external libraries in custom CMake projects with PSRAM strategy $strat" rm -r build sdkconfig sdkconfig.defaults sdkconfig.defaults.esp32 stratlc=`echo $strat | tr A-Z a-z` - echo "CONFIG_ESP32_SPIRAM_SUPPORT=y" > sdkconfig.defaults + echo "CONFIG_SPIRAM=y" > sdkconfig.defaults echo "CONFIG_SPIRAM_CACHE_WORKAROUND_STRATEGY_$strat=y" >> sdkconfig.defaults echo "CONFIG_SPIRAM_CACHE_WORKAROUND=y" >> sdkconfig.defaults # note: we do 'reconfigure' here, as we just need to run cmake @@ -899,15 +899,15 @@ endmenu\n" >> ${IDF_PATH}/Kconfig print_status "Getting component overriden dir" clean_build_dir - mkdir -p components/esp32 - echo "idf_component_get_property(overriden_dir \${COMPONENT_NAME} COMPONENT_OVERRIDEN_DIR)" >> components/esp32/CMakeLists.txt - echo "message(STATUS overriden_dir:\${overriden_dir})" >> components/esp32/CMakeLists.txt - (idf.py reconfigure | grep "overriden_dir:$IDF_PATH/components/esp32") || failure "Failed to get overriden dir" # no registration, overrides registration as well + mkdir -p components/hal + echo "idf_component_get_property(overriden_dir \${COMPONENT_NAME} COMPONENT_OVERRIDEN_DIR)" >> components/hal/CMakeLists.txt + echo "message(STATUS overriden_dir:\${overriden_dir})" >> components/hal/CMakeLists.txt + (idf.py reconfigure | grep "overriden_dir:$IDF_PATH/components/hal") || failure "Failed to get overriden dir" # no registration, overrides registration as well print_status "Overriding Kconfig" - echo "idf_component_register(KCONFIG \${overriden_dir}/Kconfig)" >> components/esp32/CMakeLists.txt - echo "idf_component_get_property(kconfig \${COMPONENT_NAME} KCONFIG)" >> components/esp32/CMakeLists.txt - echo "message(STATUS kconfig:\${overriden_dir}/Kconfig)" >> components/esp32/CMakeLists.txt - (idf.py reconfigure | grep "kconfig:$IDF_PATH/components/esp32/Kconfig") || failure "Failed to verify original `main` directory" + echo "idf_component_register(KCONFIG \${overriden_dir}/Kconfig)" >> components/hal/CMakeLists.txt + echo "idf_component_get_property(kconfig \${COMPONENT_NAME} KCONFIG)" >> components/hal/CMakeLists.txt + echo "message(STATUS kconfig:\${overriden_dir}/Kconfig)" >> components/hal/CMakeLists.txt + (idf.py reconfigure | grep "kconfig:$IDF_PATH/components/hal/Kconfig") || failure "Failed to verify original `main` directory" rm -rf components print_status "Project components prioritized over EXTRA_COMPONENT_DIRS" diff --git a/tools/ldgen/samples/sdkconfig b/tools/ldgen/samples/sdkconfig index 3429fd2e95..7a325d83c3 100644 --- a/tools/ldgen/samples/sdkconfig +++ b/tools/ldgen/samples/sdkconfig @@ -123,7 +123,7 @@ CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_80= CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_160= CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240=y CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ=240 -CONFIG_ESP32_SPIRAM_SUPPORT= +CONFIG_SPIRAM= CONFIG_ESP32_MEMMAP_TRACEMEM= CONFIG_ESP32_MEMMAP_TRACEMEM_TWOBANKS= CONFIG_ESP32_TRAX= @@ -183,14 +183,14 @@ CONFIG_RTC_CLK_SRC_INT_RC=y CONFIG_RTC_CLK_SRC_EXT_CRYS= CONFIG_RTC_CLK_CAL_CYCLES=1024 CONFIG_RTC_XTAL_BOOTSTRAP_CYCLES=100 -CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY=2000 +CONFIG_ESP_SLEEP_DEEP_SLEEP_WAKEUP_DELAY=2000 CONFIG_ESP32_XTAL_FREQ_40=y CONFIG_ESP32_XTAL_FREQ_26= CONFIG_ESP32_XTAL_FREQ_AUTO= CONFIG_ESP32_XTAL_FREQ=40 CONFIG_ESP32_DISABLE_BASIC_ROM_CONSOLE= CONFIG_ESP_TIMER_PROFILING= -CONFIG_ESP32_COMPATIBLE_PRE_V2_1_BOOTLOADERS= +CONFIG_APP_COMPATIBLE_PRE_V2_1_BOOTLOADERS= CONFIG_ESP_ERR_TO_NAME_LOOKUP=y # diff --git a/tools/test_apps/system/flash_psram/sdkconfig.ci.f4r4_120sdr_120sdr b/tools/test_apps/system/flash_psram/sdkconfig.ci.f4r4_120sdr_120sdr index 9e2cf2e9f7..85e19ab0ab 100644 --- a/tools/test_apps/system/flash_psram/sdkconfig.ci.f4r4_120sdr_120sdr +++ b/tools/test_apps/system/flash_psram/sdkconfig.ci.f4r4_120sdr_120sdr @@ -3,5 +3,5 @@ CONFIG_SPI_FLASH_USE_LEGACY_IMPL=y CONFIG_ESPTOOLPY_FLASHFREQ_120M=y CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y -CONFIG_ESP32S3_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_SPIRAM_SPEED_120M=y diff --git a/tools/test_apps/system/flash_psram/sdkconfig.ci.f4r4_120sdr_40sdr b/tools/test_apps/system/flash_psram/sdkconfig.ci.f4r4_120sdr_40sdr index 05d6318a64..c779d7d2e6 100644 --- a/tools/test_apps/system/flash_psram/sdkconfig.ci.f4r4_120sdr_40sdr +++ b/tools/test_apps/system/flash_psram/sdkconfig.ci.f4r4_120sdr_40sdr @@ -3,5 +3,5 @@ CONFIG_SPI_FLASH_USE_LEGACY_IMPL=y CONFIG_ESPTOOLPY_FLASHFREQ_120M=y CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y -CONFIG_ESP32S3_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_SPIRAM_SPEED_40M=y diff --git a/tools/test_apps/system/flash_psram/sdkconfig.ci.f4r4_40sdr_120sdr b/tools/test_apps/system/flash_psram/sdkconfig.ci.f4r4_40sdr_120sdr index e26e7cfba1..9e408da935 100644 --- a/tools/test_apps/system/flash_psram/sdkconfig.ci.f4r4_40sdr_120sdr +++ b/tools/test_apps/system/flash_psram/sdkconfig.ci.f4r4_40sdr_120sdr @@ -3,5 +3,5 @@ CONFIG_SPI_FLASH_USE_LEGACY_IMPL=y CONFIG_ESPTOOLPY_FLASHFREQ_40M=y CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y -CONFIG_ESP32S3_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_SPIRAM_SPEED_120M=y diff --git a/tools/test_apps/system/flash_psram/sdkconfig.ci.f4r4_80sdr_80sdr b/tools/test_apps/system/flash_psram/sdkconfig.ci.f4r4_80sdr_80sdr index b20bf13fbd..41c3388fe2 100644 --- a/tools/test_apps/system/flash_psram/sdkconfig.ci.f4r4_80sdr_80sdr +++ b/tools/test_apps/system/flash_psram/sdkconfig.ci.f4r4_80sdr_80sdr @@ -3,5 +3,5 @@ CONFIG_SPI_FLASH_USE_LEGACY_IMPL=y CONFIG_ESPTOOLPY_FLASHFREQ_80M=y CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y -CONFIG_ESP32S3_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_SPIRAM_SPEED_80M=y diff --git a/tools/test_apps/system/flash_psram/sdkconfig.ci.f4r8_80sdr_40ddr b/tools/test_apps/system/flash_psram/sdkconfig.ci.f4r8_80sdr_40ddr index ee44bec1bc..4ce21489ae 100644 --- a/tools/test_apps/system/flash_psram/sdkconfig.ci.f4r8_80sdr_40ddr +++ b/tools/test_apps/system/flash_psram/sdkconfig.ci.f4r8_80sdr_40ddr @@ -3,6 +3,6 @@ CONFIG_SPI_FLASH_USE_LEGACY_IMPL=y CONFIG_ESPTOOLPY_FLASHFREQ_80M=y CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y -CONFIG_ESP32S3_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_SPIRAM_MODE_OCT=y CONFIG_SPIRAM_SPEED_40M=y diff --git a/tools/test_apps/system/flash_psram/sdkconfig.ci.f4r8_80sdr_80ddr b/tools/test_apps/system/flash_psram/sdkconfig.ci.f4r8_80sdr_80ddr index b0f08a79ac..dbb62379c0 100644 --- a/tools/test_apps/system/flash_psram/sdkconfig.ci.f4r8_80sdr_80ddr +++ b/tools/test_apps/system/flash_psram/sdkconfig.ci.f4r8_80sdr_80ddr @@ -3,6 +3,6 @@ CONFIG_SPI_FLASH_USE_LEGACY_IMPL=y CONFIG_ESPTOOLPY_FLASHFREQ_80M=y CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y -CONFIG_ESP32S3_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_SPIRAM_MODE_OCT=y CONFIG_SPIRAM_SPEED_80M=y diff --git a/tools/test_apps/system/flash_psram/sdkconfig.ci.f8r8_120sdr b/tools/test_apps/system/flash_psram/sdkconfig.ci.f8r8_120sdr index e85e30a97f..7d8f3419ef 100644 --- a/tools/test_apps/system/flash_psram/sdkconfig.ci.f8r8_120sdr +++ b/tools/test_apps/system/flash_psram/sdkconfig.ci.f8r8_120sdr @@ -5,4 +5,4 @@ CONFIG_ESPTOOLPY_OCT_FLASH=y CONFIG_ESPTOOLPY_FLASH_SAMPLE_MODE_STR=y CONFIG_ESPTOOLPY_FLASHFREQ_120M=y CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y -CONFIG_ESP32S3_SPIRAM_SUPPORT=n +CONFIG_SPIRAM=n diff --git a/tools/test_apps/system/flash_psram/sdkconfig.ci.f8r8_40ddr_40ddr b/tools/test_apps/system/flash_psram/sdkconfig.ci.f8r8_40ddr_40ddr index a9bd3815da..77b1112f34 100644 --- a/tools/test_apps/system/flash_psram/sdkconfig.ci.f8r8_40ddr_40ddr +++ b/tools/test_apps/system/flash_psram/sdkconfig.ci.f8r8_40ddr_40ddr @@ -5,6 +5,6 @@ CONFIG_ESPTOOLPY_OCT_FLASH=y CONFIG_ESPTOOLPY_FLASH_SAMPLE_MODE_DTR=y CONFIG_ESPTOOLPY_FLASHFREQ_40M=y CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y -CONFIG_ESP32S3_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_SPIRAM_MODE_OCT=y CONFIG_SPIRAM_SPEED_40M=y diff --git a/tools/test_apps/system/flash_psram/sdkconfig.ci.f8r8_40ddr_80ddr b/tools/test_apps/system/flash_psram/sdkconfig.ci.f8r8_40ddr_80ddr index a35cf80a87..f8a649f1c4 100644 --- a/tools/test_apps/system/flash_psram/sdkconfig.ci.f8r8_40ddr_80ddr +++ b/tools/test_apps/system/flash_psram/sdkconfig.ci.f8r8_40ddr_80ddr @@ -5,6 +5,6 @@ CONFIG_ESPTOOLPY_OCT_FLASH=y CONFIG_ESPTOOLPY_FLASH_SAMPLE_MODE_DTR=y CONFIG_ESPTOOLPY_FLASHFREQ_40M=y CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y -CONFIG_ESP32S3_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_SPIRAM_MODE_OCT=y CONFIG_SPIRAM_SPEED_80M=y diff --git a/tools/test_apps/system/flash_psram/sdkconfig.ci.f8r8_80ddr_40ddr b/tools/test_apps/system/flash_psram/sdkconfig.ci.f8r8_80ddr_40ddr index 5a128bf171..199bb5ea97 100644 --- a/tools/test_apps/system/flash_psram/sdkconfig.ci.f8r8_80ddr_40ddr +++ b/tools/test_apps/system/flash_psram/sdkconfig.ci.f8r8_80ddr_40ddr @@ -5,6 +5,6 @@ CONFIG_ESPTOOLPY_OCT_FLASH=y CONFIG_ESPTOOLPY_FLASH_SAMPLE_MODE_DTR=y CONFIG_ESPTOOLPY_FLASHFREQ_80M=y CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y -CONFIG_ESP32S3_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_SPIRAM_MODE_OCT=y CONFIG_SPIRAM_SPEED_40M=y diff --git a/tools/test_apps/system/flash_psram/sdkconfig.ci.f8r8_80ddr_80ddr b/tools/test_apps/system/flash_psram/sdkconfig.ci.f8r8_80ddr_80ddr index 4b37baaa3d..f522595b60 100644 --- a/tools/test_apps/system/flash_psram/sdkconfig.ci.f8r8_80ddr_80ddr +++ b/tools/test_apps/system/flash_psram/sdkconfig.ci.f8r8_80ddr_80ddr @@ -5,6 +5,6 @@ CONFIG_ESPTOOLPY_OCT_FLASH=y CONFIG_ESPTOOLPY_FLASH_SAMPLE_MODE_DTR=y CONFIG_ESPTOOLPY_FLASHFREQ_80M=y CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y -CONFIG_ESP32S3_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_SPIRAM_MODE_OCT=y CONFIG_SPIRAM_SPEED_80M=y diff --git a/tools/test_apps/system/flash_psram/sdkconfig.ci.f8r8_80ddr_80ddr_ecc b/tools/test_apps/system/flash_psram/sdkconfig.ci.f8r8_80ddr_80ddr_ecc index f433757c24..381cc7e987 100644 --- a/tools/test_apps/system/flash_psram/sdkconfig.ci.f8r8_80ddr_80ddr_ecc +++ b/tools/test_apps/system/flash_psram/sdkconfig.ci.f8r8_80ddr_80ddr_ecc @@ -5,7 +5,7 @@ CONFIG_ESPTOOLPY_OCT_FLASH=y CONFIG_ESPTOOLPY_FLASH_SAMPLE_MODE_DTR=y CONFIG_ESPTOOLPY_FLASHFREQ_80M=y CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y -CONFIG_ESP32S3_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_SPIRAM_MODE_OCT=y CONFIG_SPIRAM_SPEED_80M=y CONFIG_SPIRAM_ECC_ENABLE = y diff --git a/tools/test_apps/system/flash_psram/sdkconfig.ci.f8r8_80sdr_80ddr b/tools/test_apps/system/flash_psram/sdkconfig.ci.f8r8_80sdr_80ddr index 0451be8686..6e08bfbae5 100644 --- a/tools/test_apps/system/flash_psram/sdkconfig.ci.f8r8_80sdr_80ddr +++ b/tools/test_apps/system/flash_psram/sdkconfig.ci.f8r8_80sdr_80ddr @@ -5,6 +5,6 @@ CONFIG_ESPTOOLPY_OCT_FLASH=y CONFIG_ESPTOOLPY_FLASH_SAMPLE_MODE_STR=y CONFIG_ESPTOOLPY_FLASHFREQ_80M=y CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y -CONFIG_ESP32S3_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_SPIRAM_MODE_OCT=y CONFIG_SPIRAM_SPEED_80M=y diff --git a/tools/unit-test-app/README.md b/tools/unit-test-app/README.md index b5114ce337..cbb7bfd3de 100644 --- a/tools/unit-test-app/README.md +++ b/tools/unit-test-app/README.md @@ -46,7 +46,7 @@ When we add new test case, it will construct a structure to save case data durin 2. the rest tags should be [type=value]. Tags could have default value and omitted value. For example, reset tag default value is "POWERON_RESET", omitted value is "" (do not reset) : * "[reset]" equal to [reset=POWERON_RESET] * if reset tag doesn't exist, then it equals to [reset=""] -3. the `[leaks]` tag is used to disable the leak checking. A specific maximum memory leakage can be set as follows: `[leaks=500]`. This allows no more than 500 bytes of heap to be leaked. Also there is a special function to set the critical level of leakage not through a tag, just directly in the test code ``test_utils_set_critical_leak_level()``. +3. the `[leaks]` tag is used to disable the leak checking. A specific maximum memory leakage can be set as follows: `[leaks=500]`. This allows no more than 500 bytes of heap to be leaked. Also there is a special function to set the critical level of leakage not through a tag, just directly in the test code ``test_utils_set_critical_leak_level()``. The priority of using leakage level is as follows: @@ -58,7 +58,7 @@ Tests marked as `[leaks]` or `[leaks=xxx]` reset the device after completion (or `TagDefinition.yml` defines how we should parse the description. In `TagDefinition.yml`, we declare the tags we are interested in, their default value and omitted value. Parser will parse the properities of test cases according to this file, and add them as test case attributes. -We will build unit-test-app with different sdkconfigs. Some config items requires specific board to run. For example, if `CONFIG_ESP32_SPIRAM_SUPPORT` is enabled, then unit test app must run on board supports PSRAM. `ConfigDependency.yml` is used to define the mapping between sdkconfig items and tags. The tags will be saved as case attributes, used to select jobs and runners. In the previous example, `psram` tag is generated, will only select jobs and runners also contains `psram` tag. +We will build unit-test-app with different sdkconfigs. Some config items requires specific board to run. For example, if `CONFIG_SPIRAM` is enabled, then unit test app must run on board supports PSRAM. `ConfigDependency.yml` is used to define the mapping between sdkconfig items and tags. The tags will be saved as case attributes, used to select jobs and runners. In the previous example, `psram` tag is generated, will only select jobs and runners also contains `psram` tag. ### Assign Test Stage: diff --git a/tools/unit-test-app/components/test_utils/test/ccomp_timer_test_data.c b/tools/unit-test-app/components/test_utils/test/ccomp_timer_test_data.c index 7c1ddeeca2..238b02426b 100644 --- a/tools/unit-test-app/components/test_utils/test/ccomp_timer_test_data.c +++ b/tools/unit-test-app/components/test_utils/test/ccomp_timer_test_data.c @@ -50,7 +50,7 @@ typedef struct { int64_t ccomp; } ccomp_test_time_t; -#if CONFIG_ESP32_SPIRAM_SUPPORT +#if CONFIG_SPIRAM static uint8_t *flash_mem; #else static const uint8_t flash_mem[2 * CACHE_SIZE] = {0}; @@ -133,7 +133,7 @@ static ccomp_test_time_t perform_test_at_hit_rate(int hit_rate, const uint8_t *m static ccomp_test_time_t ccomp_test_ref_time(void) { -#if CONFIG_ESP32_SPIRAM_SUPPORT +#if CONFIG_SPIRAM uint8_t *mem = heap_caps_malloc(2 * CACHE_SIZE, MALLOC_CAP_INTERNAL | MALLOC_CAP_DEFAULT); #else uint8_t *mem = heap_caps_malloc(sizeof(flash_mem), MALLOC_CAP_INTERNAL | MALLOC_CAP_DEFAULT); @@ -148,7 +148,7 @@ TEST_CASE("data cache hit rate sweep", "[test_utils][ccomp_timer]") ccomp_test_time_t t_ref; ccomp_test_time_t t_hr; -#if CONFIG_ESP32_SPIRAM_SUPPORT +#if CONFIG_SPIRAM flash_mem = heap_caps_malloc(2 * CACHE_SIZE, MALLOC_CAP_8BIT | MALLOC_CAP_SPIRAM); #endif @@ -171,7 +171,7 @@ TEST_CASE("data cache hit rate sweep", "[test_utils][ccomp_timer]") TEST_ASSERT(error <= 5.0f); } -#if CONFIG_ESP32_SPIRAM_SUPPORT +#if CONFIG_SPIRAM free(flash_mem); #endif } diff --git a/tools/unit-test-app/configs/flash_encryption_psram b/tools/unit-test-app/configs/flash_encryption_psram index 13648e1d12..6af1b4b6aa 100644 --- a/tools/unit-test-app/configs/flash_encryption_psram +++ b/tools/unit-test-app/configs/flash_encryption_psram @@ -10,5 +10,5 @@ CONFIG_SECURE_FLASH_UART_BOOTLOADER_ALLOW_ENC=y CONFIG_SECURE_FLASH_UART_BOOTLOADER_ALLOW_DEC=y CONFIG_SECURE_FLASH_UART_BOOTLOADER_ALLOW_CACHE=y CONFIG_SECURE_FLASH_REQUIRE_ALREADY_ENABLED=y -CONFIG_ESP32_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_ESPTOOLPY_FLASHFREQ_80M=y diff --git a/tools/unit-test-app/configs/psram b/tools/unit-test-app/configs/psram index c567327721..af93785ac8 100644 --- a/tools/unit-test-app/configs/psram +++ b/tools/unit-test-app/configs/psram @@ -1,6 +1,6 @@ CONFIG_IDF_TARGET="esp32" TEST_EXCLUDE_COMPONENTS=bt app_update driver esp_hw_support esp_ipc esp_pm esp_system esp_timer mbedtls spi_flash test_utils heap pthread soc experimental_cpp_component esp-tls freertos sdmmc -CONFIG_ESP32_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_ESP_INT_WDT_TIMEOUT_MS=800 CONFIG_SPIRAM_OCCUPY_NO_HOST=y CONFIG_ESP32_WIFI_RX_IRAM_OPT=n diff --git a/tools/unit-test-app/configs/psram_2 b/tools/unit-test-app/configs/psram_2 index ed2b6efdf0..401588ab20 100644 --- a/tools/unit-test-app/configs/psram_2 +++ b/tools/unit-test-app/configs/psram_2 @@ -1,6 +1,6 @@ CONFIG_IDF_TARGET="esp32" TEST_COMPONENTS=esp_hw_support esp_ipc esp_system esp_timer mbedtls spi_flash heap pthread soc -CONFIG_ESP32_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_ESP_INT_WDT_TIMEOUT_MS=800 CONFIG_SPIRAM_OCCUPY_NO_HOST=y CONFIG_ESP32_WIFI_RX_IRAM_OPT=n diff --git a/tools/unit-test-app/configs/psram_3 b/tools/unit-test-app/configs/psram_3 index 0e3ffdc193..d61e270efc 100644 --- a/tools/unit-test-app/configs/psram_3 +++ b/tools/unit-test-app/configs/psram_3 @@ -1,6 +1,6 @@ CONFIG_IDF_TARGET="esp32" TEST_COMPONENTS=driver freertos sdmmc -CONFIG_ESP32_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_ESP_INT_WDT_TIMEOUT_MS=800 CONFIG_SPIRAM_OCCUPY_NO_HOST=y CONFIG_ESP32_WIFI_RX_IRAM_OPT=n diff --git a/tools/unit-test-app/configs/psram_8m b/tools/unit-test-app/configs/psram_8m index 53445b4f43..1c83eb49df 100644 --- a/tools/unit-test-app/configs/psram_8m +++ b/tools/unit-test-app/configs/psram_8m @@ -1,6 +1,6 @@ CONFIG_IDF_TARGET="esp32" TEST_COMPONENTS=esp_hw_support esp_timer -CONFIG_ESP32_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_SPIRAM_BANKSWITCH_ENABLE=y CONFIG_SPIRAM_BANKSWITCH_RESERVE=8 CONFIG_ESP_INT_WDT_TIMEOUT_MS=800 diff --git a/tools/unit-test-app/configs/psram_all_ext_1 b/tools/unit-test-app/configs/psram_all_ext_1 index fed757531a..5916921c9e 100644 --- a/tools/unit-test-app/configs/psram_all_ext_1 +++ b/tools/unit-test-app/configs/psram_all_ext_1 @@ -1,6 +1,6 @@ CONFIG_IDF_TARGET="esp32" TEST_COMPONENTS=driver esp_hw_support esp_system esp_timer -CONFIG_ESP32_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_ESP_INT_WDT_TIMEOUT_MS=800 CONFIG_SPIRAM_OCCUPY_NO_HOST=y CONFIG_ESP32_WIFI_RX_IRAM_OPT=n diff --git a/tools/unit-test-app/configs/psram_all_ext_2 b/tools/unit-test-app/configs/psram_all_ext_2 index b7ebb27f49..f1d455e5a3 100644 --- a/tools/unit-test-app/configs/psram_all_ext_2 +++ b/tools/unit-test-app/configs/psram_all_ext_2 @@ -1,6 +1,6 @@ CONFIG_IDF_TARGET="esp32" TEST_COMPONENTS=heap mbedtls soc spi_flash -CONFIG_ESP32_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_ESP_INT_WDT_TIMEOUT_MS=800 CONFIG_SPIRAM_OCCUPY_NO_HOST=y CONFIG_ESP32_WIFI_RX_IRAM_OPT=n diff --git a/tools/unit-test-app/configs/psram_hspi b/tools/unit-test-app/configs/psram_hspi index 8d7fa7265a..96da87d0fe 100644 --- a/tools/unit-test-app/configs/psram_hspi +++ b/tools/unit-test-app/configs/psram_hspi @@ -2,7 +2,7 @@ CONFIG_IDF_TARGET="esp32" TEST_COMPONENTS=esp_hw_support TEST_GROUPS=psram_4m CONFIG_ESPTOOLPY_FLASHFREQ_80M=y -CONFIG_ESP32_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_SPIRAM_SPEED_80M=y CONFIG_SPIRAM_OCCUPY_HSPI_HOST=y CONFIG_ESP_INT_WDT_TIMEOUT_MS=800 diff --git a/tools/unit-test-app/configs/psram_s2_advanced b/tools/unit-test-app/configs/psram_s2_advanced index e712b62518..6114f3cac0 100644 --- a/tools/unit-test-app/configs/psram_s2_advanced +++ b/tools/unit-test-app/configs/psram_s2_advanced @@ -1,6 +1,6 @@ CONFIG_IDF_TARGET="esp32s2" TEST_COMPONENTS=esp_hw_support esp_common -CONFIG_ESP32S2_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_SPIRAM_FETCH_INSTRUCTIONS=y CONFIG_SPIRAM_RODATA=y CONFIG_SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY=y diff --git a/tools/unit-test-app/configs/psram_s2_base b/tools/unit-test-app/configs/psram_s2_base index d76d506cc5..c40a661415 100644 --- a/tools/unit-test-app/configs/psram_s2_base +++ b/tools/unit-test-app/configs/psram_s2_base @@ -1,3 +1,3 @@ CONFIG_IDF_TARGET="esp32s2" TEST_COMPONENTS=esp_hw_support mbedtls esp_system -CONFIG_ESP32S2_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y diff --git a/tools/unit-test-app/configs/psram_s3_base b/tools/unit-test-app/configs/psram_s3_base index 6b85a2920a..bf9a2e9dba 100644 --- a/tools/unit-test-app/configs/psram_s3_base +++ b/tools/unit-test-app/configs/psram_s3_base @@ -1,3 +1,3 @@ CONFIG_IDF_TARGET="esp32s3" TEST_COMPONENTS=esp_hw_support mbedtls esp_system -CONFIG_ESP32S3_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y diff --git a/tools/unit-test-app/configs/psram_vspi b/tools/unit-test-app/configs/psram_vspi index a2950c9030..6048590480 100644 --- a/tools/unit-test-app/configs/psram_vspi +++ b/tools/unit-test-app/configs/psram_vspi @@ -2,7 +2,7 @@ CONFIG_IDF_TARGET="esp32" TEST_COMPONENTS=esp_hw_support TEST_GROUPS=psram_4m CONFIG_ESPTOOLPY_FLASHFREQ_80M=y -CONFIG_ESP32_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_SPIRAM_SPEED_80M=y CONFIG_SPIRAM_OCCUPY_VSPI_HOST=y CONFIG_ESP_INT_WDT_TIMEOUT_MS=800 diff --git a/tools/unit-test-app/configs/spi_flash_config_1_s2 b/tools/unit-test-app/configs/spi_flash_config_1_s2 index df3df47e54..2cd5632dd5 100644 --- a/tools/unit-test-app/configs/spi_flash_config_1_s2 +++ b/tools/unit-test-app/configs/spi_flash_config_1_s2 @@ -1,5 +1,5 @@ TEST_COMPONENTS=spi_flash -CONFIG_ESP32S2_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_SPIRAM_FETCH_INSTRUCTIONS=y CONFIG_SPIRAM_RODATA=n CONFIG_IDF_TARGET="esp32s2" diff --git a/tools/unit-test-app/configs/spi_flash_config_2_s2 b/tools/unit-test-app/configs/spi_flash_config_2_s2 index b1badb9aac..2c0d0af3b4 100644 --- a/tools/unit-test-app/configs/spi_flash_config_2_s2 +++ b/tools/unit-test-app/configs/spi_flash_config_2_s2 @@ -1,5 +1,5 @@ TEST_COMPONENTS=spi_flash -CONFIG_ESP32S2_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_SPIRAM_FETCH_INSTRUCTIONS=y CONFIG_SPIRAM_RODATA=n CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY=y diff --git a/tools/unit-test-app/configs/spi_flash_config_3_s2 b/tools/unit-test-app/configs/spi_flash_config_3_s2 index a457c0efbc..2fb4a33d5a 100644 --- a/tools/unit-test-app/configs/spi_flash_config_3_s2 +++ b/tools/unit-test-app/configs/spi_flash_config_3_s2 @@ -1,5 +1,5 @@ TEST_COMPONENTS=spi_flash -CONFIG_ESP32S2_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_SPIRAM_FETCH_INSTRUCTIONS=n CONFIG_SPIRAM_RODATA=y CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY=y diff --git a/tools/unit-test-app/configs/spi_flash_config_4_s2 b/tools/unit-test-app/configs/spi_flash_config_4_s2 index 48efd202f0..75dd41d2f5 100644 --- a/tools/unit-test-app/configs/spi_flash_config_4_s2 +++ b/tools/unit-test-app/configs/spi_flash_config_4_s2 @@ -1,5 +1,5 @@ TEST_COMPONENTS=spi_flash -CONFIG_ESP32S2_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_SPIRAM_FETCH_INSTRUCTIONS=y CONFIG_SPIRAM_RODATA=y CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY=y diff --git a/tools/unit-test-app/configs/spi_flash_legacy b/tools/unit-test-app/configs/spi_flash_legacy index 94be20d503..01bde84327 100644 --- a/tools/unit-test-app/configs/spi_flash_legacy +++ b/tools/unit-test-app/configs/spi_flash_legacy @@ -1,4 +1,4 @@ # This config is for all targets TEST_COMPONENTS=spi_flash -CONFIG_ESP32_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_SPI_FLASH_USE_LEGACY_IMPL=y diff --git a/tools/unit-test-app/configs/test_utils_psram b/tools/unit-test-app/configs/test_utils_psram index cd78688af3..bee6b71a50 100644 --- a/tools/unit-test-app/configs/test_utils_psram +++ b/tools/unit-test-app/configs/test_utils_psram @@ -3,4 +3,4 @@ CONFIG_IDF_TARGET="esp32" # The test is isolated as it requires particular memory layout TEST_COMPONENTS=test_utils CONFIG_ESP_IPC_TASK_STACK_SIZE=3072 -CONFIG_ESP32_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y diff --git a/tools/unit-test-app/disabled_configs/psram_2_s2 b/tools/unit-test-app/disabled_configs/psram_2_s2 index 495de89469..d61a7e9abe 100644 --- a/tools/unit-test-app/disabled_configs/psram_2_s2 +++ b/tools/unit-test-app/disabled_configs/psram_2_s2 @@ -1,4 +1,4 @@ TEST_COMPONENTS=driver esp_hw_support spi_flash mbedtls -CONFIG_ESP32S2_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_IDF_TARGET="esp32s2" CONFIG_SPIRAM_OCCUPY_NO_HOST=y diff --git a/tools/unit-test-app/disabled_configs/psram_8m_s2 b/tools/unit-test-app/disabled_configs/psram_8m_s2 index 54c00e1e40..dfb70c7e5b 100644 --- a/tools/unit-test-app/disabled_configs/psram_8m_s2 +++ b/tools/unit-test-app/disabled_configs/psram_8m_s2 @@ -1,5 +1,5 @@ TEST_COMPONENTS=esp_hw_support -CONFIG_ESP32S2_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_SPIRAM_BANKSWITCH_ENABLE=y CONFIG_SPIRAM_BANKSWITCH_RESERVE=8 CONFIG_IDF_TARGET="esp32s2" diff --git a/tools/unit-test-app/disabled_configs/psram_s2 b/tools/unit-test-app/disabled_configs/psram_s2 index 680c9fcdbe..c89ef65f89 100644 --- a/tools/unit-test-app/disabled_configs/psram_s2 +++ b/tools/unit-test-app/disabled_configs/psram_s2 @@ -1,4 +1,4 @@ TEST_EXCLUDE_COMPONENTS=libsodium bt app_update driver esp_hw_support spi_flash -CONFIG_ESP32S2_SPIRAM_SUPPORT=y +CONFIG_SPIRAM=y CONFIG_IDF_TARGET="esp32s2" CONFIG_SPIRAM_OCCUPY_NO_HOST=y diff --git a/tools/unit-test-app/tools/ConfigDependency.yml b/tools/unit-test-app/tools/ConfigDependency.yml index fac208f905..70961bbdd8 100644 --- a/tools/unit-test-app/tools/ConfigDependency.yml +++ b/tools/unit-test-app/tools/ConfigDependency.yml @@ -1,4 +1,4 @@ -"psram": '{CONFIG_ESP32_SPIRAM_SUPPORT=y} and not {CONFIG_SPIRAM_BANKSWITCH_ENABLE=y}' +"psram": '{CONFIG_SPIRAM=y} and not {CONFIG_SPIRAM_BANKSWITCH_ENABLE=y} and {CONFIG_IDF_TARGET_ESP32=y}' "8Mpsram": "CONFIG_SPIRAM_BANKSWITCH_ENABLE=y" "ESP32_IDF": "CONFIG_IDF_TARGET_ESP32=y" "ESP32S2_IDF": "CONFIG_IDF_TARGET_ESP32S2=y" diff --git a/tools/unit-test-app/tools/UnitTestParser.py b/tools/unit-test-app/tools/UnitTestParser.py index 64b21a1c4a..3515b263e3 100644 --- a/tools/unit-test-app/tools/UnitTestParser.py +++ b/tools/unit-test-app/tools/UnitTestParser.py @@ -219,7 +219,7 @@ class Parser(object): def parse_tags(self, sdkconfig_file): """ Some test configs could requires different DUTs. - For example, if CONFIG_ESP32_SPIRAM_SUPPORT is enabled, we need WROVER-Kit to run test. + For example, if CONFIG_SPIRAM is enabled, we need kit with PSRAM to run test. This method will get tags for runners according to ConfigDependency.yml(maps tags to sdkconfig). We support to the following syntax::