Skip to content

Commit a3d12dd

Browse files
authored
use sdkconfig setting MMU_PAGE_SIZE
1 parent faee6ac commit a3d12dd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

builder/frameworks/espidf.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2068,6 +2068,15 @@ def _skip_prj_source_files(node):
20682068
# For chips that support configurable MMU page size feature
20692069
# If page size is configured to values other than the default "64KB" in menuconfig,
20702070
mmu_page_size = "64KB"
2071+
if sdk_config.get("MMU_PAGE_SIZE_8KB", False):
2072+
mmu_page_size = "8KB"
2073+
elif sdk_config.get("MMU_PAGE_SIZE_16KB", False):
2074+
mmu_page_size = "16KB"
2075+
elif sdk_config.get("MMU_PAGE_SIZE_32KB", False):
2076+
mmu_page_size = "32KB"
2077+
else:
2078+
mmu_page_size = "64KB"
2079+
20712080
if sdk_config.get("SOC_MMU_PAGE_SIZE_CONFIGURABLE", False):
20722081
if board_flash_size == "2MB":
20732082
mmu_page_size = "32KB"

0 commit comments

Comments
 (0)