For a device that has APPROTECT enabled, it is required to use nrfjprog --recover to re-enable access.
What is the mechanism that nrfjprog uses to perform the --recover command? Can it be implemented with accesses using gdb using hardware like the Black Magic Probe (github.com/.../wiki)