Hi,
Using the nrf Connect Programmamer v4.2.0, I get the following error when connecting to J-Link on some of my custom boards (about 30%):
14:05:52.546 Error: Failed with exit code 1. Failed to device info one or more devices: * 801049915: [jlink] JLINKARM_DLL_ERROR, code: Nrfjlink. Message: Operation device-info failed, [jlink] JLINKARM_DLL_ERROR. 14:05:52.547 Using nrfutil device to communicate with target via JLink 14:05:54.698 Reading readback protection status for Application core 14:05:54.698 Failed to reading readback protection status for application core core. Error: [object Object], message: Batch task protection-get failed, [jlink] JLINKARM_DLL_ERROR 14:05:54.886 Error: Failed with exit code 1. One or more batch tasks failed: - [jlink] JLINKARM_DLL_ERROR, code: Nrfjlink. Message: Batch task protection-get failed, [jlink] JLINKARM_DLL_ERROR. 14:05:54.887 Error: Failed with exit code 1. One or more batch tasks failed: - [jlink] JLINKARM_DLL_ERROR, code: Nrfjlink. Message: Batch task protection-get failed, [jlink] JLINKARM_DLL_ERROR.
[error] [ Client] - Encountered error -102: Command connect_to_emu_with_snr executed for 236 milliseconds with result -102 ERROR: Unable to connect to a debugger. [error] [ Worker] - An unknown error. ERROR: JLinkARM DLL reported an error. Try again. If error condition ERROR: persists, run the same command again with argument --log, contact Nordic ERROR: Semiconductor and provide the generated log.log file to them.