mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 10:40:47 +03:00
feat(esp_hw_support): Memory region protection for ESP32-H4
This commit is contained in:
@@ -635,8 +635,20 @@ CONFIGS_MEMPROT_IDRAM = list(
|
||||
'memprot_esp32p4',
|
||||
'memprot_esp32h21',
|
||||
'memprot_esp32s31',
|
||||
'memprot_esp32h4',
|
||||
],
|
||||
[
|
||||
'esp32s2',
|
||||
'esp32c3',
|
||||
'esp32c2',
|
||||
'esp32c5',
|
||||
'esp32c61',
|
||||
'esp32h2',
|
||||
'esp32p4',
|
||||
'esp32h21',
|
||||
'esp32s31',
|
||||
'esp32h4',
|
||||
],
|
||||
['esp32s2', 'esp32c3', 'esp32c2', 'esp32c5', 'esp32c61', 'esp32h2', 'esp32p4', 'esp32h21', 'esp32s31'],
|
||||
)
|
||||
) + [
|
||||
('memprot_esp32p4_rev_less_than_v3', 'esp32p4', P4_REV_LESS_THAN_V3_MARKER),
|
||||
@@ -676,8 +688,9 @@ CONFIGS_MEMPROT_FLASH_IDROM = list(
|
||||
'memprot_esp32p4',
|
||||
'memprot_esp32h21',
|
||||
'memprot_esp32s31',
|
||||
'memprot_esp32h4',
|
||||
],
|
||||
['esp32c5', 'esp32c6', 'esp32c61', 'esp32h2', 'esp32p4', 'esp32h21', 'esp32s31'],
|
||||
['esp32c5', 'esp32c6', 'esp32c61', 'esp32h2', 'esp32p4', 'esp32h21', 'esp32s31', 'esp32h4'],
|
||||
)
|
||||
) + [
|
||||
('memprot_esp32p4_rev_less_than_v3', 'esp32p4', P4_REV_LESS_THAN_V3_MARKER),
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
# Restricting to ESP32H4
|
||||
CONFIG_IDF_TARGET="esp32h4"
|
||||
|
||||
# Enabling memory protection
|
||||
CONFIG_ESP_SYSTEM_MEMPROT=y
|
||||
|
||||
# Enable memprot test
|
||||
CONFIG_TEST_MEMPROT=y
|
||||
Reference in New Issue
Block a user