Skip to content

Commit 99601e8

Browse files
committed
Merge branch 'feat/bootloader_nvs_read_encrypted_v5.4' into 'release/v5.4'
fix(esptool_py): NVS partition being incorrectly marked as encrypted by the build system (v5.4) See merge request espressif/esp-idf!36679
2 parents 6b47328 + 646492d commit 99601e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/esptool_py/project_include.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,13 +289,13 @@ function(esptool_py_partition_needs_encryption retencrypted partition_name)
289289
# - DATA 0x01
290290
# Subtypes:
291291
# - ota 0x00
292-
# - nvs 0x02
293-
# If the partition is an app, an OTA or an NVS partition, then it should
292+
# - nvs_keys 0x04
293+
# If the partition is an app, an OTA or an NVS keys partition, then it should
294294
# be encrypted
295295
if(
296296
(${type} EQUAL 0) OR
297297
(${type} EQUAL 1 AND ${subtype} EQUAL 0) OR
298-
(${type} EQUAL 1 AND ${subtype} EQUAL 2)
298+
(${type} EQUAL 1 AND ${subtype} EQUAL 4)
299299
)
300300
set(encrypted TRUE)
301301
endif()

0 commit comments

Comments
 (0)