nRF5340 Audio DK with the audio application nrf5340_audio - Testing Problem

PROBLEM:

I am trying to test the nRF5340 Audio DK with the audio application nrf5340_audio. This application is included with the version of the SDK under the applications folder. I have successfully built and programed two  boards following the directions on the Audio Example Page.

  • Now I'm trying to test the boards using the example in the Testing Section HERE.
  • The RGB2 and LED3 are not blinking as described. 
  • Can anyone help me to determine why?
  • Is the version of the SDK supported using the python script?
  • Did I build or program correctly?
  • I'm stuck. HAs anyone verified this SDK version with the Audio example ?
  • Do I need to use an earlier version of the SDK?

Development platform used:

  • Windows10
  • nRFConnect SDK version v2.4.0
  • Audio example from the directory C:\ncs\v2.4.0\nrf\applications\nrf5340_audio
  • Audio Example page nRF5340 Audio
  • Toolchain Manger v1.2.5

What I have done to this point:

  1. o To Build I use the command:
    1.  python buildprog.py -c both -b debug -d both -m external
    2. Results: the report showing a successful build
    3. Note: I'm using "-m external" because '-m internal" did not work because the debug firmware was too big, I mentioned this above.
  2. To Progra, I Use the command:
    1. python buildprog.py -c both -b debug -d both -p --recover_on_fail
    2. Results: the report showing that both the App and the net have been programmed to the boards.

    3. Still get the use recover arg error in the output, even though I ran the command with “--recover_on_fail” ?
      Received some other errors refer to “s4_program_sucess_with_recover.txt”
    4. NOTE: The App doc page is incorrect the program command has an incorrect argument “--recover-on-fail”! It should be defined with underscores not dashes.
      THIS NEEDS TO BE FIXED ON THE DOC PAGE TO STOP CONFUSION WHEN USING THE AUDIO EXAMPLE TO BUILD & PROGRAM the KIT

Here's a snapshot of the section on the Page where I'm referring to in my problem statement from above. Testing Section

  • hi 

    I ended up getting things to working but the LEDs illumination does not coincide with the doc page?

    The LEDS are working an the boards and change colors to indicate the Gateway GREEN and Headset BLUE as shown.

    the doc page states:

    1. After programming, RGB2 starts blinking green on every device to indicate the ongoing CPU activity on the network core. LED3 starts blinking green on every device to indicate the ongoing CPU activity on the application core.

    2. Wait for the LED1 on the gateway to start blinking blue. This happens shortly after programming the development kit and indicates that the gateway device is connected to at least one headset and ready to send data.

    There are different for me

    • the RGB2 never blinks and is not Illuminated on both devices.?
    • LED3 is blinking YELLOW not green?
    • the LED1 is blinking BLUE on the gateway OK
    • But LED1 is ALSO blinking BLUE? IS THIS OK?

    QUESTIONS

    WHY is the RGB2 not illuminated?

    why is the LED3 blinking YELLOW not green? what is this indicating?

    ----------------------------------------------------------------------------------------------------------------------------------

    the following steps are what I did to get to this point:

    The bottom line is that since I only have 2 kits, the -m internal and the -M args should not be used. 

    To get it working I did the following:

    I rebooted my PC and started with a fresh directory

    changed the devices in the file nrf5340_audio_dk_devices.json 

    Build and Program using no -m internal -M on the build

    BUILD: python buildprog.py -c both -b debug -d both
    PROGRAM: python buildprog.py -c both -b debug -d both -p --recover_on_fail

    here is the full output

    sucessfull build
    
    
    
    skrug@DESKTOP-KJBLMH9 MINGW64 /c/A/s6/tools/buildprog
    $ python buildprog.py -c both -b debug -d both
    +------------+----------+---------+--------------+---------------------+---------------------+
    |    snr     | snr conn |  device | only reboot  | core app programmed | core net programmed |
    +------------+----------+---------+--------------+---------------------+---------------------+
    | 1050171701 |   ←[32mTrue←[0m   | headset | Not selected |     Selected TBD    |     Selected TBD    |
    | 1050131916 |   ←[32mTrue←[0m   | gateway | Not selected |     Selected TBD    |     Selected TBD    |
    |     10     |  ←[33mFalse←[0m   | headset | Not selected |     Selected TBD    |     Selected TBD    |
    +------------+----------+---------+--------------+---------------------+---------------------+
    Invoking build step
    Net core uses precompiled hex
    Run: west build C:\A\s6 -b nrf5340_audio_dk_nrf5340_cpuapp -d C:\A\s6\build\dev_headset\build_debug -DCONFIG_AUDIO_DEV=1
    -- west build: generating a build system
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/A/s6
    -- CMake version: 3.20.5
    -- Using NCS Toolchain 2.4.0 for building. (C:/ncs/toolchains/31f4403e35/cmake)
    -- Found Python3: C:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v2.4.0/zephyr/.cache
    -- Zephyr version: 3.3.99 (C:/ncs/v2.4.0/zephyr)
    -- Found west (found suitable version "1.0.0", minimum required is "0.7.1")
    -- Board: nrf5340_audio_dk_nrf5340_cpuapp
    -- Found host-tools: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/31f4403e35/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found BOARD.dts: C:/ncs/v2.4.0/zephyr/boards/arm/nrf5340_audio_dk_nrf5340/nrf5340_audio_dk_nrf5340_cpuapp.dts
    -- Generated zephyr.dts: C:/A/s6/build/dev_headset/build_debug/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/A/s6/build/dev_headset/build_debug/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/A/s6/build/dev_headset/build_debug/zephyr/dts.cmake
    
    warning: Experimental symbol NRF5340_AUDIO is enabled.
    
    
    warning: Experimental symbol BT_LL_ACS_NRF53 is enabled.
    
    
    warning: Experimental symbol BT_ISO_PERIPHERAL is enabled.
    
    
    warning: Experimental symbol BT_AUDIO is enabled.
    
    
    warning: Experimental symbol BT_BAP_UNICAST_SERVER is enabled.
    
    
    warning: Experimental symbol BT_VCP_VOL_REND is enabled.
    
    
    warning: Experimental symbol BT_CSIP_SET_MEMBER is enabled.
    
    
    warning: Experimental symbol BT_MCC is enabled.
    
    
    warning: Experimental symbol BT_CAP_ACCEPTOR is enabled.
    
    Parsing C:/A/s6/Kconfig
    Loaded configuration 'C:/ncs/v2.4.0/zephyr/boards/arm/nrf5340_audio_dk_nrf5340/nrf5340_audio_dk_nrf5340_cpuapp_defconfig'
    Merged configuration 'C:/A/s6/prj.conf'
    Merged configuration 'C:/A/s6/build/dev_headset/build_debug/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to 'C:/A/s6/build/dev_headset/build_debug/zephyr/.config'
    Kconfig header saved to 'C:/A/s6/build/dev_headset/build_debug/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38")
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- libmetal version: 1.3.0 (C:/A/s6)
    -- Build type:
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- Looking for include file stdatomic.h
    -- Looking for include file stdatomic.h - found
    -- open-amp version: 1.3.0 (C:/ncs/v2.4.0/modules/lib/open-amp/open-amp)
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- C_FLAGS :  -Wall -Wextra
    -- Looking for include file fcntl.h
    -- Looking for include file fcntl.h - found
    CMake Warning at C:/ncs/v2.4.0/zephyr/CMakeLists.txt:838 (message):
      No SOURCES given to Zephyr library: lib__libc__common
    
      Excluding target from build.
    
    
    CMake Warning at C:/ncs/v2.4.0/zephyr/CMakeLists.txt:1864 (message):
      __ASSERT() statements are globally ENABLED
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/A/s6/build/dev_headset/build_debug
    ←[92m-- west build: building application
    [1/434] Generating include/generated/version.h
    -- Zephyr version: 3.3.99 (C:/ncs/v2.4.0/zephyr), build: v3.3.99-ncs1
    [424/434] Linking C executable zephyr\zephyr_pre0.elf
    
    [428/434] Linking C executable zephyr\zephyr_pre1.elf
    
    [434/434] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:      578928 B         1 MB     55.21%
                 RAM:      108536 B       448 KB     23.66%
            IDT_LIST:          0 GB         2 KB      0.00%
    Run: west build C:\A\s6 -b nrf5340_audio_dk_nrf5340_cpuapp -d C:\A\s6\build\dev_gateway\build_debug -DCONFIG_AUDIO_DEV=2
    -- west build: generating a build system
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/A/s6
    -- CMake version: 3.20.5
    -- Using NCS Toolchain 2.4.0 for building. (C:/ncs/toolchains/31f4403e35/cmake)
    -- Found Python3: C:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v2.4.0/zephyr/.cache
    -- Zephyr version: 3.3.99 (C:/ncs/v2.4.0/zephyr)
    -- Found west (found suitable version "1.0.0", minimum required is "0.7.1")
    -- Board: nrf5340_audio_dk_nrf5340_cpuapp
    -- Found host-tools: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/31f4403e35/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found BOARD.dts: C:/ncs/v2.4.0/zephyr/boards/arm/nrf5340_audio_dk_nrf5340/nrf5340_audio_dk_nrf5340_cpuapp.dts
    -- Generated zephyr.dts: C:/A/s6/build/dev_gateway/build_debug/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/A/s6/build/dev_gateway/build_debug/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/A/s6/build/dev_gateway/build_debug/zephyr/dts.cmake
    
    warning: Experimental symbol NRF5340_AUDIO is enabled.
    
    
    warning: Experimental symbol BT_LL_ACS_NRF53 is enabled.
    
    
    warning: Experimental symbol BT_ISO_CENTRAL is enabled.
    
    
    warning: Experimental symbol BT_AUDIO is enabled.
    
    
    warning: Experimental symbol BT_BAP_UNICAST_CLIENT is enabled.
    
    
    warning: Experimental symbol BT_VCP_VOL_CTLR is enabled.
    
    
    warning: Experimental symbol BT_MCS is enabled.
    
    
    warning: Experimental symbol BT_MPL is enabled.
    
    
    warning: Experimental symbol MCTL is enabled.
    
    Parsing C:/A/s6/Kconfig
    Loaded configuration 'C:/ncs/v2.4.0/zephyr/boards/arm/nrf5340_audio_dk_nrf5340/nrf5340_audio_dk_nrf5340_cpuapp_defconfig'
    Merged configuration 'C:/A/s6/prj.conf'
    Merged configuration 'C:/A/s6/build/dev_gateway/build_debug/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to 'C:/A/s6/build/dev_gateway/build_debug/zephyr/.config'
    Kconfig header saved to 'C:/A/s6/build/dev_gateway/build_debug/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38")
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- libmetal version: 1.3.0 (C:/A/s6)
    -- Build type:
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- Looking for include file stdatomic.h
    -- Looking for include file stdatomic.h - found
    -- open-amp version: 1.3.0 (C:/ncs/v2.4.0/modules/lib/open-amp/open-amp)
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- C_FLAGS :  -Wall -Wextra
    -- Looking for include file fcntl.h
    -- Looking for include file fcntl.h - found
    CMake Warning at C:/ncs/v2.4.0/zephyr/CMakeLists.txt:838 (message):
      No SOURCES given to Zephyr library: lib__libc__common
    
      Excluding target from build.
    
    
    CMake Warning at C:/ncs/v2.4.0/zephyr/CMakeLists.txt:1864 (message):
      __ASSERT() statements are globally ENABLED
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/A/s6/build/dev_gateway/build_debug
    ←[92m-- west build: building application
    [1/445] Generating include/generated/version.h
    -- Zephyr version: 3.3.99 (C:/ncs/v2.4.0/zephyr), build: v3.3.99-ncs1
    [435/445] Linking C executable zephyr\zephyr_pre0.elf
    
    [439/445] Linking C executable zephyr\zephyr_pre1.elf
    
    [445/445] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:      608000 B         1 MB     57.98%
                 RAM:      125068 B       448 KB     27.26%
            IDT_LIST:          0 GB         2 KB      0.00%
    build_prog.py finished. Report:
    +------------+----------+---------+--------------+---------------------+---------------------+
    |    snr     | snr conn |  device | only reboot  | core app programmed | core net programmed |
    +------------+----------+---------+--------------+---------------------+---------------------+
    | 1050171701 |   True   | headset | Not selected |     Selected TBD    |     Selected TBD    |
    | 1050131916 |   True   | gateway | Not selected |     Selected TBD    |     Selected TBD    |
    |     10     |  False   | headset | Not selected |     Selected TBD    |     Selected TBD    |
    +------------+----------+---------+--------------+---------------------+---------------------+
    
    skrug@DESKTOP-KJBLMH9 MINGW64 /c/A/s6/tools/buildprog
    $ python buildprog.py -c both -b debug -d both -p --recover_on_fail
    +------------+----------+---------+--------------+---------------------+---------------------+
    |    snr     | snr conn |  device | only reboot  | core app programmed | core net programmed |
    +------------+----------+---------+--------------+---------------------+---------------------+
    | 1050171701 |   ←[32mTrue←[0m   | headset | Not selected |     Selected TBD    |     Selected TBD    |
    | 1050131916 |   ←[32mTrue←[0m   | gateway | Not selected |     Selected TBD    |     Selected TBD    |
    |     10     |  ←[33mFalse←[0m   | headset | Not selected |     Selected TBD    |     Selected TBD    |
    +------------+----------+---------+--------------+---------------------+---------------------+
    Invoking build step
    Net core uses precompiled hex
    Run: west build C:\A\s6 -b nrf5340_audio_dk_nrf5340_cpuapp -d C:\A\s6\build\dev_headset\build_debug
    ninja: no work to do.
    Run: west build C:\A\s6 -b nrf5340_audio_dk_nrf5340_cpuapp -d C:\A\s6\build\dev_gateway\build_debug
    ninja: no work to do.
    Using NET hex: C:\lib\bin\bt_ll_acs_nrf53\bin\ble5-ctr-rpmsg_3349.hex for 1050171701 headset left
    Using NET hex: C:\lib\bin\bt_ll_acs_nrf53\bin\ble5-ctr-rpmsg_3349.hex for 1050131916 gateway
    Programming net core on: 1050171701 headset left
    Programming net core on: 1050131916 gateway
    ERROR: The operation attempted is unavailable due to readback protection in
    ERROR: your device. Please use --recover to unlock the device.
    NOTE: For additional output, try running again with logging enabled (--log).
    NOTE: Any generated log error messages will be displayed.
    Recovering device: 1050131916 gateway
    ERROR: The operation attempted is unavailable due to readback protection in
    ERROR: your device. Please use --recover to unlock the device.
    NOTE: For additional output, try running again with logging enabled (--log).
    NOTE: Any generated log error messages will be displayed.
    Recovering device: 1050171701 headset left
    [error] [ Client] - Encountered error -90: Command enable_coprocessor executed for 14 milliseconds with result -90
    [error] [ Worker] - Application core access protection is enabled, can't enable coprocessor.
    Recovering device. This operation might take 30s.
    [error] [ Worker] - Application core access protection is enabled, can't enable coprocessor.
    [error] [ Client] - Encountered error -90: Command enable_coprocessor executed for 14 milliseconds with result -90
    Recovering device. This operation might take 30s.
    Erasing user code and UICR flash areas.
    Erasing user code and UICR flash areas.
    Writing image to disable ap protect.
    Writing image to disable ap protect.
    Recovering device. This operation might take 30s.
    Recovering device. This operation might take 30s.
    Erasing user code and UICR flash areas.
    Erasing user code and UICR flash areas.
    Writing image to disable ap protect.
    Writing image to disable ap protect.
    Programming net core on: 1050171701 headset left
    Programming net core on: 1050131916 gateway
    Programming app core on: 1050171701 headset left
    Programming app core on: 1050131916 gateway
    Programming UICR
    Parsing parameters.
    Parsing parameters.
    Writing.
    Writing.
    Resetting 1050131916 gateway
    Applying system reset.
    Parsing parameters.
    Run.
    Writing.
    Resetting 1050171701 headset left
    Applying system reset.
    Run.
    build_prog.py finished. Report:
    +------------+----------+---------+--------------+---------------------+---------------------+
    |    snr     | snr conn |  device | only reboot  | core app programmed | core net programmed |
    +------------+----------+---------+--------------+---------------------+---------------------+
    | 1050171701 |   True   | headset | Not selected |         Done        |         Done        |
    | 1050131916 |   True   | gateway | Not selected |         Done        |         Done        |
    |     10     |  False   | headset | Not selected |     Not selected    |     Not selected    |
    +------------+----------+---------+--------------+---------------------+---------------------+
    
    skrug@DESKTOP-KJBLMH9 MINGW64 /c/A/s6/tools/buildprog

  • Hi,

    I have reproduced your reported problem with flash overflow. The issue happens due to debug version being too large. The solution for this is to use the release version.

    python buildprog.py -c both -b release -d both -m internal



    I agree with you that subjectively colors are not quite green, but more on the yellow side. However, the actual color defined by the manufacturer is green.
    Regarding RGB2 not blinking, we are aware of this issue, and it does not affect anything. 

    Best regards,
    Dejan

  • I have reproduced your reported problem with flash overflow. The issue happens due to debug version being too large. The solution for this is to use the release version.

    Thanks for taking the time to reproduce the problem. Just as I had thought debug was too large.

    At one point in trying to Build and Program, I did try the -release arg for both  commands, but I had errors so I abandoned it. I never was able to get it working.

    I agree with you that subjectively colors are not quite green, but more on the yellow side. However, the actual color defined by the manufacturer is green.
    Regarding RGB2 not blinking, we are aware of this issue, and it does not affect anything

    The trouble is that YELLOW in the USA indicates CAUTION. GREEN means GO and RED means STOP. '''LOL...

    So the blinking YELLOW light to me, means that something is wrong. GREEN would make more sense as an indicator. But no need to split hairs here, It's working now and I can move on to testing the application according to the audio app doc page.

    ONE more question?? for you...

    Although now, that I  have a successful build & program 

    I still get an error in the recover section of the PROGRAM run. I included the segment from the command screen below.

    As you can see it is trying to recover and tells me that I need to use the recover arg, which I did use.? So that's a bit confusing?  And then it tells me that there is an error recovering the left headset?  Just interested if you know what this is? ERROR means that something has gone wrong.. I think it should be [INFO]

    Programming net core on: 1050131916 gateway
    ERROR: The operation attempted is unavailable due to readback protection in
    ERROR: your device. Please use --recover to unlock the device.
    NOTE: For additional output, try running again with logging enabled (--log).
    NOTE: Any generated log error messages will be displayed.
    Recovering device: 1050131916 gateway
    ERROR: The operation attempted is unavailable due to readback protection in
    ERROR: your device. Please use --recover to unlock the device.
    NOTE: For additional output, try running again with logging enabled (--log).
    NOTE: Any generated log error messages will be displayed.
    Recovering device: 1050171701 headset left
    [error] [ Client] - Encountered error -90: Command enable_coprocessor executed for 14 milliseconds with result -90
    [error] [ Worker] - Application core access protection is enabled, can't enable coprocessor.
    Recovering device. This operation might take 30s.
    [error] [ Worker] - Application core access protection is enabled, can't enable coprocessor.
    [error] [ Client] - Encountered error -90: Command enable_coprocessor executed for 14 milliseconds with result -90
    Recovering device. This operation might take 30s.

    thanks for all your help

    Steve K

  • I have marked this as the solution:

    With the help of I was able to come to the following Build and Program arguments to the pyton script to get it to a point where the 2 audio kits were programmed properly with the Audio Example.

    Here are the steps I took:

    1. I rebooted my PC and started with a fresh directory
    2. changed the devices in the file nrf5340_audio_dk_devices.json 
    3. Build and Program using no -m internal -M on the build
      1. BUILD: python buildprog.py -c both -b debug -d both
      2. PROGRAM: python buildprog.py -c both -b debug -d both -p --recover_on_fail

    Here is the command screen showing the results of the 2 commands.

    sucessfull build
    
    
    
    skrug@DESKTOP-KJBLMH9 MINGW64 /c/A/s6/tools/buildprog
    $ python buildprog.py -c both -b debug -d both
    +------------+----------+---------+--------------+---------------------+---------------------+
    |    snr     | snr conn |  device | only reboot  | core app programmed | core net programmed |
    +------------+----------+---------+--------------+---------------------+---------------------+
    | 1050171701 |   ←[32mTrue←[0m   | headset | Not selected |     Selected TBD    |     Selected TBD    |
    | 1050131916 |   ←[32mTrue←[0m   | gateway | Not selected |     Selected TBD    |     Selected TBD    |
    |     10     |  ←[33mFalse←[0m   | headset | Not selected |     Selected TBD    |     Selected TBD    |
    +------------+----------+---------+--------------+---------------------+---------------------+
    Invoking build step
    Net core uses precompiled hex
    Run: west build C:\A\s6 -b nrf5340_audio_dk_nrf5340_cpuapp -d C:\A\s6\build\dev_headset\build_debug -DCONFIG_AUDIO_DEV=1
    -- west build: generating a build system
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/A/s6
    -- CMake version: 3.20.5
    -- Using NCS Toolchain 2.4.0 for building. (C:/ncs/toolchains/31f4403e35/cmake)
    -- Found Python3: C:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v2.4.0/zephyr/.cache
    -- Zephyr version: 3.3.99 (C:/ncs/v2.4.0/zephyr)
    -- Found west (found suitable version "1.0.0", minimum required is "0.7.1")
    -- Board: nrf5340_audio_dk_nrf5340_cpuapp
    -- Found host-tools: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/31f4403e35/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found BOARD.dts: C:/ncs/v2.4.0/zephyr/boards/arm/nrf5340_audio_dk_nrf5340/nrf5340_audio_dk_nrf5340_cpuapp.dts
    -- Generated zephyr.dts: C:/A/s6/build/dev_headset/build_debug/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/A/s6/build/dev_headset/build_debug/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/A/s6/build/dev_headset/build_debug/zephyr/dts.cmake
    
    warning: Experimental symbol NRF5340_AUDIO is enabled.
    
    
    warning: Experimental symbol BT_LL_ACS_NRF53 is enabled.
    
    
    warning: Experimental symbol BT_ISO_PERIPHERAL is enabled.
    
    
    warning: Experimental symbol BT_AUDIO is enabled.
    
    
    warning: Experimental symbol BT_BAP_UNICAST_SERVER is enabled.
    
    
    warning: Experimental symbol BT_VCP_VOL_REND is enabled.
    
    
    warning: Experimental symbol BT_CSIP_SET_MEMBER is enabled.
    
    
    warning: Experimental symbol BT_MCC is enabled.
    
    
    warning: Experimental symbol BT_CAP_ACCEPTOR is enabled.
    
    Parsing C:/A/s6/Kconfig
    Loaded configuration 'C:/ncs/v2.4.0/zephyr/boards/arm/nrf5340_audio_dk_nrf5340/nrf5340_audio_dk_nrf5340_cpuapp_defconfig'
    Merged configuration 'C:/A/s6/prj.conf'
    Merged configuration 'C:/A/s6/build/dev_headset/build_debug/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to 'C:/A/s6/build/dev_headset/build_debug/zephyr/.config'
    Kconfig header saved to 'C:/A/s6/build/dev_headset/build_debug/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38")
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- libmetal version: 1.3.0 (C:/A/s6)
    -- Build type:
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- Looking for include file stdatomic.h
    -- Looking for include file stdatomic.h - found
    -- open-amp version: 1.3.0 (C:/ncs/v2.4.0/modules/lib/open-amp/open-amp)
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- C_FLAGS :  -Wall -Wextra
    -- Looking for include file fcntl.h
    -- Looking for include file fcntl.h - found
    CMake Warning at C:/ncs/v2.4.0/zephyr/CMakeLists.txt:838 (message):
      No SOURCES given to Zephyr library: lib__libc__common
    
      Excluding target from build.
    
    
    CMake Warning at C:/ncs/v2.4.0/zephyr/CMakeLists.txt:1864 (message):
      __ASSERT() statements are globally ENABLED
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/A/s6/build/dev_headset/build_debug
    ←[92m-- west build: building application
    [1/434] Generating include/generated/version.h
    -- Zephyr version: 3.3.99 (C:/ncs/v2.4.0/zephyr), build: v3.3.99-ncs1
    [424/434] Linking C executable zephyr\zephyr_pre0.elf
    
    [428/434] Linking C executable zephyr\zephyr_pre1.elf
    
    [434/434] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:      578928 B         1 MB     55.21%
                 RAM:      108536 B       448 KB     23.66%
            IDT_LIST:          0 GB         2 KB      0.00%
    Run: west build C:\A\s6 -b nrf5340_audio_dk_nrf5340_cpuapp -d C:\A\s6\build\dev_gateway\build_debug -DCONFIG_AUDIO_DEV=2
    -- west build: generating a build system
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/A/s6
    -- CMake version: 3.20.5
    -- Using NCS Toolchain 2.4.0 for building. (C:/ncs/toolchains/31f4403e35/cmake)
    -- Found Python3: C:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v2.4.0/zephyr/.cache
    -- Zephyr version: 3.3.99 (C:/ncs/v2.4.0/zephyr)
    -- Found west (found suitable version "1.0.0", minimum required is "0.7.1")
    -- Board: nrf5340_audio_dk_nrf5340_cpuapp
    -- Found host-tools: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/31f4403e35/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found BOARD.dts: C:/ncs/v2.4.0/zephyr/boards/arm/nrf5340_audio_dk_nrf5340/nrf5340_audio_dk_nrf5340_cpuapp.dts
    -- Generated zephyr.dts: C:/A/s6/build/dev_gateway/build_debug/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/A/s6/build/dev_gateway/build_debug/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/A/s6/build/dev_gateway/build_debug/zephyr/dts.cmake
    
    warning: Experimental symbol NRF5340_AUDIO is enabled.
    
    
    warning: Experimental symbol BT_LL_ACS_NRF53 is enabled.
    
    
    warning: Experimental symbol BT_ISO_CENTRAL is enabled.
    
    
    warning: Experimental symbol BT_AUDIO is enabled.
    
    
    warning: Experimental symbol BT_BAP_UNICAST_CLIENT is enabled.
    
    
    warning: Experimental symbol BT_VCP_VOL_CTLR is enabled.
    
    
    warning: Experimental symbol BT_MCS is enabled.
    
    
    warning: Experimental symbol BT_MPL is enabled.
    
    
    warning: Experimental symbol MCTL is enabled.
    
    Parsing C:/A/s6/Kconfig
    Loaded configuration 'C:/ncs/v2.4.0/zephyr/boards/arm/nrf5340_audio_dk_nrf5340/nrf5340_audio_dk_nrf5340_cpuapp_defconfig'
    Merged configuration 'C:/A/s6/prj.conf'
    Merged configuration 'C:/A/s6/build/dev_gateway/build_debug/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to 'C:/A/s6/build/dev_gateway/build_debug/zephyr/.config'
    Kconfig header saved to 'C:/A/s6/build/dev_gateway/build_debug/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38")
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- libmetal version: 1.3.0 (C:/A/s6)
    -- Build type:
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- Looking for include file stdatomic.h
    -- Looking for include file stdatomic.h - found
    -- open-amp version: 1.3.0 (C:/ncs/v2.4.0/modules/lib/open-amp/open-amp)
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- C_FLAGS :  -Wall -Wextra
    -- Looking for include file fcntl.h
    -- Looking for include file fcntl.h - found
    CMake Warning at C:/ncs/v2.4.0/zephyr/CMakeLists.txt:838 (message):
      No SOURCES given to Zephyr library: lib__libc__common
    
      Excluding target from build.
    
    
    CMake Warning at C:/ncs/v2.4.0/zephyr/CMakeLists.txt:1864 (message):
      __ASSERT() statements are globally ENABLED
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/A/s6/build/dev_gateway/build_debug
    ←[92m-- west build: building application
    [1/445] Generating include/generated/version.h
    -- Zephyr version: 3.3.99 (C:/ncs/v2.4.0/zephyr), build: v3.3.99-ncs1
    [435/445] Linking C executable zephyr\zephyr_pre0.elf
    
    [439/445] Linking C executable zephyr\zephyr_pre1.elf
    
    [445/445] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:      608000 B         1 MB     57.98%
                 RAM:      125068 B       448 KB     27.26%
            IDT_LIST:          0 GB         2 KB      0.00%
    build_prog.py finished. Report:
    +------------+----------+---------+--------------+---------------------+---------------------+
    |    snr     | snr conn |  device | only reboot  | core app programmed | core net programmed |
    +------------+----------+---------+--------------+---------------------+---------------------+
    | 1050171701 |   True   | headset | Not selected |     Selected TBD    |     Selected TBD    |
    | 1050131916 |   True   | gateway | Not selected |     Selected TBD    |     Selected TBD    |
    |     10     |  False   | headset | Not selected |     Selected TBD    |     Selected TBD    |
    +------------+----------+---------+--------------+---------------------+---------------------+
    
    skrug@DESKTOP-KJBLMH9 MINGW64 /c/A/s6/tools/buildprog
    $ python buildprog.py -c both -b debug -d both -p --recover_on_fail
    +------------+----------+---------+--------------+---------------------+---------------------+
    |    snr     | snr conn |  device | only reboot  | core app programmed | core net programmed |
    +------------+----------+---------+--------------+---------------------+---------------------+
    | 1050171701 |   ←[32mTrue←[0m   | headset | Not selected |     Selected TBD    |     Selected TBD    |
    | 1050131916 |   ←[32mTrue←[0m   | gateway | Not selected |     Selected TBD    |     Selected TBD    |
    |     10     |  ←[33mFalse←[0m   | headset | Not selected |     Selected TBD    |     Selected TBD    |
    +------------+----------+---------+--------------+---------------------+---------------------+
    Invoking build step
    Net core uses precompiled hex
    Run: west build C:\A\s6 -b nrf5340_audio_dk_nrf5340_cpuapp -d C:\A\s6\build\dev_headset\build_debug
    ninja: no work to do.
    Run: west build C:\A\s6 -b nrf5340_audio_dk_nrf5340_cpuapp -d C:\A\s6\build\dev_gateway\build_debug
    ninja: no work to do.
    Using NET hex: C:\lib\bin\bt_ll_acs_nrf53\bin\ble5-ctr-rpmsg_3349.hex for 1050171701 headset left
    Using NET hex: C:\lib\bin\bt_ll_acs_nrf53\bin\ble5-ctr-rpmsg_3349.hex for 1050131916 gateway
    Programming net core on: 1050171701 headset left
    Programming net core on: 1050131916 gateway
    ERROR: The operation attempted is unavailable due to readback protection in
    ERROR: your device. Please use --recover to unlock the device.
    NOTE: For additional output, try running again with logging enabled (--log).
    NOTE: Any generated log error messages will be displayed.
    Recovering device: 1050131916 gateway
    ERROR: The operation attempted is unavailable due to readback protection in
    ERROR: your device. Please use --recover to unlock the device.
    NOTE: For additional output, try running again with logging enabled (--log).
    NOTE: Any generated log error messages will be displayed.
    Recovering device: 1050171701 headset left
    [error] [ Client] - Encountered error -90: Command enable_coprocessor executed for 14 milliseconds with result -90
    [error] [ Worker] - Application core access protection is enabled, can't enable coprocessor.
    Recovering device. This operation might take 30s.
    [error] [ Worker] - Application core access protection is enabled, can't enable coprocessor.
    [error] [ Client] - Encountered error -90: Command enable_coprocessor executed for 14 milliseconds with result -90
    Recovering device. This operation might take 30s.
    Erasing user code and UICR flash areas.
    Erasing user code and UICR flash areas.
    Writing image to disable ap protect.
    Writing image to disable ap protect.
    Recovering device. This operation might take 30s.
    Recovering device. This operation might take 30s.
    Erasing user code and UICR flash areas.
    Erasing user code and UICR flash areas.
    Writing image to disable ap protect.
    Writing image to disable ap protect.
    Programming net core on: 1050171701 headset left
    Programming net core on: 1050131916 gateway
    Programming app core on: 1050171701 headset left
    Programming app core on: 1050131916 gateway
    Programming UICR
    Parsing parameters.
    Parsing parameters.
    Writing.
    Writing.
    Resetting 1050131916 gateway
    Applying system reset.
    Parsing parameters.
    Run.
    Writing.
    Resetting 1050171701 headset left
    Applying system reset.
    Run.
    build_prog.py finished. Report:
    +------------+----------+---------+--------------+---------------------+---------------------+
    |    snr     | snr conn |  device | only reboot  | core app programmed | core net programmed |
    +------------+----------+---------+--------------+---------------------+---------------------+
    | 1050171701 |   True   | headset | Not selected |         Done        |         Done        |
    | 1050131916 |   True   | gateway | Not selected |         Done        |         Done        |
    |     10     |  False   | headset | Not selected |     Not selected    |     Not selected    |
    +------------+----------+---------+--------------+---------------------+---------------------+
    
    skrug@DESKTOP-KJBLMH9 MINGW64 /c/A/s6/tools/buildprog

    I am evaluating two nRF5340 audio DK's. I am using one as a Gateway and the other as a Left Headset. I was only supplied with 2 kits to evaluate. The Example Audio Application can support a Right Headset If you have an extra 3rd Kit.
    Now on to testing the audio example.
    If anyone is interested you can follow my review blog on Element14 here Roadtest: Nordic Bluetooth LE Audio Development Kit nRF5340 DK. In this review myself and two other members have reviewed the Kit. I'm using this doc to try to get the 2 boards working with the Audio example. 
    Thank You .. 
    Steve K
Related