Is it possible to use the nrfjprog utility to program and secure (from read over the SWD) the nRF52840 in one step? I tried:
nrfjprog -f NRF52 --program abc.hex --chiperase --verify --memwr 0x10001208 --val 0xFFFFFF0
ERROR: Two arguments were provided that cannot be combined. Use --help to read
ERROR: about the valid argument combinations.
NOTE: For additional output, try running again with logging enabled (--log).
NOTE: Any generated log error messages will be displayed.
Doing a separate:
nrfjprog -f NRF52 --program abc.hex --chiperase --verify
and then:
nrfjprog -f NRF52 --memwr 0x10001208 --val 0xFFFFFF0
works, but that could mean it is possible to program the part without securing it from readout if the 2nd step is missed or fails.