diff --git a/boards/arm/stm32l562e_dk/stm32l562e_dk.yaml b/boards/arm/stm32l562e_dk/stm32l562e_dk.yaml index 614005cf15a..8ae4c8c6646 100644 --- a/boards/arm/stm32l562e_dk/stm32l562e_dk.yaml +++ b/boards/arm/stm32l562e_dk/stm32l562e_dk.yaml @@ -18,5 +18,6 @@ supported: - usart - arduino_spi - usb + - nvs ram: 192 flash: 512 diff --git a/samples/subsys/nvs/boards/stm32l562e_dk.overlay b/samples/subsys/nvs/boards/stm32l562e_dk.overlay new file mode 100644 index 00000000000..2339460023d --- /dev/null +++ b/samples/subsys/nvs/boards/stm32l562e_dk.overlay @@ -0,0 +1,17 @@ +/* + * Copyright (c) 2022 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)>; + }; + }; +};