Skip to content

Commit

Permalink
[nrf fromtree] tests: Bluetooth: tester: Add nRF5340 ADK as platform
Browse files Browse the repository at this point in the history
Add support for building and running the BT tester on the
nrf5340_audio_dk.

This is copying the configuration used for the nRF5340 DK.

Signed-off-by: Emil Gydesen <[email protected]>
(cherry picked from commit afb7d96)
  • Loading branch information
Thalley authored and AyturkDuzen committed Nov 21, 2024
1 parent 89bad3f commit 9ae8e79
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
25 changes: 25 additions & 0 deletions tests/bluetooth/tester/boards/nrf5340_audio_dk_nrf5340_cpuapp.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# CONFIG_TEST enforces minimal logging, which we don't want
CONFIG_TEST=n

CONFIG_ASSERT=y
# Enable the option below to measure stack usage
#CONFIG_INIT_STACKS=y
CONFIG_THREAD_NAME=y
CONFIG_HW_STACK_PROTECTION=y

CONFIG_LOG=y
CONFIG_LOG_BUFFER_SIZE=4096
CONFIG_RTT_CONSOLE=y
CONFIG_LOG_BACKEND_RTT=y
CONFIG_LOG_BACKEND_RTT_MODE_DROP=y
CONFIG_USE_SEGGER_RTT=y
CONFIG_SEGGER_RTT_BUFFER_SIZE_UP=4096
CONFIG_LOG_BACKEND_SHOW_COLOR=n
CONFIG_LOG_PROCESS_THREAD_STACK_SIZE=1024

CONFIG_LOG_DEFAULT_LEVEL=3
CONFIG_BTTESTER_LOG_LEVEL_DBG=y

CONFIG_UART_INTERRUPT_DRIVEN=y

CONFIG_BT_TINYCRYPT_ECC=y
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/* SPDX-License-Identifier: Apache-2.0 */

/ {
chosen {
zephyr,uart-pipe = &uart0;
};
};

&uart0 {
compatible = "nordic,nrf-uarte";
current-speed = <115200>;
status = "okay";
hw-flow-control;
};
1 change: 1 addition & 0 deletions tests/bluetooth/tester/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ tests:
- native_posix
- native_sim
- nrf5340dk/nrf5340/cpuapp
- nrf5340_audio_dk/nrf5340/cpuapp
extra_args: OVERLAY_CONFIG="overlay-le-audio.conf"
tags: bluetooth
harness: bluetooth
Expand Down

0 comments on commit 9ae8e79

Please sign in to comment.