Ivan Grokhotkov
979fce0df5
bt: call nvs_flash_init in examples, show error if NVS is not initialized
...
NVS is used to store PHY calibration data, WiFi configuration, and BT
configuration. Previously BT examples did not call nvs_flash_init,
relying on the fact that it is called during PHY init. However PHY init
did not handle possible NVS initialization errors.
This change moves PHY init procedure into the application, and adds
diagnostic messages to BT config management routines if NVS is not
initialized.
2017-07-17 21:29:50 +08:00
Ivan Grokhotkov
541b142654
phy_init: reduce the amount of hardwired logic, add coexist init
2016-11-18 20:11:17 +08:00
Ivan Grokhotkov
6e97936bac
nvs: allow nvs_flash_init to be called more than once
...
Also don’t assert in nvs_* functions if nvs_flash_init wasn’t called,
and make nvs_flash_init_custom an internal API for unit tests.
2016-11-18 20:11:16 +08:00
Ivan Grokhotkov
51021b06f8
nvs: initialize using layout from partition table
2016-11-18 20:11:16 +08:00
Liu Zhi Fu
f12be7ebd8
nvs_flash: adjust the nvs_flash start sector number
...
Modify the nvs flash start sector from 6 to 9
2016-11-17 11:22:20 +08:00
Ivan Grokhotkov
74a658c765
nvs: fix memory leaks in HashList and nvs_close
...
Fixes TW8162.
Associated test case is run under Instruments on macOS, until I set up valgrind to test this automatically on Linux.
2016-10-26 12:25:53 +08:00
Angus Gratton
a98ab8d801
nvs: Remove flash layout arguments from nvs_init()
...
Add notes that current NVS layout defaults are a Work In Progress and
not yet integrated with the partition table.
2016-09-27 13:28:45 +10:00
Ivan Grokhotkov
1c7508885c
components/nvs: fix build, use log library instead of printf
2016-09-23 09:00:28 +08:00
Ivan Grokhotkov
2a68f60874
components/nvs: add erase function
...
This change exposes functions to erase single key and to erase all keys from namespace.
TW6769, TW6839
2016-09-23 08:08:03 +08:00
Ivan Grokhotkov
e87d80d478
components/nvs: fix formatting
2016-09-22 21:05:47 +08:00
Ivan Grokhotkov
7447d08605
components/nvs: clear handles list on init, fix returning *length in nvs_get_{str,blob}
2016-08-23 12:08:00 +08:00
Ivan Grokhotkov
f04c894123
components/nvs: add debugging facilities and runtime checks
...
Extra runtime sanity checks run when compiled for the host (i.e. with no ESP_PLATFORM define)
2016-08-23 12:08:00 +08:00
Ivan Grokhotkov
bd6ea4393c
Initial public version
2016-08-17 23:08:22 +08:00