-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples: openthread: Enabled ZMS for OpenThread samples
The settings backend for the nRF54L SoC family should be selected to the ZMS, so it was applied for all OpenThread samples. Additionally, added a cmake check that prints warning in case someone uses NVS with nRF54L SoC and informs about the consequences. Signed-off-by: Kamil Kasperczyk <kamil.kasperczyk@nordicsemi.no>
- Loading branch information
1 parent
ed6324d
commit 43ceb65
Showing
4 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# | ||
# Copyright (c) 2024 Nordic Semiconductor | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
# This script checks if NVS settings backend is used with nRF54L SoC target and prints | ||
# the warning that the recommended backend is ZMS due to the RRAM design. | ||
|
||
if (CONFIG_SOC_SERIES_NRF54LX AND CONFIG_SETTINGS_NVS) | ||
message(WARNING " ###################################################################################\n" | ||
" # #\n" | ||
" # Your application uses NVS backend for the settings storage that is not #\n" | ||
" # optimal solution for the nRF54L SoC family and it may negatively impact #\n" | ||
" # the non-volatile RRAM life-time. #\n" | ||
" # #\n" | ||
" # The recommended settings backend for nRF54L SoC family is ZMS. #\n" | ||
" # You can enable it by selecting CONFIG_SETTINGS_ZMS=y and CONFIG_ZMS=y. #\n" | ||
" # Please note that the other Kconfig options related to NVS like cache #\n" | ||
" # or block size will require alignment on the ZMS side as well. #\n" | ||
" # #\n" | ||
" ###################################################################################\n") | ||
endif() |