OVMS3-idf/components
Ivan Grokhotkov b8e940d645 Merge branch 'bugfix/nvs_write_failure' into 'master'
Fix spi_flash_write regression and nvs error recovery

In the previous set of changes related to spi_flash, new alignment checks were added. One of these checks, word alignment of `src` buffer in `nvs_flas_write`, was unnecessary.  ROM `SPIWrite` function can handle unaligned source buffers.

This change caused an error to be returned to nvs for some legitimate write operations. Due to a bug in nvs, further write operations were possible, while the internal state of `Page` instance was broken. In WiFi functional tests, this inflicted havoc on the nvs partition, creating multiple duplicate items in the affected page. Because multiple duplicate items per page were never supposed to be handled during page load, duplicates were not removed. Thankfully this caused an assert at a later point in the loading process, otherwise this bug would be very difficult to detect.

This change set fixes the original spi_flash regression, handling of `INVALID` state of `nvs::Page`, and handling of duplicate items.

See merge request !161
2016-11-01 22:26:37 +08:00
..
bootloader bootloader: move useful structures to esp32 component 2016-10-27 17:57:29 +08:00
bt docu makup update 2016-11-01 01:21:18 +08:00
driver Sample cleaning of markup 2016-11-01 01:20:04 +08:00
esp32 esp32: update wifi lib 2016-11-01 15:34:30 +08:00
esptool_py bootloader, menuconfig: add flash size setting support 2016-10-21 15:27:25 +11:00
expat components/expat: just change format of expat.rst 2016-09-28 16:26:35 +08:00
freertos Merge branch 'feature/crosscore_int' into 'master' 2016-10-31 11:04:28 +08:00
idf_test fix bug for case WIFI_CONN_0102: 2016-10-24 18:59:56 +08:00
json json & expat: Update component.mk after merging from master 2016-09-09 14:07:45 +10:00
log Fixed confused Sphinx 2016-11-01 01:21:18 +08:00
lwip lwip: remove tx flow control code 2016-11-01 15:25:46 +08:00
mbedtls Kconfig: use 4 spaces to instead 1 tab 2016-09-28 13:24:58 +08:00
newlib vfs: code review fixes 2016-10-27 17:25:38 +08:00
nghttp Add test for compiling in release mode, fix warnings and errors which appeared 2016-10-17 13:40:10 +08:00
nvs_flash Merge branch 'bugfix/nvs_write_failure' into 'master' 2016-11-01 22:26:37 +08:00
partition_table Remove bin/ directory in favour of an add_path.sh script that can be sourced 2016-09-01 18:45:10 +10:00
spi_flash spi_flash: remove unnecessary src pointer alignment check in spi_flash_write 2016-10-31 19:08:56 +08:00
tcpip_adapter esp32/tcpip_adapter: softap supports max 10 stations 2016-10-28 16:53:49 +08:00
vfs vfs: fix adding CR 2016-10-28 16:16:12 +08:00
xtensa-debug-module Add licenses to Trax files 2016-10-21 18:01:20 +08:00