nRF5340 Audio DK: Audio Loosing sync both with I2S and U

Hi All,

       I have been using nRF5340 DK audio with toolchain Version 2.5.2 and using the Audio Demo (nrf5340_audio_dk_nrf5340_cpuapp_common) for gateway and headset (Broadcast source and Sink). I have not changed anything and used script to build and flash the binaries.

  • The source and sink is able to manage sync only for ~10s in I2S case (Audio in at Source using I2S). 
  • The source and sink is able to manage sync for ~ 1s in USB case.

This means audio plays for 10s/1s and then the sink is unable to get the audio afterwards.

As it is experimental SDK any suggestion to improve it or am I missing any configuration.

Regards

Sainath

  • Hello again Sainath, hope you've had a great week-end.

    Nambiar said:
    I can enable the logs if required , which of the log level should I enable?

    Could you start off by giving us the log from the application the way it is configured by default?

    Could you also provide me the prj.conf settings that the project is using?

     Are the results (that it disconnects every 10 and 1 second) consistent? Does it still happen the same way?

    Regards,

    Elfving

  • #
    # Copyright (c) 2022 Nordic Semiconductor ASA
    #
    # SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
    #
    
    # nRF5340 Audio
    CONFIG_NRF5340_AUDIO=y
    CONFIG_TRANSPORT_BIS=y
    CONFIG_AUDIO_SOURCE_I2S=y
    # 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_BT_LOG_LEVEL_INF=y
    # CONFIG_BT_LOG_LEVEL_DBG=y
    CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
    CONFIG_LOG_TAG_MAX_LEN=2
    CONFIG_LOG_TAG_DEFAULT="--"
    CONFIG_LOG_BACKEND_UART=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_COLORS=y
    CONFIG_SHELL_STACK_SIZE=1024
    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
    

    prj.conf used , there are no other changes other than building Source and Sink using the command line commands

    python buildprog.py -c app -b debug -d both --pristine -c both  -p

  • The disconnect is consistent the sync is maintained only for ~ 10s

Related