Skip to content

Commit 502b637

Browse files
zyczrlubos
authored andcommitted
samples: caf_sensor_manager: sensor manager sample add single core conf
Add single core configuration for nrf5340dk. Change configurations for nrf52840dk and nrf5340dk_multicore no to use uart and other unnecessery periferials. Jira: NCSDK-15001 Signed-off-by: Jan Zyczkowski <jan.zyczkowski@nordicsemi.no>
1 parent 3d626b9 commit 502b637

File tree

4 files changed

+56
-18
lines changed

4 files changed

+56
-18
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#
2+
# Copyright (c) 2022 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
################################################################################
7+
8+
CONFIG_INCLUDE_REMOTE_IMAGE=n
9+
CONFIG_REMOTE_CORE_BOARD=""
10+
11+
CONFIG_EVENT_MANAGER_PROXY=n
12+
CONFIG_IPC_SERVICE=n
13+
CONFIG_MBOX=n
14+
CONFIG_NRF53_SYNC_RTC=n
15+
CONFIG_OPENAMP=n
16+
17+
CONFIG_CAF_SENSOR_MANAGER=y
18+
CONFIG_CAF_SENSOR_DATA_AGGREGATOR=y
19+
20+
CONFIG_SENSOR=y
21+
CONFIG_SENSOR_SIM=y

samples/caf_sensor_manager/prj.conf

+3
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,8 @@ CONFIG_SENSOR_SIM=y
2727
CONFIG_ASSERT=y
2828
CONFIG_RESET_ON_FATAL_ERROR=n
2929

30+
# Disable GPIO
31+
CONFIG_GPIO=n
32+
3033
CONFIG_LOG=y
3134
CONFIG_LOG_MODE_DEFERRED=y

samples/caf_sensor_manager/remote/prj.conf

+3
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,8 @@ CONFIG_OPENAMP_MASTER=n
3434
CONFIG_ASSERT=y
3535
CONFIG_RESET_ON_FATAL_ERROR=n
3636

37+
# Disable GPIO
38+
CONFIG_GPIO=n
39+
3740
CONFIG_LOG=y
3841
CONFIG_LOG_MODE_DEFERRED=y
+29-18
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,34 @@
11
sample:
22
description: Sample showing CAF sensor manager usage
33
name: CAF sensor manager sample
4-
common:
5-
harness: console
6-
integration_platforms:
7-
- nrf52840dk_nrf52840
8-
- nrf5340dk_nrf5340_cpuapp
9-
- qemu_cortex_m3
10-
11-
platform_exclude: native_posix qemu_x86
12-
harness_config:
13-
type: multi_line
14-
ordered: true
15-
regex:
16-
- "sensor_sim_ctrl state:READY"
17-
- "accel_sim_xyz state:ACTIVE"
18-
- "Send sensor buffer desc address:"
19-
- "sensor_data_aggregator_release_buffer_event"
20-
214
tests:
22-
sample.caf_sensor_manager:
5+
sample.caf_sensor_manager.correctness_test:
236
build_only: false
7+
harness: console
8+
integration_platforms:
9+
- nrf52840dk_nrf52840
10+
- nrf5340dk_nrf5340_cpuapp
11+
- qemu_cortex_m3
12+
harness_config:
13+
type: multi_line
14+
ordered: true
15+
regex:
16+
- "main state:READY"
17+
- "sensor_sim_ctrl state:READY"
18+
- "Send sensor buffer desc address:"
19+
- "sensor_data_aggregator_release_buffer_event"
20+
sample.caf_sensor_manager.nrf52840dk.power_consumption_test:
21+
build_only: false
22+
integration_platforms:
23+
- nrf52840dk_nrf52840
24+
extra_args: CONFIG_SERIAL=n CONFIG_CONSOLE=n CONFIG_UART_CONSOLE=n CONFIG_LOG=n
25+
sample.caf_sensor_manager.multi_core.power_consumption_test:
26+
build_only: false
27+
integration_platforms:
28+
- nrf5340dk_nrf5340_cpuapp
29+
extra_args: CONFIG_SERIAL=n CONFIG_CONSOLE=n CONFIG_UART_CONSOLE=n CONFIG_LOG=n remote_CONFIG_SERIAL=n remote_CONFIG_CONSOLE=n remote_CONFIG_UART_CONSOLE=n remote_CONFIG_LOG=n
30+
sample.caf_sensor_manager.nrf5340dk_singlecore.power_consumption_test:
31+
build_only: false
32+
integration_platforms:
33+
- nrf5340dk_nrf5340_cpuapp
34+
extra_args: OVERLAY_CONFIG=boards/nrf5340dk_nrf5340_cpuapp_nrf5340_singlecore.conf CONFIG_SERIAL=n CONFIG_CONSOLE=n CONFIG_UART_CONSOLE=n CONFIG_LOG=n

0 commit comments

Comments
 (0)