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