I have been working with 2.9.1 but went back to a project using 2.6.1 to flash a nrf5340dk and can still compile it, but now cannot flash the nrf5340dk. I am getting this error when flashing:
Flashing build_2 to ********* west flash -d /Users/*********/Projects/GitHub/*********/dj_test/build_2 --dev-id ********* -- west flash: rebuilding [0/8] Performing build step for 'hci_ipc_subimage' ninja: no work to do. [1/6] Performing build step for 'mcuboot_subimage' ninja: no work to do. -- west flash: using runner nrfjprog -- runners.nrfjprog: reset after flashing requested -- runners.nrfjprog: Flashing file: /Users/*********/Projects/GitHub/*********/dj_test/build_2/zephyr/merged_domains.hex -- runners.nrfjprog: /Users/*********/Projects/GitHub/*********/dj_test/build_2/zephyr/merged_domains.hex targets both nRF53 coprocessors; splitting it into: /Users/*********/Projects/GitHub/*********/dj_test/build_2/zephyr/GENERATED_CP_NETWORK_merged_domains.hex and /Users/*********/Projects/GitHub/*********/dj_test/build_2/zephyr/GENERATED_CP_APPLICATION_merged_domains.hex [error] [SeggerBackend] - Error in dlopen: dlopen(/Applications/SEGGER/JLink/libjlinkarm.8.dylib, 0x0001): tried: '/Applications/SEGGER/JLink/libjlinkarm.8.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Applications/SEGGER/JLink/libjlinkarm.8.dylib' (no such file), '/Applications/SEGGER/JLink/libjlinkarm.8.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/Applications/SEGGER/JLink_V826/libjlinkarm.8.26.0.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Applications/SEGGER/JLink_V826/libjlinkarm.8.26.0.dylib' (no such file), '/Applications/SEGGER/JLink_V826/libjlinkarm.8.26.0.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')) [error] [ Worker] - Dll failed to open. [error] [ Client] - Encountered error -101: Command open executed for 34 milliseconds with result -101 ERROR: JLinkARM DLL load failed. Try again. If it keeps failing, please ERROR: reinstall latest JLinkARM from Segger webpage. NOTE: For additional output, try running again with logging enabled (--log). NOTE: Any generated log error messages will be displayed. FATAL ERROR: command exited with status 32: nrfjprog --program /Users/*********/Projects/GitHub/*********/dj_test/build_2/zephyr/GENERATED_CP_NETWORK_merged_domains.hex --sectorerase --verify -f NRF53 --coprocessor CP_NETWORK --snr 1050030146
The working 2.9.1 project looks like this when flashing:
Flashing display_hello_world to ********* west flash -d /Users/*********/Projects/GitHub/*********/display_hello_world/build_1 --domain display_hello_world --dev-id ********* -- west flash: rebuilding [0/5] Performing build step for 'display_hello_world' ninja: no work to do. [2/5] No install step for 'display_hello_world' [3/5] Completed 'display_hello_world' [4/5] cd /Users/*********/Projects/GitHub/*********/display_hello_world/build_1/_sysbuild && /opt/nordic/ncs/toolchains/b8efef2ad5/Cellar/cmake/3.21.0/bin/cmake -E true -- west flash: using runner nrfjprog -- runners.nrfjprog: reset after flashing requested -- runners.nrfjprog: Flashing file: /Users/*********/Projects/GitHub/*********/display_hello_world/build_1/merged.hex [ #################### ] 10.079s | Erase file - Done erasing [ #################### ] 2.201s | Program file - Done programming [ #################### ] 2.140s | Verify file - Done verifying Applying pin reset. -- runners.nrfjprog: Board with serial number ********* flashed successfully. * Terminal will be reused by tasks, press any key to close it.