From 43aa501f18126ace45d3fee78475f8908c644616 Mon Sep 17 00:00:00 2001 From: Aditya Patwardhan Date: Tue, 29 Nov 2022 10:41:56 +0530 Subject: [PATCH 1/2] esp_flash_encrypt: If it is supported then Enable secure download mode in release mode instead of disabling it completely. --- components/bootloader_support/src/flash_encrypt.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/bootloader_support/src/flash_encrypt.c b/components/bootloader_support/src/flash_encrypt.c index 9b1b1287de..e96579d7a9 100644 --- a/components/bootloader_support/src/flash_encrypt.c +++ b/components/bootloader_support/src/flash_encrypt.c @@ -174,7 +174,12 @@ void esp_flash_encryption_set_release_mode(void) ESP_LOGE(TAG, "Flash Encryption support not added, abort.."); abort(); #endif + +#if CONFIG_SOC_SUPPORTS_SECURE_DL_MODE + esp_efuse_enable_rom_secure_download_mode(); +#else esp_efuse_disable_rom_download_mode(); +#endif esp_efuse_batch_write_commit(); if (esp_get_flash_encryption_mode() != ESP_FLASH_ENC_MODE_RELEASE) { From 7c75d88da5773658e768b0e02e205ff81b49d3ad Mon Sep 17 00:00:00 2001 From: Rahul Tank Date: Thu, 8 Dec 2022 11:06:49 +0530 Subject: [PATCH 2/2] Nimble: Support maximum number of connections to 9 on ESP32-C3 and ESP32-S3 --- components/bt/host/nimble/Kconfig.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/bt/host/nimble/Kconfig.in b/components/bt/host/nimble/Kconfig.in index a3a23e1574..f00635de7e 100644 --- a/components/bt/host/nimble/Kconfig.in +++ b/components/bt/host/nimble/Kconfig.in @@ -64,8 +64,7 @@ config BT_NIMBLE_LOG_LEVEL config BT_NIMBLE_MAX_CONNECTIONS int "Maximum number of concurrent connections" - range 1 8 if (IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3) - range 1 9 if IDF_TARGET_ESP32 + range 1 9 default 3 depends on BT_NIMBLE_ENABLED help