Skip to content

Commit 2a855c8

Browse files
authored
use sdkconfig setting MMU_PAGE_SIZE
1 parent cee33aa commit 2a855c8

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
@@ -2032,6 +2032,15 @@ def _skip_prj_source_files(node):
20322032
# For chips that support configurable MMU page size feature
20332033
# If page size is configured to values other than the default "64KB" in menuconfig,
20342034
mmu_page_size = "64KB"
2035+
if sdk_config.get("MMU_PAGE_SIZE_8KB", False):
2036+
mmu_page_size = "8KB"
2037+
elif sdk_config.get("MMU_PAGE_SIZE_16KB", False):
2038+
mmu_page_size = "16KB"
2039+
elif sdk_config.get("MMU_PAGE_SIZE_32KB", False):
2040+
mmu_page_size = "32KB"
2041+
else:
2042+
mmu_page_size = "64KB"
2043+
20352044
if sdk_config.get("SOC_MMU_PAGE_SIZE_CONFIGURABLE", False):
20362045
if board_flash_size == "2MB":
20372046
mmu_page_size = "32KB"

0 commit comments

Comments
 (0)