I have been working on a custom board that uses a taiyo yoden EYSHJNZXZ module. A tact switch is connected between P0.21 and GND. I want to use this switch simple input, but by pushing this switch always result in firmware reset.
Data sheet says that P0.21 is a nRESET pin. Both PSELRESET[0] and PSELRESET[1] have a default value of 0xffffffff, P0.21 is disconnected to nRESET.
I have confirmed that PSELRESET is 0xffffffff by the following commands:
nrfjprog -f NRF52 --eraseuicr
nrfjprog -f NRF52 --memrd 0x10001200 --n 8
0x10001200: FFFFFFFF FFFFFFF
then push a switch that connected to P0.21, that fires firmware reset.
When PSELRESET is 0x00000015 by the following commands:
nrfjprog -f NRF52 --memwr 0x10001200 --val 0x00000015
nrfjprog -f NRF52 --memwr 0x10001204 --val 0x00000015
nrfjprog -f NRF52 --memrd 0x10001200 --n 8
0x10001200: 00000015 00000015
of course, by passing a switch firmware resets.
How can I disable a firmware reset?