esp-idf/components
Ivan Grokhotkov ecee175962 Merge branch 'bugfix/nvs_init_check_empty_pages' into 'master'
Error handling in NVS initialization

Previously nvs_flash_init worked under an assumption that there should always be at least one free page available. This is true during normal operation, but in some cases (such as when changing application partition table from a non-OTA to an OTA one), NVS partition may get truncated, which will cause empty pages to be lost.

This MR adds error checks for this condition, and updates code which calls `nvs_flash_init` to check for the return code.
For most examples, a simple `ESP_ERROR_CHECK` is added around `nvs_flash_init`. For NVS examples and the OTA example, more robust error handling is added.

This change also removes nvs_flash_init calls from examples which don't use NVS.

See merge request !582
2017-03-23 17:57:15 +08:00
..
app_update app_update: fix logic error when update ota info 2017-02-22 10:26:04 +11:00
aws_iot AWS IoT Device SDK Support 2017-03-13 17:23:29 +08:00
bootloader make: don’t override TEST_COMPONENTS 2017-03-09 19:43:39 +08:00
bootloader_support Merge branch 'feature/docs_partition_ota_flash' into 'master' 2017-03-03 11:27:01 +08:00
bt component/bt : fix blufi bug of sec_mode reset 2017-03-21 17:17:07 +08:00
coap coap: Initialise/update the libcoap submodule 2017-01-10 11:12:02 +11:00
cxx cxx: add iostreams test 2017-01-11 15:03:14 +08:00
driver Merge branch 'feature/ledc_low_speed_channels' into 'master' 2017-03-21 15:35:40 +08:00
esp32 Merge branch 'bugfix/nvs_init_check_empty_pages' into 'master' 2017-03-23 17:57:15 +08:00
espcoredump esp32: Fixed search path for esptool 2017-01-26 19:28:13 +03:00
esptool_py idf_monitor: Small fixes (baud rate, EOL, /dev/tty.X on macOS, Ctrl-T on failure) 2017-03-21 16:00:32 +08:00
ethernet mac address: add the number of MAC address generated from efuse for user to choose 2017-03-02 15:54:35 +08:00
expat Build system: Raise warning level 2016-11-16 15:57:34 +11:00
fatfs fatfs: Support for Long Filenames 2017-03-08 09:54:40 +11:00
freertos Malloc test: tabs -> spaces, fix description 2017-03-08 19:44:57 +08:00
idf_test CI: add script for parsing unit test cases for CI from test files 2017-01-18 17:08:20 +08:00
jsmn Add jsmn JSON parser component 2017-03-07 10:18:47 +11:00
json cJSON:Add float format process 2017-01-09 17:51:48 +08:00
log log: fix esp_log_level_set function name in docs 2017-01-16 02:37:10 +08:00
lwip Merge branch 'feature/lwip_numbers' into 'master' 2017-03-06 22:37:12 +08:00
mbedtls Merge branch 'bugfix/mbedtls_non_blocking_sockets' into 'master' 2017-03-15 10:39:53 +08:00
mdns address security issues with mDNS 2017-03-14 10:08:38 +02:00
micro-ecc micro-ecc: Add submodule dependency 2016-11-17 09:18:51 +11:00
newlib Merge branch 'feature/deep_sleep_wakeup_from_touch' into 'master' 2017-03-08 14:27:58 +08:00
nghttp components/coap: Add libcoap port for ESP32 platform 2016-12-30 15:05:26 +08:00
nvs_flash nvs: print page state as text in nvs_dump 2017-03-15 17:28:07 +08:00
openssl components/openssl : Fix compilation error when openssl debugging is enabled 2017-02-20 09:45:50 +08:00
partition_table partition_table: update unit test 2017-03-04 17:45:04 +08:00
sdmmc esp32: add [ignore] tag to some unit test cases for CI 2017-01-18 17:08:20 +08:00
spi_flash spi_flash: fix stale data being read from mmaped region 2017-03-04 17:48:44 +08:00
tcpip_adapter Merge branch 'bugfix/github_small_fixes' into 'master' 2017-03-03 12:58:22 +08:00
ulp ulp: ignore tests which use deep sleep 2017-03-08 16:19:58 +08:00
vfs docs: use custom roles to generate GitHub links 2017-01-20 17:22:47 +08:00
wpa_supplicant wpa2 enterprise: change the type macro to platform default macro ESP_PLATFORM. 2016-11-25 16:56:09 +08:00
xtensa-debug-module build system: Refactor component.mk to not need component_common.mk 2016-11-10 15:52:22 +11:00