Hi.
I flash a board with NRF51822 via SWD pads, and that way the push button is inaccessible, and I need to press it to test various functions. Push button is on 28 bit and signal led is on 29.
I'm able to read from memory when button is released and when is pressed with OpenOCD (or Jlink if it would be better):
> nrf51.cpu mdw 0x50000510 0x50000510 10000000 .... > nrf51.cpu mdw 0x50000510 0x50000510 00000000 ....
But, of course, writing to the register would not help:
nrf51.cpu mww 0x50000504 0x00000000
That way I'm only able to turn off\on led.
I need to figure out something software here, since there are 200 more of those board to flash and test...