nrf5340 audio DK cannot configure BIS mode with two gateways

I can successfully run BIS mode with 3 nrf5340 audio DK (one DK connected with USB with the PC as the source, and two DKs as receivers).

But the buildprog.py script gives an error when i add 

CONFIG_BT_USE_AUDIO_BROADCAST_NAME_ALT=y
in the prj.conf file according to the instructions here
The error i get is: 
myprojectfolder/nrf5340_audio2/prj.conf:66: warning: attempt to assign the value 'y' to the undefined symbol BT_USE_AUDIO_BROADCAST_NAME_ALT
I use windows 10, nrf connect SDK v2.2.0 with Vs Code extension.
Parents
  • Hi,

    Are you using the debug version or the release version?

    If debug version, then changes should be made in prj.conf and for release version, it should be to prj_release.conf

    If your issue persists, could you attach your prj.conf or prj_release.conf here?

    Best Regards,

    Priyanka

  • I edit the prj.conf and i compile the debug version:

    python buildprog.py -c both -b debug -d both -p -f

    prj.conf is the default. I just add:

    CONFIG_TRANSPORT_BIS=y
    CONFIG_BT_USE_AUDIO_BROADCAST_NAME_ALT=y

    If i add only 

    CONFIG_TRANSPORT_BIS=y 
    i successfully run the BIS example. So i guess my prj.conf file is working correctly.
  • I downloaded the SDK from here. I added to the prj.conf this:

    CONFIG_TRANSPORT_BIS=y
    CONFIG_BT_AUDIO_USE_BROADCAST_NAME_ALT=y
    CONFIG_BT_AUDIO_BROADCAST_NAME_ALT="secondgateway"

    I checked src/bluetooth/Kconfig and 

    BT_AUDIO_BROADCAST_NAME_ALT and 
    BT_AUDIO_USE_BROADCAST_NAME_ALT
    are both included.

    And i try this commad:

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

    But i get this error:

    warning: Experimental symbol NRF5340_AUDIO is enabled.
    
    
    warning: Experimental symbol BT_ISO_SYNC_RECEIVER is enabled.
    
    
    warning: Experimental symbol BT_AUDIO is enabled.
    
    
    warning: Experimental symbol BT_AUDIO_BROADCAST_SINK is enabled.
    
    
    warning: BT_VCP_VOL_REND (defined at C:/Users/username/myprojects/nrf5340_audio_apo_github\src/bluetooth\Kconfig.defaults:105) defined without a type
    
    warning: BT_VCP_VOL_CTLR (defined at C:/Users/username/myprojects/nrf5340_audio_apo_github\src/bluetooth\Kconfig.defaults:169) defined without a type
    Parsing C:/Users/username/myprojects/nrf5340_audio_apo_github/Kconfig
    Loaded configuration 'C:/ncs/v2.2.0/nrf/boards/arm/nrf5340_audio_dk_nrf5340/nrf5340_audio_dk_nrf5340_cpuapp_defconfig'
    Merged configuration 'C:/Users/username/myprojects/nrf5340_audio_apo_github/prj.conf'
    Merged configuration 'C:/Users/username/myprojects/nrf5340_audio_apo_github/build/dev_headset/build_debug/zephyr/misc/generated/extra_kconfig_options.conf'
    
    error: Aborting due to Kconfig warnings
    
    CMake Error at C:/ncs/v2.2.0/zephyr/cmake/modules/kconfig.cmake:328 (message):
      command failed with return code: 1
    Call Stack (most recent call first):
      C:/ncs/v2.2.0/nrf/cmake/modules/kconfig.cmake:29 (include)
      C:/ncs/v2.2.0/zephyr/cmake/modules/zephyr_default.cmake:108 (include)
      C:/ncs/v2.2.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      C:/ncs/v2.2.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)     
      CMakeLists.txt:46 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\v2.2.0\opt\bin\cmake.EXE' '-DWEST_PYTHON=C:\ncs\toolchains\v2.2.0\opt\bin\python.exe' '-BC:\Users\username\myprojects\nrf5340_audio_apo_github\build\dev_headset\build_debug' -GNinja -DBOARD=nrf5340_audio_dk_nrf5340_cpuapp -DCONFIG_AUDIO_DEV=1 '-SC:\username\myprojects\nrf5340_audio_apo_github'
    Traceback (most recent call last):
      File "buildprog.py", line 406, in <module>
        __main()
      File "buildprog.py", line 389, in __main
        __build_module(build_cfg, options)
      File "buildprog.py", line 149, in __build_module
        raise Exception("cmake error: " + str(ret_val))
    Exception: cmake error: 1
    

    Any idea?

  • Hi,

    Have you referred the programming with script?

    Could you try just the following if you face error due to readback protection?: 

    python buildprog.py -c both -b debug -d both -p -f 

    Do you still get the same errors?

    -Priyanka

  • Yes, i used this command:

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

    but without pristine it's the same..

    This is from scratch try (i only changed the 

    nrf5340_audio_dk_snr in nrf5340_audio_dk_devices.json) and run the command..Can you replicate it yourself?
  • Hi,

    What changes did you do in nrf5340_audio_dk_devices.json ? Could you attach the json file?

    Also, do you have problems when you try to build / program using command line?

    -Priyanka

  • I downloaded the latest SDK that was available in Toolchain Manager (2.2.99) and the project successfully compiled. Now, i have the following problem:

    I use the default prj.conf (from the nrf5340 audio example application) and add only CONFIG_TRANSPORT_BIS=y

    and flash it to the gateway as usual. 

    Now i try to add the second gateway and add to prj.conf file:

    CONFIG_BT_AUDIO_USE_BROADCAST_NAME_ALT=y
    CONFIG_BT_AUDIO_BROADCAST_NAME_ALT="sndGw"

    and flash it to the second DK.

    But, whatever i've tried, i cannot make the headset switch between the two with button 5. I can listen only to one gateway, and gateway alt name for the second board never appears and the sound from the second gateway cannot be listened. The led of the 2 gateways are correct and the blue LED1 is blinking (=they are broadcasting). The led1 on the headset is blinking while connected to the first gateway, but solid blue when i press the button 5. This is what headset gives:

    And these are the 2 gateways:

Reply
  • I downloaded the latest SDK that was available in Toolchain Manager (2.2.99) and the project successfully compiled. Now, i have the following problem:

    I use the default prj.conf (from the nrf5340 audio example application) and add only CONFIG_TRANSPORT_BIS=y

    and flash it to the gateway as usual. 

    Now i try to add the second gateway and add to prj.conf file:

    CONFIG_BT_AUDIO_USE_BROADCAST_NAME_ALT=y
    CONFIG_BT_AUDIO_BROADCAST_NAME_ALT="sndGw"

    and flash it to the second DK.

    But, whatever i've tried, i cannot make the headset switch between the two with button 5. I can listen only to one gateway, and gateway alt name for the second board never appears and the sound from the second gateway cannot be listened. The led of the 2 gateways are correct and the blue LED1 is blinking (=they are broadcasting). The led1 on the headset is blinking while connected to the first gateway, but solid blue when i press the button 5. This is what headset gives:

    And these are the 2 gateways:

Children
Related