]> granicus.if.org Git - esp-idf/commit
nvs_flash: Version compatibility check for nvs storage
authorSagar Bijwe <sagar@espressif.com>
Wed, 25 Jul 2018 15:11:09 +0000 (20:41 +0530)
committerbot <bot@espressif.com>
Sun, 5 Aug 2018 00:00:56 +0000 (00:00 +0000)
commit1df85e0039bf444eec58e246f3e8336105bec72d
tree0b6ee2dbcfa4a6454db34fc83857be2669bdfa31
parent8ef7a49cc363e2dc93b1389dd845f9a1ec35c70a
nvs_flash: Version compatibility check for nvs storage

This change adds a check for compatibility between the nvs version
found on nvs flash and the one assumed by running code during nvs
initialization. Any mismatch is reported to the user using new error
code ESP_ERR_NVS_NEW_VERSION_FOUND.
45 files changed:
components/driver/test/test_adc2.c
components/esp32/esp_err_to_name.c
components/esp32/test/test_esp32.c
components/nvs_flash/include/nvs.h
components/nvs_flash/src/nvs_page.cpp
components/nvs_flash/src/nvs_page.hpp
components/nvs_flash/test/test_nvs.c
components/nvs_flash/test_nvs_host/test_nvs.cpp
examples/bluetooth/a2dp_gatts_coex/main/main.c
examples/bluetooth/a2dp_sink/main/main.c
examples/bluetooth/a2dp_source/main/main.c
examples/bluetooth/ble_adv/main/app_bt.c
examples/bluetooth/ble_hid_device_demo/main/ble_hidd_demo_main.c
examples/bluetooth/ble_spp_server/main/ble_spp_server_demo.c
examples/bluetooth/ble_throughput/throughput_client/main/example_ble_client_throughput.c
examples/bluetooth/ble_throughput/throughput_server/main/example_ble_server_throughput.c
examples/bluetooth/blufi/main/blufi_example_main.c
examples/bluetooth/bt_discovery/main/bt_discovery.c
examples/bluetooth/bt_spp_acceptor/main/example_spp_acceptor_demo.c
examples/bluetooth/bt_spp_initiator/main/example_spp_initiator_demo.c
examples/bluetooth/bt_spp_vfs_acceptor/main/example_spp_vfs_acceptor_demo.c
examples/bluetooth/bt_spp_vfs_initiator/main/example_spp_vfs_initiator_demo.c
examples/bluetooth/controller_hci_uart/main/controller_hci_uart_demo.c
examples/bluetooth/gatt_client/main/gattc_demo.c
examples/bluetooth/gatt_client/tutorial/Gatt_Client_Example_Walkthrough.md
examples/bluetooth/gatt_security_client/main/example_ble_sec_gattc_demo.c
examples/bluetooth/gatt_security_server/main/example_ble_sec_gatts_demo.c
examples/bluetooth/gatt_server/main/gatts_demo.c
examples/bluetooth/gatt_server/tutorial/Gatt_Server_Example_Walkthrough.md
examples/bluetooth/gatt_server_service_table/main/gatts_table_creat_demo.c
examples/bluetooth/gatt_server_service_table/tutorial/Gatt_Server_Service_Table_Example_Walkthrough.md
examples/bluetooth/gattc_multi_connect/main/gattc_multi_connect.c
examples/protocols/aws_iot/subscribe_publish/main/subscribe_publish_sample.c
examples/protocols/aws_iot/thing_shadow/main/thing_shadow_sample.c
examples/protocols/esp_http_client/main/esp_http_client_example.c
examples/storage/nvs_rw_blob/main/nvs_blob_example_main.c
examples/storage/nvs_rw_value/main/nvs_value_example_main.c
examples/system/console/main/console_example_main.c
examples/system/ota/main/ota_example_main.c
examples/wifi/espnow/main/espnow_example_main.c
examples/wifi/iperf/main/main.c
examples/wifi/power_save/main/power_save.c
examples/wifi/scan/main/scan.c
examples/wifi/simple_wifi/main/simple_wifi.c
examples/wifi/wps/main/wps.c