nRF52840 JTAG disable and don't recover through any JTAG Debugger.

Hi Team!

Currently I an working on disabling JTAG/Debug and SWD lines to protect code from read/write through any JTAG debugger.

For this, I have used nrfjprog utility and rbp command to disable JTAG read/write/erase. I have performed it and it works perfectly.
Now to enable JTAG again, I need to use nrfjprog --recover, which erase flash and UICR to enable flash rd/wr again. After --recover, I can do
flash img and rd/wr register through nrfjprog utility.

Question:
1) What does --recover do with nrfjprog utility ? Is it write/reset any ctrl-AP register to enable JTAG/Debug lines again ?
2) Can I disable --recover in board through any register so that in the field Flash read/write can be disable through any JTAG ?
3) If I want to disable JTAG/Debug lines in future, what are the options available for that ?

Thanks in Advance!

Related