nRF52840 Dongle Failed on SWD with Lowlevel error: NOT_AVAILABLE_BECAUSE_PROTECTION (ffffffa6)

It seems this is a new problem with PCA10059 2.1.0, but not 2.0.0 or 2.0.1 that we previously used.

I use a nrf52-dk to connect its P19 to the SWD pins on the dongle. With the newer version 2.1.0, nrf-connect programmer fails to identify the dongle. Two of the version 2.1.0 dongles failed the same. While the same setup works on a version 2.0.0 dongle. All three dongles are fresh from the package.

I also tried to flash a bootloader (/cfs-file/__key/communityserver-discussions-components-files/4/4263.pca10059_5F00_bootloader.zip) found on the programming tutorial page (https://devzone.nordicsemi.com/guides/short-range-guides/b/getting-started/posts/nrf52840-dongle-programming-tutorial). It gets an error saying "... The init packet does not contain a signature. This bootloader requires DFU updates to be signed.".

Has something changed in version 2.1.0? Especially when compared to version 2.0.x, what are the reasons for these failures?

Software versions used: Jlink 6.88a. Segger embedded studio 5.40c. Nrf-connect v3.6.1, nrf programmer v1.4.8. I hesitate to upgrade software versions because we have previous devices using the dongle, that we try to avoid upgrading them. We'd like to use firmware previously built without having to upgrade the IDE and rebuild.

Here is the log when connecting 2.1.0 and 2.0.0:

PCA10059 2.1.0: using nrf52-dk p19 to debug through SWD
2022-09-06T00:34:32.701Z INFO Using nrfjprog to communicate with target
2022-09-06T00:34:32.961Z INFO Using J-Link Software version 6.88
2022-09-06T00:34:33.238Z INFO Segger serial:  682851047
2022-09-06T00:34:33.238Z INFO Segger speed:  2000  kHz
2022-09-06T00:34:33.239Z INFO Segger version:  J-Link OB-SAM3U128-V2-NordicSemi compiled Mar 17 2020 14:43:00
2022-09-06T00:34:33.243Z ERROR Error when getting device info: Error: Error: Error occured when get device info. Errorcode: CouldNotCallFunction (0x9)
Lowlevel error: NOT_AVAILABLE_BECAUSE_PROTECTION (ffffffa6)

2022-09-06T00:34:33.244Z ERROR Could not fetch memory size of target devkit: Cannot read property 'family' of undefined
2022-09-06T00:34:33.269Z INFO Device is closed without reset due to app protection
2022-09-06T00:35:24.235Z INFO Target device closed.

PCA10059 2.0.0: using nrf52-dk p19 to debug through SWD
2022-09-06T00:46:48.810Z INFO Using nrfjprog to communicate with target
2022-09-06T00:46:49.211Z INFO Using J-Link Software version 6.88
2022-09-06T00:46:49.580Z INFO Segger serial:  682851047
2022-09-06T00:46:49.581Z INFO Segger speed:  2000  kHz
2022-09-06T00:46:49.581Z INFO Segger version:  J-Link OB-SAM3U128-V2-NordicSemi compiled Mar 17 2020 14:43:00
2022-09-06T00:46:49.581Z INFO Core probed: 682851047
2022-09-06T00:46:49.581Z INFO Core RAM: 256KiB
2022-09-06T00:46:49.581Z INFO Core ROM: 1024KiB in pages of 4KiB
2022-09-06T00:46:49.698Z INFO Model: NRF52840_xxAA_REV2.
2022-09-06T00:46:50.111Z INFO Core0: Reading device non-volatile memory. This may take a few seconds.
2022-09-06T00:46:50.545Z INFO Core0: UICR has been read. Click read button to read full non-volatile memory.
2022-09-06T00:47:21.106Z INFO Target device closed.

Thanks.

Related