-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'refactor/resolve_mmu_soc_dependency_to_sdkconfig_h' int…
…o 'master' g0: resolve MMU_PAGE_SIZE not defined in g0 build issue Closes IDF-5219 See merge request espressif/esp-idf!22447
- Loading branch information
Showing
14 changed files
with
105 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
menu "SoC Settings" | ||
# No visible menu/configs for now | ||
visible if 0 | ||
|
||
menu "MMU Config" | ||
# This Config is used for configure the MMU. | ||
# Be configured based on flash size selection. | ||
# Invisible to users. | ||
|
||
config MMU_PAGE_SIZE_16KB | ||
bool | ||
default y if IDF_TARGET_ESP32C2 && ESPTOOLPY_FLASHSIZE_1MB | ||
default n | ||
|
||
config MMU_PAGE_SIZE_32KB | ||
bool | ||
default y if IDF_TARGET_ESP32C2 && ESPTOOLPY_FLASHSIZE_2MB | ||
default n | ||
|
||
config MMU_PAGE_SIZE_64KB | ||
bool | ||
default y if !MMU_PAGE_SIZE_32KB && !MMU_PAGE_SIZE_16KB | ||
default n | ||
|
||
config MMU_PAGE_MODE | ||
string | ||
default "8KB" if MMU_PAGE_SIZE_8KB | ||
default "16KB" if MMU_PAGE_SIZE_16KB | ||
default "32KB" if MMU_PAGE_SIZE_32KB | ||
default "64KB" if MMU_PAGE_SIZE_64KB | ||
|
||
config MMU_PAGE_SIZE | ||
# Some chips support different flash MMU page sizes: 64k, 32k, 16k. | ||
# Since the number of MMU pages is limited, the maximum flash size supported | ||
# for each page size is reduced proportionally: 4 MB, 2MB, 1MB. To make best | ||
# use of small flash sizes (reducing the wasted space due to alignment), we | ||
# need to use the smallest possible MMU page size for the given flash size. | ||
hex | ||
default 0x2000 if MMU_PAGE_SIZE_8KB | ||
default 0x4000 if MMU_PAGE_SIZE_16KB | ||
default 0x8000 if MMU_PAGE_SIZE_32KB | ||
default 0x10000 if MMU_PAGE_SIZE_64KB | ||
endmenu | ||
|
||
endmenu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.