Eraseprotect is enabled and readback protection setting is ALL, can't recover device. and JLinkARM DLL error

Issue:
I am trying to flash the zephyr sample code into custom board with nrf52840 chip. I am frequently getting the recovery failed error or the JLinkARM DLL error. I have attached the logs for reference:

18:10:54.990 Using nrfutil device to communicate with target via JLink
18:10:56.580 Reading readback protection status for Application core
18:10:56.581 Reading readback protection status for Application core 0%
18:10:56.648 Failed to reading readback protection status for application core core. Error: [object Object], message: Batch task protection-get failed, [jlink] INVALID_OPERATION
18:10:56.701 Error: Failed with exit code 1. One or more batch tasks failed: - [jlink] INVALID_OPERATION, code: Nrfjlink. Message: Batch task protection-get failed, [jlink] INVALID_OPERATION.
18:10:56.702 Error: Failed with exit code 1. One or more batch tasks failed: - [jlink] INVALID_OPERATION, code: Nrfjlink. Message: Batch task protection-get failed, [jlink] INVALID_OPERATION.


Environment:
Development environment: Ubuntu 22.04
Application: Zephyr sample code
Command: west flash --recover / nrfjprog --reset
JLink debugger: Jlink, Jlink Edu mini
Also tried flashing the hex file using the NRF connect desktop app

It would be great if I can get any reference to resolve this issue.

Parents Reply Children
Related