Bootloader Size Increase when Upgrading from ESP-IDF 4.3.1 to 5.1.1

Chand Bhadaniya
Posts: 4
Joined: Mon Jun 24, 2024 6:32 am

Bootloader Size Increase when Upgrading from ESP-IDF 4.3.1 to 5.1.1

Postby Chand Bhadaniya » Mon Jun 24, 2024 7:00 am

Hello Everyone.

We are currently using the ESP32-WROVER-E board with code based on ESP-IDF 4.3.1, and we are planning to upgrade to ESP-IDF 5.1.1.

In our current partition setup, the bootloader is loaded at 0x1000, and the partition table is loaded at 0x9000. This means the bootloader size is limited to 32KB (0x8000 bytes). However, after upgrading to ESP-IDF 5.1.1, the bootloader size exceeds 32KB and is approximately 37KB.

Bootloader size is more because we have below security flags enabled. This was enabled in esp-idf 4.3.1 as well.

Code: Select all

CONFIG_SECURE_FLASH_ENC_ENABLED=y
# CONFIG_SECURE_FLASH_ENCRYPTION_MODE_DEVELOPMENT is not set
CONFIG_SECURE_FLASH_ENCRYPTION_MODE_RELEASE=y
CONFIG_SECURE_FLASH_HAS_WRITE_PROTECTION_CACHE=y
CONFIG_SECURE_FLASH_CHECK_ENC_EN_IN_APP=y

Our concern is how to manage the same partition table for both old and new devices, given this increase in bootloader size.

Any advice or solutions on how to handle this situation would be greatly appreciated.

Thank you in advance.

Who is online

Users browsing this forum: Bing [Bot] and 97 guests