esp32: nvs: add NVS support using fixed partitions

Add NVS support to ESP32 using fixed partitions defined on DT

Signed-off-by: Glauber Maroto Ferreira <glauber.ferreira@espressif.com>
This commit is contained in:
Glauber Maroto Ferreira 2021-03-11 14:06:38 -03:00 committed by Kumar Gala
parent 2affd52339
commit ca758c84a8
4 changed files with 16 additions and 0 deletions

View file

@ -114,4 +114,14 @@
&flash0 {
status = "okay";
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
storage_partition: partition@9000 {
label = "storage";
reg = <0x00009000 0x00006000>;
};
};
};

View file

@ -10,3 +10,4 @@ supported:
- watchdog
- uart
- pinmux
- nvs

View file

@ -0,0 +1 @@
CONFIG_HEAP_MEM_POOL_SIZE=256

View file

@ -0,0 +1,4 @@
CONFIG_HEAP_MEM_POOL_SIZE=256
CONFIG_NVS=y
CONFIG_SETTINGS_NVS=y
CONFIG_MPU_ALLOW_FLASH_WRITE=y