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:
parent
2affd52339
commit
ca758c84a8
|
@ -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>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -10,3 +10,4 @@ supported:
|
|||
- watchdog
|
||||
- uart
|
||||
- pinmux
|
||||
- nvs
|
||||
|
|
1
samples/subsys/nvs/boards/esp32.conf
Normal file
1
samples/subsys/nvs/boards/esp32.conf
Normal file
|
@ -0,0 +1 @@
|
|||
CONFIG_HEAP_MEM_POOL_SIZE=256
|
4
samples/subsys/settings/boards/esp32.conf
Normal file
4
samples/subsys/settings/boards/esp32.conf
Normal file
|
@ -0,0 +1,4 @@
|
|||
CONFIG_HEAP_MEM_POOL_SIZE=256
|
||||
CONFIG_NVS=y
|
||||
CONFIG_SETTINGS_NVS=y
|
||||
CONFIG_MPU_ALLOW_FLASH_WRITE=y
|
Loading…
Reference in a new issue