NRF Connect Programmer v3.0.8 for nrf5340 DK not working on Linux

Hi,

I have updated to the latest nRF Connect for Desktop 4.0.1 on Linux Mint 20.1 (64 bit x86) with Programmer version 3.0.8 and my nRF5340 Dk as well as my nRF5340 Audio Dk boards fail to recover when the "Erase all" button is pressed. Both cores remain as "Device is protected" after pressing that button. This only happens on Linux and not Windows 10. I can confirm that this happens on two completely separate Linux machines too. I had a working version of nRF Connect on another Linux machine but it stopped working when I updated to the latest version so it is definitely a software issue. Unfortunately I cannot figure out how to "downgrade" the programmer app.

Is there a way to run a specific version of the Programmer app? It seems to always use the latest version regardless of the nRF Connect version being used. It's hard to tell when it even installs it to.

I have attached verbose working (Windows) and non-working (Linux) logs of the process. I also sometimes get the following error log message on Linux:

Fullscreen
1
2
3
16:16:21.357 Loading readback protection status for Network core
16:16:22.072 Failed to load readback protection status: async task failure for id: 1682435781358816 msg: [jlink] JLINKARM_DLL_TIME_OUT_ERROR (Origin: "Error when running operation: protection-get")
16:16:22.154 Readback protection status: NRFDL_PROTECTION_STATUS_NONE
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

I installed the same version of the Jlink driver (version 682c) that was known to work on the Linux version but this had no effect so I reverted back to version 780c.

What is the relationship between the Programmer app and the nrf command line tools? Will I have more luck downgrading command line tools until I get a working version by trial and error? I have found that nrfjprog just says it's done the right thing even when it hasn't.

Here are all the versions of what I am running:

Fullscreen
1
2
3
4
Using nrf-device-lib-js version: 0.6.5
Using nrf-device-lib version: 0.14.7
Using nrfjprog DLL version: 10.19.1
Using JLink version: JLink_V7.80c
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Linux log (not working)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
14:54:04.945 Using nrf-device-lib-js version: 0.6.5
14:54:04.945 Using nrf-device-lib version: 0.14.7
14:54:04.945 Using nrfjprog DLL version: 10.19.1
14:54:04.945 Using JLink version: JLink_V7.80c
14:54:06.097 Getting serialport options from persistent store 001050008612.pc-nrfconnect-programmer
14:54:11.864 Using @nordicsemiconductor/nrf-device-lib-js to communicate with target via JLink
14:54:11.865 JLink OB firmware version J-Link OB-nRF5340-NordicSemi compiled Dec 3 2021 15:46:49
14:54:11.865 Device family NRF53_FAMILY
14:54:11.865 Device version NRF5340_xxAA_ENGD
14:54:11.865 Board version PCA10095
14:54:11.865 Loading readback protection status for Application core
14:54:11.865 Loading readback protection status for Network core
14:54:11.881 [nrfdl][info](14:54:11.865) Loaded plugin /tmp/.mount_nrfconqOeoqj/resources/app.asar.unpacked/node_modules/@nordicsemiconductor/nrf-device-lib-js/Release/00-nrfdl-jlink-plugin.nrfdl, starting to resolve symbols
14:54:11.881 [nrfdl][info](14:54:11.865) Loaded plugin /tmp/.mount_nrfconqOeoqj/resources/app.asar.unpacked/node_modules/@nordicsemiconductor/nrf-device-lib-js/Release/00-nrfdl-jlink-plugin.nrfdl, starting to resolve symbols
14:54:13.451 [nrfdl][info](14:54:12.654) close plugin dll at path: /tmp/.mount_nrfconqOeoqj/resources/app.asar.unpacked/node_modules/@nordicsemiconductor/nrf-device-lib-js/Release/00-nrfdl-jlink-plugin.nrfdl
14:54:13.451 Readback protection status: NRFDL_PROTECTION_STATUS_NONE
14:54:13.451 [nrfdl][info](14:54:12.655) Loaded plugin /tmp/.mount_nrfconqOeoqj/resources/app.asar.unpacked/node_modules/@nordicsemiconductor/nrf-device-lib-js/Release/00-nrfdl-jlink-plugin.nrfdl, starting to resolve symbols
14:54:13.474 Readback protection status: NRFDL_PROTECTION_STATUS_NONE
14:54:13.474 [nrfdl][info](14:54:12.746) close plugin dll at path: /tmp/.mount_nrfconqOeoqj/resources/app.asar.unpacked/node_modules/@nordicsemiconductor/nrf-device-lib-js/Release/00-nrfdl-jlink-plugin.nrfdl
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Windows log (working):

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
14:48:37.369 Using nrf-device-lib-js version: 0.6.5
14:48:37.369 Using nrf-device-lib version: 0.14.7
14:48:37.369 Using nrfjprog DLL version: 10.19.1
14:48:37.369 Using JLink version: JLink_V7.80c
14:48:37.830 [nrfdl][info](14:48:37.831) plugin added new device: 10 sn:
14:48:37.832 Getting serialport options from persistent store 001050008612.pc-nrfconnect-programmer
14:48:37.833 Getting serialport options from persistent store .pc-nrfconnect-programmer
14:48:42.028 Using @nordicsemiconductor/nrf-device-lib-js to communicate with target via JLink
14:48:42.028 JLink OB firmware version J-Link OB-nRF5340-NordicSemi compiled Dec 3 2021 15:46:49
14:48:42.028 Device family NRF53_FAMILY
14:48:42.028 Device version NRF5340_xxAA_ENGD
14:48:42.028 Board version PCA10095
14:48:42.028 Loading readback protection status for Application core
14:48:42.028 Loading readback protection status for Network core
14:48:42.038 [nrfdl][info](14:48:42.029) Loaded plugin C:\Users\david\AppData\Local\Programs\nrfconnect\resources\app.asar.unpacked\node_modules\@nordicsemiconductor\nrf-device-lib-js\Release\00-nrfdl-jlink-plugin.nrfdl, starting to resolve symbols
14:48:42.038 [nrfdl][info](14:48:42.029) Loaded plugin C:\Users\david\AppData\Local\Programs\nrfconnect\resources\app.asar.unpacked\node_modules\@nordicsemiconductor\nrf-device-lib-js\Release\00-nrfdl-jlink-plugin.nrfdl, starting to resolve symbols
14:48:43.173 Readback protection status: NRFDL_PROTECTION_STATUS_NONE
14:48:43.173 [nrfdl][info](14:48:42.562) close plugin dll at path: C:\Users\david\AppData\Local\Programs\nrfconnect\resources\app.asar.unpacked\node_modules\@nordicsemiconductor\nrf-device-lib-js\Release\00-nrfdl-jlink-plugin.nrfdl
14:48:43.173 [nrfdl][info](14:48:42.563) Loaded plugin C:\Users\david\AppData\Local\Programs\nrfconnect\resources\app.asar.unpacked\node_modules\@nordicsemiconductor\nrf-device-lib-js\Release\00-nrfdl-jlink-plugin.nrfdl, starting to resolve symbols
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Please save me from having to use Windows.

Thanks,

David