mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user