Commit bcf78f29 authored by Glauber Maroto Ferreira's avatar Glauber Maroto Ferreira Committed by Christopher Friedt
Browse files

soc: riscv: esp32c3: nvs: add NVS support using fixed partitions



add NVS support to esp32c3 using fixed partitions defined on DT

Signed-off-by: default avatarGlauber Maroto Ferreira <glauber.ferreira@espressif.com>
parent 2773984e
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -44,3 +44,17 @@
&gpio0 {
	status = "okay";
};

&flash0 {
	status = "okay";
	partitions {
		compatible = "fixed-partitions";
		#address-cells = <1>;
		#size-cells = <1>;

		storage_partition: partition@9000 {
			label = "storage";
			reg = <0x00009000 0x00006000>;
		};
	};
};
+1 −0
Original line number Diff line number Diff line
CONFIG_HEAP_MEM_POOL_SIZE=256
+4 −0
Original line number Diff line number Diff line
CONFIG_HEAP_MEM_POOL_SIZE=256
CONFIG_NVS=y
CONFIG_SETTINGS_NVS=y
CONFIG_MPU_ALLOW_FLASH_WRITE=y