Skip to content

Commit 0754518

Browse files
doki-nordiccarlescufi
authored andcommitted
samples: bluetooth: Disable console by default in Power Profiling
To reduce power as much as possible in Power Profiling, this commit disables UART console by default in all targets. Signed-off-by: Dominik Kilian <[email protected]> (cherry picked from commit 8ab384a)
1 parent a2d561b commit 0754518

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

samples/bluetooth/peripheral_power_profiling/README.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,8 @@ CONFIG_BT_POWER_PROFILING_LED_DISABLED - Disable LEDs
229229
CONFIG_BT_POWER_PROFILING_NFC_DISABLED - Disable NFC
230230
Disables the NFC to reduce power consumption.
231231

232-
You can also consider using the following global configuration options to disable the console and UART, reducing power consumption:
232+
The console is disabled by default to reduce power consumption.
233+
To enable the console, set the following Kconfig options to ``y``:
233234

234235
* :kconfig:option:`CONFIG_SERIAL`
235236
* :kconfig:option:`CONFIG_CONSOLE`
@@ -259,6 +260,12 @@ Testing with Bluetooth Low Energy app and Power Profiler Kit II (PPK2)
259260

260261
1. Set up `Power Profiler Kit II (PPK2)`_ and prepare your development kit for current measurement.
261262
#. Run the `Power Profiler app`_ from nRF Connect for Desktop.
263+
#. To see terminal messages (at the cost of a very small increase in power consumption), enable the following Kconfig options:
264+
265+
* :kconfig:option:`CONFIG_SERIAL`
266+
* :kconfig:option:`CONFIG_CONSOLE`
267+
* :kconfig:option:`CONFIG_UART_CONSOLE`
268+
262269
#. |connect_terminal_ANSI|
263270
#. Reset your development kit.
264271
#. Observe that the sample starts.

samples/bluetooth/peripheral_power_profiling/prj.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,9 @@ CONFIG_POWEROFF=y
3333

3434
CONFIG_BT_ASSERT=n
3535
CONFIG_ASSERT_VERBOSE=n
36+
37+
# Disable UART console by default.
38+
# Comment following lines to bring UART console back.
39+
CONFIG_SERIAL=n
40+
CONFIG_CONSOLE=n
41+
CONFIG_UART_CONSOLE=n

0 commit comments

Comments
 (0)