Building nrf5340_audio_dk projects

Hi,

I can build and program the broadcast_source sample application using the Python script:

% python3 tools/buildprog/buildprog.py -c both --pristine -b debug -d both -p

This runs fine and broadcasts as expected. However, I cannot get the application to run when using the command line:

west build -b nrf5340_audio_dk/nrf5340/cpuapp -d build_broadcast_source --pristine
west flash --build-dir build_broadcast_source

This builds and flashes OK but does not broadcast. The main LED is blue (not green) and LED 1 does not flash blue.

Can you see what I might be doing wrong?

  • (updated)

    Hi, 

    It requires -DEXTRA_CONF_FILE=".\broadcast_source\overlay-broadcast_source.conf" for the broadcast gateway.

    Select the BIS mode by setting the CONFIG_TRANSPORT_BIS Kconfig option to y in the applications/nrf5340_audio/prj.conf file for the debug version and in the applications/nrf5340_audio/prj_release.conf file for the release version. Also, check Building and programming using command line and nRF5340 Audio: Broadcast source.

    Regards,
    Amanda H.

  • Hi Amanda,

    That file does not exist. What should it contain?

    (I'm using SDK v2.9.1)

    Regards,

    ac

  • Hi, 

    Sorry not check your NCS version earily. That's not for v2.9.1.

    For v2.9.1: 

    Select the BIS mode by setting the CONFIG_TRANSPORT_BIS Kconfig option to y in the applications/nrf5340_audio/prj.conf file for the debug version and in the applications/nrf5340_audio/prj_release.conf file for the release version. Also, check Building and programming using command line and nRF5340 Audio: Broadcast source.

  • Hi Amanda,

    >> Select the BIS mode by setting the CONFIG_TRANSPORT_BIS Kconfig option to y

    That is what I am doing. Here is prj.conf:

    #
    # Copyright (c) 2022 Nordic Semiconductor ASA
    #
    # SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
    #
    
    # nRF5340 Audio
    CONFIG_NRF5340_AUDIO=y
    CONFIG_SAMPLE_RATE_CONVERTER=y
    CONFIG_SAMPLE_RATE_CONVERTER_FILTER_SIMPLE=y
    CONFIG_TRANSPORT_BIS=y
    CONFIG_AUDIO_SOURCE_I2S=y
    CONFIG_BT_BAP_BROADCAST_48_2_1=y
    CONFIG_BT_AUDIO_BROADCAST_NAME="Gate B23"
    CONFIG_BT_AUDIO_BROADCAST_ENCRYPTED=y
    CONFIG_BT_AUDIO_BROADCAST_ENCRYPTION_KEY="NRF5340_BIS_DEMO"
    
    # General
    CONFIG_DEBUG=y
    CONFIG_DEBUG_INFO=y
    CONFIG_ASSERT=y
    CONFIG_STACK_USAGE=y
    CONFIG_THREAD_RUNTIME_STATS=y
    CONFIG_STACK_SENTINEL=y
    CONFIG_INIT_STACKS=y
    
    # Uart driver
    CONFIG_SERIAL=y
    
    # Logging
    CONFIG_LOG=y
    CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
    CONFIG_LOG_TAG_MAX_LEN=2
    CONFIG_LOG_TAG_DEFAULT="--"
    CONFIG_LOG_BACKEND_UART=y
    CONFIG_LOG_BUFFER_SIZE=4096
    
    # Use this for debugging thread usage
    #CONFIG_LOG_THREAD_ID_PREFIX=y
    
    # Console related defines
    CONFIG_CONSOLE=y
    CONFIG_RTT_CONSOLE=y
    CONFIG_UART_CONSOLE=y
    
    # Shell related defines
    CONFIG_SHELL=y
    CONFIG_KERNEL_SHELL=y
    CONFIG_USE_SEGGER_RTT=y
    ## Disable logs on RTT
    CONFIG_SHELL_RTT_INIT_LOG_LEVEL_NONE=y
    CONFIG_SHELL_BACKEND_RTT=y
    CONFIG_SHELL_BACKEND_SERIAL=n
    CONFIG_SHELL_VT100_COMMANDS=y
    CONFIG_SHELL_VT100_COLORS=y
    CONFIG_SHELL_STACK_SIZE=4096
    CONFIG_SHELL_CMD_BUFF_SIZE=128
    ## Reduce shell memory usage
    CONFIG_SHELL_WILDCARD=n
    CONFIG_SHELL_HELP_ON_WRONG_ARGUMENT_COUNT=n
    CONFIG_SHELL_STATS=n
    CONFIG_SHELL_CMDS=n
    CONFIG_SHELL_HISTORY=y
    
    # Turn off default shell commands
    CONFIG_I2C_SHELL=n
    CONFIG_HWINFO_SHELL=n
    CONFIG_CLOCK_CONTROL_NRF_SHELL=n
    CONFIG_FLASH_SHELL=n
    CONFIG_DEVICE_SHELL=n
    
    # Suppress LOG_ERR messages from sd_check_card_type. Because SPI_SDHC has no card presence method,
    # assume card is in slot. Thus error message is always shown if card is not inserted
    CONFIG_SD_LOG_LEVEL_OFF=y
    
    # Suppress LOG_INF messages from hci_core
    CONFIG_BT_HCI_CORE_LOG_LEVEL_WRN=y
    

    Building with the Python script works and that must also use prj.conf so it must be OK.

    Regards,

    ac

Related