Hey all
Trying to understand how to properly build a basic bluetooth example without errors using zephyr between the 2 cores
Error: manually cleaning and flashing
Microsoft Windows [Version 10.0.19041.1237] (c) Microsoft Corporation. All rights reserved. C:\Users\andre>cd C:\Users\andre\ncs\v1.6.1\nrf\samples\bluetooth\peripheral_lbs C:\Users\andre\ncs\v1.6.1\nrf\samples\bluetooth\peripheral_lbs>west build -b nrf5340dk_nrf5340_cpunet && west flash --recover WARNING: ZEPHYR_BASE=C:\Users\andre\ncs\zephyr; in the calling environment will be used, but the zephyr.base config option in C:\Users\andre\ncs\v1.6.1 is "zephyr" which implies a different ZEPHYR_BASE=C:\Users\andre\ncs\v1.6.1\zephyr To disable this warning in the future, execute 'west config --global zephyr.base-prefer env' -- west build: generating a build system Including boilerplate (Zephyr base): C:/Users/andre/ncs/zephyr/cmake/app/boilerplate.cmake CMake Deprecation Warning at C:/Users/andre/ncs/zephyr/cmake/app/boilerplate.cmake:37 (cmake_policy): The OLD behavior for policy CMP0079 will be removed from a future version of CMake. The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD. Call Stack (most recent call first): C:/Users/andre/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include) C:/Users/andre/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate) CMakeLists.txt:8 (find_package) -- Application: C:/Users/andre/ncs/v1.6.1/nrf/samples/bluetooth/peripheral_lbs -- Using NCS Toolchain 1.6.0 for building. (C:/Users/andre/ncs/v1.6.0/toolchain/cmake) -- Zephyr version: 2.6.0-rc1 (C:/Users/andre/ncs/zephyr), build: v2.6.0-rc1-ncs1 -- Found Python3: C:/Users/andre/ncs/v1.6.0/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter -- Found west (found suitable version "0.11.0", minimum required is "0.7.1") -- Board: nrf5340dk_nrf5340_cpunet -- Cache files will be written to: C:/Users/andre/ncs/zephyr/.cache -- Found dtc: C:/Users/andre/ncs/v1.6.0/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") -- Found toolchain: gnuarmemb (C:/Users/andre/ncs/v1.6.0/toolchain/opt) -- Found BOARD.dts: C:/Users/andre/ncs/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpunet.dts -- Generated zephyr.dts: C:/Users/andre/ncs/v1.6.1/nrf/samples/bluetooth/peripheral_lbs/build/zephyr/zephyr.dts -- Generated devicetree_unfixed.h: C:/Users/andre/ncs/v1.6.1/nrf/samples/bluetooth/peripheral_lbs/build/zephyr/include/generated/devicetree_unfixed.h -- Generated device_extern.h: C:/Users/andre/ncs/v1.6.1/nrf/samples/bluetooth/peripheral_lbs/build/zephyr/include/generated/device_extern.h C:/Users/andre/ncs/v1.6.1/nrf/samples/bluetooth/peripheral_lbs/prj.conf:6: warning: attempt to assign the value 'y' to the undefined symbol NCS_SAMPLES_DEFAULTS C:/Users/andre/ncs/v1.6.1/nrf/samples/bluetooth/peripheral_lbs/prj.conf:13: warning: attempt to assign the value 'y' to the undefined symbol BT_LBS C:/Users/andre/ncs/v1.6.1/nrf/samples/bluetooth/peripheral_lbs/prj.conf:14: warning: attempt to assign the value 'y' to the undefined symbol BT_LBS_POLL_BUTTON C:/Users/andre/ncs/v1.6.1/nrf/samples/bluetooth/peripheral_lbs/prj.conf:15: warning: attempt to assign the value 'y' to the undefined symbol DK_LIBRARY warning: HAS_NORDIC_DRIVERS (defined at modules\hal_nordic\Kconfig:7) has direct dependencies 0 with value n, but is currently being y-selected by the following symbols: - SOC_SERIES_NRF53X (defined at soc/arm/nordic_nrf\nrf53\Kconfig.series:6), with value y, direct dependencies <choice> (value: y), and select condition <choice> (value: y) warning: HAS_NRFX (defined at modules\hal_Parsing C:/Users/andre/ncs/v1.6.1/nrf/samples/bluetooth/peripheral_lbs/Kconfig Loaded configuration 'C:/Users/andre/ncs/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpunet_defconfig' Merged configuration 'C:/Users/andre/ncs/v1.6.1/nrf/samples/bluetooth/peripheral_lbs/prj.conf' nordic\nrfx/Kconfig:4) has direct dependencies 0 with value n, but is currently being y-selected by the following symbols: - SOC_SERIES_NRF53X (defined at soc/arm/nordic_nrf\nrf53\Kconfig.series:6), with value y, direct dependencies <choice> (value: y), and select condition <choice> (value: y) warning: NRFX_CLOCK (defined at modules\hal_nordic\nrfx/Kconfig:14) has direct dependencies HAS_HW_NRF_CLOCK && HAS_NRFX && 0 with value n, but is currently being y-selected by the following symbols: - CLOCK_CONTROL_NRF (defined at drivers/clock_control/Kconfig.nrf:13), with value y, direct dependencies SOC_COMPATIBLE_NRF && CLOCK_CONTROL (value: y), and select condition !CLOCK_CONTROL_NRF_FORCE_ALT && SOC_COMPATIBLE_NRF && CLOCK_CONTROL (value: y) warning: NRFX_CLOCK_LFXO_TWO_STAGE_ENABLED (defined at modules\hal_nordic\nrfx/Kconfig:18) has direct dependencies NRFX_CLOCK && HAS_NRFX && 0 with value n, but is currently being y-selected by the following symbols: - CLOCK_CONTROL_NRF_K32SRC_XTAL (defined at drivers/clock_control/Kconfig.nrf:36), with value y, direct dependencies <choice CLOCK_CONTROL_NRF_SOURCE> (value: y), and select condition !SOC_SERIES_BSIM_NRFXX && !CLOCK_CONTROL_NRF_FORCE_ALT && <choice CLOCK_CONTROL_NRF_SOURCE> (value: y) warning: NRFX_DPPI (defined at modules\hal_nordic\nrfx/Kconfig:26, drivers/serial/Kconfig.nrfx:375) has direct dependencies (HAS_HW_NRF_DPPIC && HAS_NRFX && 0) || (HAS_HW_NRF_DPPIC && (UART_0_NRF_HW_ASYNC || UART_1_NRF_HW_ASYNC || UART_2_NRF_HW_ASYNC || UART_3_NRF_HW_ASYNC) && UART_NRFX && SERIAL) with value n, but is currently being y-selected by the following symbols: - UART_ENHANCED_POLL_OUT (defined at drivers/serial/Kconfig.nrfx:388), with value y, direct dependencies (UART_0_ENHANCED_POLL_OUT || UART_1_ENHANCED_POLL_OUT || UART_2_ENHANCED_POLL_OUT || UART_3_ENHANCED_POLL_OUT) && UART_NRFX && SERIAL (value: y), and select condition HAS_HW_NRF_DPPIC && (UART_0_ENHANCED_POLL_OUT || UART_1_ENHANCED_POLL_OUT || UART_2_ENHANCED_POLL_OUT || UART_3_ENHANCED_POLL_OUT) && UART_NRFX && SERIAL (value: y) warning: NRFX_GPIOTE (defined at modules\hal_nordic\nrfx/Kconfig:65) has direct dependencies HAS_HW_NRF_GPIOTE && HAS_NRFX && 0 with value n, but is currently being y-selected by the following symbols: - GPIO_NRFX (defined at drivers/gpio/Kconfig.nrfx:4), with value y, direct dependencies SOC_FAMILY_NRF && GPIO (value: y), and select condition SOC_FAMILY_NRF && GPIO (value: y) warning: NRFX_NVMC (defined at modules\hal_nordic\nrfx/Kconfig:87) has direct dependencies HAS_NRFX && 0 with value n, but is currently being y-selected by the following symbols: - SOC_FLASH_NRF (defined at drivers/flash/Kconfig.nrf:10), with value y, direct dependencies SOC_FAMILY_NRF && !FLASH_NRF_FORCE_ALT && FLASH (value: y), and select condition SOC_FAMILY_NRF && !FLASH_NRF_FORCE_ALT && FLASH (value: y) error: Aborting due to Kconfig warnings CMake Error at C:/Users/andre/ncs/zephyr/cmake/kconfig.cmake:264 (message): command failed with return code: 1 Call Stack (most recent call first): C:/Users/andre/ncs/zephyr/cmake/app/boilerplate.cmake:555 (include) C:/Users/andre/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include) C:/Users/andre/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate) CMakeLists.txt:8 (find_package) -- Configuring incomplete, errors occurred! FATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' '-DWEST_PYTHON=c:\users\andre\appdata\local\programs\python\python39\python.exe' '-BC:\Users\andre\ncs\v1.6.1\nrf\samples\bluetooth\peripheral_lbs\build' '-SC:\Users\andre\ncs\v1.6.1\nrf\samples\bluetooth\peripheral_lbs' -GNinja -DBOARD=nrf5340dk_nrf5340_cpunet
reading the error completely confused me on what to do to remedy it.
Regarding the zephyr & 53 setup whats the process to flash both network and application core for the same project ?
it seems like my merged hex (to my understanding is both) is triggering something it shouldnt or im forgetting something to do prior to flashing.
Errors on build:
Connecting ‘J-Link’ using ‘USB’ Connecting to target using SWD Loaded C:/Users/andre/ncs/v1.6.1/toolchain/segger_embedded_studio/bin/JLink_x64.dll Firmware Version: J-Link OB-K22-NordicSemi compiled Jul 2 2021 10:44:28 DLL Version: 7.22b Hardware Version: V1.00 Target Voltage: 3.300 Device "NRF5340_XXAA_NET" selected. ConfigTargetSettings() start ConfigTargetSettings() end InitTarget() start InitTarget() end Found SW-DP with ID 0x6BA02477 DPIDR: 0x6BA02477 AP map detection skipped. Manually configured AP map found. AP[0]: AHB-AP (IDR: Not set) AP[1]: AHB-AP (IDR: Not set) AP[2]: MEM-AP (IDR: Not set) AP[3]: MEM-AP (IDR: Not set) AP[1]: Core found AP[1]: AHB-AP ROM base: 0xE00FE000 CPUID register: 0x410FD214. Implementer code: 0x41 (ARM) Found Cortex-M33 r0p4, Little endian. FPUnit: 8 code (BP) slots and 0 literal slots Security extension: not implemented CoreSight components: ROMTbl[0] @ E00FE000 ROMTbl[0][0]: E00FF000, CID: B105100D, PID: 000BB4C9 ROM Table ROMTbl[1] @ E00FF000 ROMTbl[1][0]: E000E000, CID: B105900D, PID: 000BBD21 Cortex-M33 ROMTbl[1][1]: E0001000, CID: B105900D, PID: 000BBD21 DWT ROMTbl[1][2]: E0002000, CID: B105900D, PID: 000BBD21 FPB ROMTbl[1][6]: E0042000, CID: B105900D, PID: 000BBD21 CSS600-CTI Preparing target for download Executing Reset script TargetInterface.resetAndStop() ResetTarget() start ResetTarget() end Downloading ‘zephyr.elf’ to J-Link Programming 190.4 KB of addresses 01000000 — 0102f9df Programming 2.1 KB of addresses 0102f9e0 — 01030263 T-bit of XPSR is 0 but should be 1. Changed to 1. Timeout while preparing target, RAMCode did not respond in time. (PC = 0x00000000, CPSR = 0x00000000, LR = 0x61000003)! Failed to prepare RAMCode using RAM Failed to download application. Generic error. Please check J-Link and target connection. Target connection has been lost Connecting ‘J-Link’ using ‘USB’ Connecting to target using SWD Loaded C:/Users/andre/ncs/v1.6.1/toolchain/segger_embedded_studio/bin/JLink_x64.dll Firmware Version: J-Link OB-K22-NordicSemi compiled Jul 2 2021 10:44:28 DLL Version: 7.22b Hardware Version: V1.00 Target Voltage: 3.300 Device "NRF5340_XXAA_NET" selected. ConfigTargetSettings() start ConfigTargetSettings() end InitTarget() start InitTarget() end Found SW-DP with ID 0x6BA02477 DPIDR: 0x6BA02477 AP map detection skipped. Manually configured AP map found. AP[0]: AHB-AP (IDR: Not set) AP[1]: AHB-AP (IDR: Not set) AP[2]: MEM-AP (IDR: Not set) AP[3]: MEM-AP (IDR: Not set) AP[1]: Core found AP[1]: AHB-AP ROM base: 0xE00FE000 CPUID register: 0x410FD214. Implementer code: 0x41 (ARM) Found Cortex-M33 r0p4, Little endian. FPUnit: 8 code (BP) slots and 0 literal slots Security extension: not implemented CoreSight components: ROMTbl[0] @ E00FE000 ROMTbl[0][0]: E00FF000, CID: B105100D, PID: 000BB4C9 ROM Table ROMTbl[1] @ E00FF000 ROMTbl[1][0]: E000E000, CID: B105900D, PID: 000BBD21 Cortex-M33 ROMTbl[1][1]: E0001000, CID: B105900D, PID: 000BBD21 DWT ROMTbl[1][2]: E0002000, CID: B105900D, PID: 000BBD21 FPB ROMTbl[1][6]: E0042000, CID: B105900D, PID: 000BBD21 CSS600-CTI Preparing target for download Executing Reset script TargetInterface.resetAndStop() ResetTarget() start ResetTarget() end Downloading ‘zephyr.elf’ to J-Link Programming 190.4 KB of addresses 01000000 — 0102f9df Programming 2.1 KB of addresses 0102f9e0 — 01030263 J-Link: Flash download: Bank 1 @ 0x01000000: 1 range affected (198656 bytes) J-Link: Flash download: Total: 10.154s (Prepare: 0.136s, Compare: 0.042s, Erase: 8.400s, Program & Verify: 1.500s, Restore: 0.074s) J-Link: Flash download: Program & Verify speed: 129 KiB/s Illegal value 0x210052E8 written to register 66 (MSP_NS) ignored Connecting ‘J-Link’ using ‘USB’ Connecting to target using SWD Loaded C:/Users/andre/ncs/v1.6.1/toolchain/segger_embedded_studio/bin/JLink_x64.dll Firmware Version: J-Link OB-K22-NordicSemi compiled Jul 2 2021 10:44:28 DLL Version: 7.22b Hardware Version: V1.00 Target Voltage: 3.300 Device "NRF5340_XXAA_NET" selected. ConfigTargetSettings() start ConfigTargetSettings() end InitTarget() start InitTarget() end Found SW-DP with ID 0x6BA02477 DPIDR: 0x6BA02477 AP map detection skipped. Manually configured AP map found. AP[0]: AHB-AP (IDR: Not set) AP[1]: AHB-AP (IDR: Not set) AP[2]: MEM-AP (IDR: Not set) AP[3]: MEM-AP (IDR: Not set) AP[1]: Core found AP[1]: AHB-AP ROM base: 0xE00FE000 CPUID register: 0x410FD214. Implementer code: 0x41 (ARM) Found Cortex-M33 r0p4, Little endian. FPUnit: 8 code (BP) slots and 0 literal slots Security extension: not implemented CoreSight components: ROMTbl[0] @ E00FE000 ROMTbl[0][0]: E00FF000, CID: B105100D, PID: 000BB4C9 ROM Table ROMTbl[1] @ E00FF000 ROMTbl[1][0]: E000E000, CID: B105900D, PID: 000BBD21 Cortex-M33 ROMTbl[1][1]: E0001000, CID: B105900D, PID: 000BBD21 DWT ROMTbl[1][2]: E0002000, CID: B105900D, PID: 000BBD21 FPB ROMTbl[1][6]: E0042000, CID: B105900D, PID: 000BBD21 CSS600-CTI Preparing target for download Executing Reset script TargetInterface.resetAndStop() ResetTarget() start ResetTarget() end Downloading ‘zephyr_prebuilt.elf’ to J-Link Programming 190.4 KB of addresses 01000000 — 0102f9df Programming 2.1 KB of addresses 0102f9e0 — 01030263 Programming 0.1 KB of .intList addresses 21010000 — 21010097 T-bit of XPSR is 0 but should be 1. Changed to 1. Timeout while preparing target, RAMCode did not respond in time. (PC = 0x00000000, CPSR = 0x21005B74, LR = 0x01000003)! Failed to prepare RAMCode using RAM Failed to write memory. Target connection has been lost Connecting ‘J-Link’ using ‘USB’ Connecting to target using SWD Loaded C:/Users/andre/ncs/v1.6.1/toolchain/segger_embedded_studio/bin/JLink_x64.dll Firmware Version: J-Link OB-K22-NordicSemi compiled Jul 2 2021 10:44:28 DLL Version: 7.22b Hardware Version: V1.00 Target Voltage: 3.300 Device "NRF5340_XXAA_APP" selected. ConfigTargetSettings() start ConfigTargetSettings() end InitTarget() start InitTarget() end Found SW-DP with ID 0x6BA02477 DPIDR: 0x6BA02477 AP map detection skipped. Manually configured AP map found. AP[0]: AHB-AP (IDR: Not set) AP[1]: AHB-AP (IDR: Not set) AP[2]: MEM-AP (IDR: Not set) AP[3]: MEM-AP (IDR: Not set) AP[0]: Core found AP[0]: AHB-AP ROM base: 0xE00FE000 CPUID register: 0x410FD214. Implementer code: 0x41 (ARM) Found Cortex-M33 r0p4, Little endian. FPUnit: 8 code (BP) slots and 0 literal slots Security extension: implemented Secure debug: enabled CoreSight components: ROMTbl[0] @ E00FE000 ROMTbl[0][0]: E00FF000, CID: B105100D, PID: 000BB4C9 ROM Table ROMTbl[1] @ E00FF000 ROMTbl[1][0]: E000E000, CID: B105900D, PID: 000BBD21 Cortex-M33 ROMTbl[1][1]: E0001000, CID: B105900D, PID: 000BBD21 DWT ROMTbl[1][2]: E0002000, CID: B105900D, PID: 000BBD21 FPB ROMTbl[1][3]: E0000000, CID: B105900D, PID: 000BBD21 ITM ROMTbl[1][5]: E0041000, CID: B105900D, PID: 002BBD21 ETM ROMTbl[1][6]: E0042000, CID: B105900D, PID: 000BBD21 CSS600-CTI ROMTbl[0][1]: E0040000, CID: B105900D, PID: 000BBD21 Cortex-M33 Preparing target for download Executing Reset script TargetInterface.resetAndStop() Reset: ARMv8M core with Security Extension enabled detected. Reset: Halt core after reset via DEMCR.VC_CORERESET. Reset: Reset device via AIRCR.SYSRESETREQ. Downloading ‘merged.hex’ to J-Link Programming 129.5 KB of addresses 00000000 — 0002060f J-Link: Flash download: Bank 1 @ 0x00000000: 1 range affected (135168 bytes) J-Link: Flash download: Total: 1.444s (Prepare: 0.135s, Compare: 0.032s, Erase: 0.173s, Program & Verify: 1.027s, Restore: 0.075s) J-Link: Flash download: Program & Verify speed: 128 KiB/s Connecting ‘J-Link’ using ‘USB’ Connecting to target using SWD Loaded C:/Users/andre/ncs/v1.6.1/toolchain/segger_embedded_studio/bin/JLink_x64.dll Firmware Version: J-Link OB-K22-NordicSemi compiled Jul 2 2021 10:44:28 DLL Version: 7.22b Hardware Version: V1.00 Target Voltage: 3.300 Device "NRF5340_XXAA_APP" selected. ConfigTargetSettings() start ConfigTargetSettings() end InitTarget() start InitTarget() end Found SW-DP with ID 0x6BA02477 DPIDR: 0x6BA02477 AP map detection skipped. Manually configured AP map found. AP[0]: AHB-AP (IDR: Not set) AP[1]: AHB-AP (IDR: Not set) AP[2]: MEM-AP (IDR: Not set) AP[3]: MEM-AP (IDR: Not set) AP[0]: Core found AP[0]: AHB-AP ROM base: 0xE00FE000 CPUID register: 0x410FD214. Implementer code: 0x41 (ARM) Found Cortex-M33 r0p4, Little endian. FPUnit: 8 code (BP) slots and 0 literal slots Security extension: implemented Secure debug: enabled CoreSight components: ROMTbl[0] @ E00FE000 ROMTbl[0][0]: E00FF000, CID: B105100D, PID: 000BB4C9 ROM Table ROMTbl[1] @ E00FF000 ROMTbl[1][0]: E000E000, CID: B105900D, PID: 000BBD21 Cortex-M33 ROMTbl[1][1]: E0001000, CID: B105900D, PID: 000BBD21 DWT ROMTbl[1][2]: E0002000, CID: B105900D, PID: 000BBD21 FPB ROMTbl[1][3]: E0000000, CID: B105900D, PID: 000BBD21 ITM ROMTbl[1][5]: E0041000, CID: B105900D, PID: 002BBD21 ETM ROMTbl[1][6]: E0042000, CID: B105900D, PID: 000BBD21 CSS600-CTI ROMTbl[0][1]: E0040000, CID: B105900D, PID: 000BBD21 Cortex-M33 Preparing target for download Executing Reset script TargetInterface.resetAndStop() Reset: ARMv8M core with Security Extension enabled detected. Reset: Halt core after reset via DEMCR.VC_CORERESET. Reset: Reset device via AIRCR.SYSRESETREQ. Downloading ‘zephyr_prebuilt.elf’ to J-Link Programming 127.3 KB of addresses 00000000 — 0001fd7f Programming 2.1 KB of addresses 0001fd80 — 0002060f Programming 0.0 KB of .intList addresses 20070000 — 20070057 J-Link: Flash download: Bank 1 @ 0x00000000: 3 ranges affected (12288 bytes) J-Link: Flash download: Total: 0.675s (Prepare: 0.134s, Compare: 0.101s, Erase: 0.264s, Program & Verify: 0.100s, Restore: 0.075s) J-Link: Flash download: Program & Verify speed: 119 KiB/s Connecting ‘J-Link’ using ‘USB’ Connecting to target using SWD Loaded C:/Users/andre/ncs/v1.6.1/toolchain/segger_embedded_studio/bin/JLink_x64.dll Firmware Version: J-Link OB-K22-NordicSemi compiled Jul 2 2021 10:44:28 DLL Version: 7.22b Hardware Version: V1.00 Target Voltage: 3.300 Device "NRF5340_XXAA_NET" selected. ConfigTargetSettings() start ConfigTargetSettings() end InitTarget() start InitTarget() end Found SW-DP with ID 0x6BA02477 DPIDR: 0x6BA02477 AP map detection skipped. Manually configured AP map found. AP[0]: AHB-AP (IDR: Not set) AP[1]: AHB-AP (IDR: Not set) AP[2]: MEM-AP (IDR: Not set) AP[3]: MEM-AP (IDR: Not set) AP[1]: Core found AP[1]: AHB-AP ROM base: 0xE00FE000 CPUID register: 0x410FD214. Implementer code: 0x41 (ARM) Found Cortex-M33 r0p4, Little endian. FPUnit: 8 code (BP) slots and 0 literal slots Security extension: not implemented CoreSight components: ROMTbl[0] @ E00FE000 ROMTbl[0][0]: E00FF000, CID: B105100D, PID: 000BB4C9 ROM Table ROMTbl[1] @ E00FF000 ROMTbl[1][0]: E000E000, CID: B105900D, PID: 000BBD21 Cortex-M33 ROMTbl[1][1]: E0001000, CID: B105900D, PID: 000BBD21 DWT ROMTbl[1][2]: E0002000, CID: B105900D, PID: 000BBD21 FPB ROMTbl[1][6]: E0042000, CID: B105900D, PID: 000BBD21 CSS600-CTI Preparing target for download Executing Reset script TargetInterface.resetAndStop() ResetTarget() start ResetTarget() end Downloading ‘zephyr.elf’ to J-Link Programming 190.4 KB of addresses 01000000 — 0102f9df Programming 2.1 KB of addresses 0102f9e0 — 01030263 J-Link: Flash download: Bank 1 @ 0x01000000: 1 range affected (198656 bytes) J-Link: Flash download: Total: 1.950s (Prepare: 0.138s, Compare: 0.056s, Erase: 0.175s, Program & Verify: 1.505s, Restore: 0.074s) J-Link: Flash download: Program & Verify speed: 128 KiB/s Illegal value 0x210052E8 written to register 66 (MSP_NS) ignored Connecting ‘J-Link’ using ‘USB’ Connecting to target using SWD Loaded C:/Users/andre/ncs/v1.6.1/toolchain/segger_embedded_studio/bin/JLink_x64.dll Firmware Version: J-Link OB-K22-NordicSemi compiled Jul 2 2021 10:44:28 DLL Version: 7.22b Hardware Version: V1.00 Target Voltage: 3.300 Device "NRF5340_XXAA_NET" selected. ConfigTargetSettings() start ConfigTargetSettings() end InitTarget() start InitTarget() end Found SW-DP with ID 0x6BA02477 DPIDR: 0x6BA02477 AP map detection skipped. Manually configured AP map found. AP[0]: AHB-AP (IDR: Not set) AP[1]: AHB-AP (IDR: Not set) AP[2]: MEM-AP (IDR: Not set) AP[3]: MEM-AP (IDR: Not set) AP[1]: Core found AP[1]: AHB-AP ROM base: 0xE00FE000 CPUID register: 0x410FD214. Implementer code: 0x41 (ARM) Found Cortex-M33 r0p4, Little endian. FPUnit: 8 code (BP) slots and 0 literal slots Security extension: not implemented CoreSight components: ROMTbl[0] @ E00FE000 ROMTbl[0][0]: E00FF000, CID: B105100D, PID: 000BB4C9 ROM Table ROMTbl[1] @ E00FF000 ROMTbl[1][0]: E000E000, CID: B105900D, PID: 000BBD21 Cortex-M33 ROMTbl[1][1]: E0001000, CID: B105900D, PID: 000BBD21 DWT ROMTbl[1][2]: E0002000, CID: B105900D, PID: 000BBD21 FPB ROMTbl[1][6]: E0042000, CID: B105900D, PID: 000BBD21 CSS600-CTI Preparing target for download Executing Reset script TargetInterface.resetAndStop() ResetTarget() start ResetTarget() end Downloading ‘zephyr.elf’ to J-Link Programming 190.4 KB of addresses 01000000 — 0102f9df Programming 2.1 KB of addresses 0102f9e0 — 01030263 T-bit of XPSR is 0 but should be 1. Changed to 1. Timeout while preparing target, RAMCode did not respond in time. (PC = 0x00000000, CPSR = 0x21005B74, LR = 0x01000003)! Failed to prepare RAMCode using RAM Failed to download application. Generic error. Please check J-Link and target connection. Target connection has been lost Connecting ‘J-Link’ using ‘USB’ Connecting to target using SWD Loaded C:/Users/andre/ncs/v1.6.1/toolchain/segger_embedded_studio/bin/JLink_x64.dll Firmware Version: J-Link OB-K22-NordicSemi compiled Jul 2 2021 10:44:28 DLL Version: 7.22b Hardware Version: V1.00 Target Voltage: 3.300 Device "NRF5340_XXAA_NET" selected. ConfigTargetSettings() start ConfigTargetSettings() end InitTarget() start CTRL-AP indicates that the device is secured. For debugger connection the device needs to be unsecured. Note: Unsecuring will trigger a mass erase of the internal flash, SRAM and UICR of both the application and the network core. Executing default behavior previously saved in the registry. Device will be unsecured now. InitTarget() end Found SW-DP with ID 0x6BA02477 DPIDR: 0x6BA02477 AP map detection skipped. Manually configured AP map found. AP[0]: AHB-AP (IDR: Not set) AP[1]: AHB-AP (IDR: Not set) AP[2]: MEM-AP (IDR: Not set) AP[3]: MEM-AP (IDR: Not set) AP[1]: Core found AP[1]: AHB-AP ROM base: 0xE00FE000 CPUID register: 0x410FD214. Implementer code: 0x41 (ARM) Found Cortex-M33 r0p4, Little endian. FPUnit: 8 code (BP) slots and 0 literal slots Security extension: not implemented CoreSight components: ROMTbl[0] @ E00FE000 ROMTbl[0][0]: E00FF000, CID: B105100D, PID: 000BB4C9 ROM Table ROMTbl[1] @ E00FF000 ROMTbl[1][0]: E000E000, CID: B105900D, PID: 000BBD21 Cortex-M33 ROMTbl[1][1]: E0001000, CID: B105900D, PID: 000BBD21 DWT ROMTbl[1][2]: E0002000, CID: B105900D, PID: 000BBD21 FPB ROMTbl[1][6]: E0042000, CID: B105900D, PID: 000BBD21 CSS600-CTI Preparing target for download Executing Reset script TargetInterface.resetAndStop() ResetTarget() start ResetTarget() end Downloading ‘zephyr.elf’ to J-Link Programming 190.4 KB of addresses 01000000 — 0102f9df Programming 2.1 KB of addresses 0102f9e0 — 01030263 J-Link: Flash download: Bank 1 @ 0x01000000: 1 range affected (198656 bytes) J-Link: Flash download: Total: 1.841s (Prepare: 0.220s, Compare: 0.044s, Erase: 0.000s, Program & Verify: 1.501s, Restore: 0.074s) J-Link: Flash download: Program & Verify speed: 129 KiB/s Illegal value 0x210052E8 written to register 66 (MSP_NS) ignored