nRF5340 Audio DKs losing sync in external I2S loopback

I am trying to send / receive bi-directional audio between two nRF5340 Audio DKs with an external I2S bus on the gateway DK.  I am modifying the nrf5340_audio example from SDK V2.6.0.

I have added CONFIG_STREAM_BIDIRECTIONAL=y and CONFIG_AUDIO_SOURCE_I2S=y to the gateway and headset apps.  I have also set gpio pin 21 in unicast_client main.c to enable external I2S in the gateway and tied I2S DIN and DOUT together on the gateway external I2S to loop back the audio.  I am sending audio from the headset DK to the gateway DK and looping it back to the headset DK using the external I2S bus on the gateway DK

Audio loops back fine until I try to disable the gateway DKs on-board hardware codec.  When I disable the hardware codec I get loud ticks in the loop-back audio at the headset DK.  I think the audio stream between the two DKs is losing sync.  Since I am not using the gateway on-board hardware codec, I am not sure why this should affect the synchronization of the audio streams.  How can I correct this?

Parents Reply Children
  • Yes, I have made a clean copy of the nrf5340_audio example from SDK 2.7.0 in a new directory.

    After modifying buildprog.py I get a new error message from sysbuild:

    CMake Error at C:/nordicsemi/v2.7.0/zephyr/cmake/modules/boards.cmake:320 (message):
      Board qualifiers `/nrf5340/cpuapp--sysbuild` for board `nrf5340_audio_dk`
      not found.  Please specify a valid board target.

      Valid board targets for nrf5340_audio_dk are:

      nrf5340_audio_dk/nrf5340/cpuapp

      nrf5340_audio_dk/nrf5340/cpuapp/ns

      nrf5340_audio_dk/nrf5340/cpunet

    How do I add board targets for sysbuild?

Related