Skip to content

Commit

Permalink
samples: subsys: nvs on nucleo_g431 requires 6kB for storage partitions
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
FRASTM authored and carlescufi committed Nov 23, 2023
1 parent c949018 commit f442c03
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions samples/subsys/nvs/boards/nucleo_g431rb.overlay
Original file line number Diff line number Diff line change
@@ -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)>;
};
};
};

0 comments on commit f442c03

Please sign in to comment.