The v3 reference manual of the nrf51 mentions:
"[The powerfail comparator] also provides hardware protection of data stored in program memory by preventing write instructions from being executed." (page 45)
The meaning of this is not entirely clear to me. Is this protection only active below 1.7V, or earlier? I'm trying to use the low-power comparator to generate an interrupt at 2.7V, then write something to flash and shut down. If I make sure that the power drop is slow enough so that there is enough time for my operations between the 2.7V and 1.7V, can I be sure that my data arrives in flash uncompromised?