From f442c03a20f4d17b8a05ad304a9776493c2e4ecc Mon Sep 17 00:00:00 2001 From: Francois Ramu Date: Tue, 21 Nov 2023 16:15:50 +0100 Subject: [PATCH] samples: subsys: nvs on nucleo_g431 requires 6kB for storage partitions Add the overlay for running the samples/subsys/nvs/ application on the nucleo_g31rb. Define a 6kB storage_partition at the end of the 128kB flash. Signed-off-by: Francois Ramu --- samples/subsys/nvs/boards/nucleo_g431rb.overlay | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 samples/subsys/nvs/boards/nucleo_g431rb.overlay diff --git a/samples/subsys/nvs/boards/nucleo_g431rb.overlay b/samples/subsys/nvs/boards/nucleo_g431rb.overlay new file mode 100644 index 000000000000..ee0f1af77ac6 --- /dev/null +++ b/samples/subsys/nvs/boards/nucleo_g431rb.overlay @@ -0,0 +1,17 @@ +/* + * Copyright (c) 2023 STMicroelectronics + * + * SPDX-License-Identifier: Apache-2.0 + */ + +/delete-node/ &storage_partition; + +&flash0 { + partitions { + /* Set 6KB of storage at the end of 128KB flash */ + storage_partition: partition@1e800 { + label = "storage"; + reg = <0x0001e800 DT_SIZE_K(6)>; + }; + }; +};