From 0a0e64749aa7a2a72a8df805e739cf26787f2802 Mon Sep 17 00:00:00 2001 From: Jaroslav Burian Date: Wed, 25 Mar 2026 12:33:43 +0100 Subject: [PATCH] change(esptool_py): always pass --flash-mmu-page-size to elf2image Previously, --flash-mmu-page-size was only passed when the configured MMU page size was not 64KB. This caused an issue for targets with a configurable MMU page size whose non-64KB size is the actual default. Remove the 64KB exclusion and always pass the argument for all targets, including those without a configurable MMU page size. Since ESP-IDF now always provides the value, esptool can also use it to change the default MMU page size. --- components/esptool_py/project_include.cmake | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/components/esptool_py/project_include.cmake b/components/esptool_py/project_include.cmake index dbbb5eb884..fa5c86a47c 100644 --- a/components/esptool_py/project_include.cmake +++ b/components/esptool_py/project_include.cmake @@ -423,12 +423,7 @@ function(__esptool_py_setup_esptool_py_args) if(NOT BOOTLOADER_BUILD) list(APPEND esptool_elf2image_args --elf-sha256-offset 0xb0) - # For chips that support configurable MMU page size feature - # If page size is configured to values other than the default "64KB" in menuconfig, - # then we need to pass the actual size to flash-mmu-page-size arg - if(NOT MMU_PAGE_SIZE STREQUAL "64KB") - list(APPEND esptool_elf2image_args --flash-mmu-page-size ${MMU_PAGE_SIZE}) - endif() + list(APPEND esptool_elf2image_args --flash-mmu-page-size ${MMU_PAGE_SIZE}) endif() if(NOT CONFIG_SECURE_BOOT_ALLOW_SHORT_APP_PARTITION AND NOT BOOTLOADER_BUILD)