recover nrf52 DK

Hi all!

I just bought a new nrf52DK: PCA10040, 3.0.0, 2023.10
If I want to flash my SW into it, nrfjprog says

ERROR: The operation attempted is unavailable due to readback protection in
ERROR: your device. Please use --recover to unlock the device.


So I run nrfjprog --recover -f nrf52.
After that, I try to flash my FW, but nrfjprog returns

ERROR: The file specified is not a valid hex file, has data outside valid areas
ERROR: or does not have data in valid areas.


If I plug off the DK and replace it by my old nrf52 DK (PCA10040, 1.2.4, 2019.8), I have no
problems to flash my SW, so the hex file itself should be valid. Does the new DK
require more parameters to nrfjprog?

Additional, if I replace the old DK with the new DK again, the new DK is locked again,
and I have to --recover it again. Is there a way to make the unlock persistent?

Thanks in advance,

Dirk.

Related