samples: subsys: nvs on nucleo_g474re requires 6kB for storage partition
Add the overlay for running the samples/subsys/nvs/ application on the nucleo_g474re. Define a 6kB storage_partition at the end of the 512kB flash. Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
parent
07d2b62cc7
commit
248cd36505
1 changed files with 17 additions and 0 deletions
17
samples/subsys/nvs/boards/nucleo_g474re.overlay
Normal file
17
samples/subsys/nvs/boards/nucleo_g474re.overlay
Normal file
|
@ -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 512KB flash */
|
||||
storage_partition: partition@7e800 {
|
||||
label = "storage";
|
||||
reg = <0x0007e800 DT_SIZE_K(6)>;
|
||||
};
|
||||
};
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue