]> granicus.if.org Git - esp-idf/commit
nvs_flash: Detect key partition as uninitialised even if encrypted by bootloader
authorSagar Bijwe <sagar@espressif.com>
Fri, 1 Feb 2019 07:35:48 +0000 (13:05 +0530)
committerSagar Bijwe <sagar@espressif.com>
Fri, 1 Feb 2019 07:58:13 +0000 (13:28 +0530)
commitd32128440d836a65412698afb0b0d03b34fc14ee
tree8e03acdd00d3928937aa9e49bfb224ed04d4f64a
parent2790d4a049cdaf4f9fc94528b7dc2e848bfbd5f2
nvs_flash: Detect key partition as uninitialised even if encrypted by bootloader

Currently, only erase operation performed by the application leads
to detection of NVS key partition as uninitialised. This change
adds additional checks for detecting partition as uninitialised,
when device boots first time right after encryption by bootloader.
components/nvs_flash/src/nvs_api.cpp
components/nvs_flash/test/test_nvs.c