Skip to content

Commit e03d05a

Browse files
edmontmilewr
authored andcommitted
samples: fix nRF52840 sleep current
Modify low_power snippet to reduce sleep current. Signed-off-by: Eduardo Montoya <[email protected]>
1 parent 71d2e56 commit e03d05a

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#
2+
# Copyright (c) 2025 Nordic Semiconductor
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
# Workaround for NCS 2.9.0/3.0.0
8+
# Uses kernel timer instead of dedicated timer2 to avoid 10µA sleep current increase
9+
# when timer2 is explicitly enabled in overlay files
10+
# TODO: Remove this when upgrading to NCS 3.1.0+
11+
CONFIG_ZIGBEE_TIME_KTIMER=y

samples/light_switch/snippets/low_power/snippet.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,8 @@
77
name: low_power
88
append:
99
EXTRA_CONF_FILE: low_power.conf
10+
11+
boards:
12+
nrf52840dk/nrf52840:
13+
append:
14+
EXTRA_CONF_FILE: boards/nrf52840dk_nrf52840.conf

0 commit comments

Comments
 (0)