Browse Source

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>
pull/32850/head
Glauber Maroto Ferreira 4 years ago committed by Kumar Gala
parent
commit
ca758c84a8
  1. 10
      boards/xtensa/esp32/esp32.dts
  2. 1
      boards/xtensa/esp32/esp32.yaml
  3. 1
      samples/subsys/nvs/boards/esp32.conf
  4. 4
      samples/subsys/settings/boards/esp32.conf

10
boards/xtensa/esp32/esp32.dts

@ -114,4 +114,14 @@ @@ -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>;
};
};
};

1
boards/xtensa/esp32/esp32.yaml

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

1
samples/subsys/nvs/boards/esp32.conf

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

4
samples/subsys/settings/boards/esp32.conf

@ -0,0 +1,4 @@ @@ -0,0 +1,4 @@
CONFIG_HEAP_MEM_POOL_SIZE=256
CONFIG_NVS=y
CONFIG_SETTINGS_NVS=y
CONFIG_MPU_ALLOW_FLASH_WRITE=y
Loading…
Cancel
Save