Skip to content

Commit 2112401

Browse files
committed
samples: net: openthread: coap: enable NVS as Settings backend
When PSA Crypto API are used they need a PSA ITS implementation and this is provided by Secure Storage if TF-M is not enabled in the build. Secure Storage can use Settings as backend and Settings, on its turn, can use several other backends to store data (ex: ZMS, NVS, etc). Since NVS is already enabled in other OpenThread Zephyr samples, let's enable NVS also for this sample. While at it, also slightly re-organize "sample.yaml" to share more data between tests and allow building and testing also on the nrf52840dk board. Signed-off-by: Valerio Setti <[email protected]>
1 parent 9ced7fa commit 2112401

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

samples/net/openthread/coap/prj.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,6 @@ CONFIG_OPENTHREAD_XPANID="11:11:11:11:22:22:22:22"
2626
CONFIG_OPENTHREAD_NETWORKKEY="00:11:22:33:44:55:66:77:88:99:aa:bb:cc:dd:ee:ff"
2727
CONFIG_OPENTHREAD_CHANNEL=15
2828
CONFIG_OPENTHREAD_NETWORK_NAME="OpenThreadDemo"
29+
30+
# Use NVS as settings backend
31+
CONFIG_NVS=y

samples/net/openthread/coap/sample.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,15 @@ common:
55
- openthread
66
depends_on: openthread
77
min_flash: 140
8+
build_only: true
9+
platform_allow:
10+
- cc1352p7_lp
11+
- nrf52840dk/nrf52840
812
sample:
913
description: Runs the OpenThread stack as FTD with CoAP
1014
name: OpenThread FTD CoAP
1115
tests:
12-
sample.net.openthread.ftd.coap.client:
13-
build_only: true
14-
platform_allow:
15-
- cc1352p7_lp
16+
sample.net.openthread.ftd.coap.client: {}
1617
sample.net.openthread.ftd.coap.server:
17-
build_only: true
18-
platform_allow:
19-
- cc1352p7_lp
2018
extra_configs:
2119
- CONFIG_OT_COAP_SAMPLE_SERVER=y

0 commit comments

Comments
 (0)