Skip to content

Commit a860b09

Browse files
authored
use sdkconfig setting MMU_PAGE_SIZE
1 parent 55d3958 commit a860b09

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

0 commit comments

Comments
 (0)