On the nRF51822, I see that by programming the readback protect register, one can prevent reading code regions 0 and 1 from the SWD interface. However, if one had access to the SWD interface, a debugger, and the nrfjprog tool, it appears that the UICR register could be erased independently of erasing the entire flash.
Assuming someone has access to the SWD interface pins, is there a way of ensuring full readback protection? Or at least ensuring that the entire flash must be erased before reading can occur?