A lot fixes for NRF51822. Make pyOCD usable with nRF51 CPU.

- add options for gdb_server.py: SoftDevice flash protection, don't break at hard fault handler, correct resume procedure, add extra monitor command.
- mask interrupt when stepping. Required for NRF51. Otherwise GDB server can't step if any interrupt occured during halted state. In case of nrf51 with enabled BLE it happens all the time.
- fix nrf51 reset(), resetStopResume() functions.
- add nrf51 specific gdb_server server.
Ehm, but after the hardware reset, it will automatically continue to
run(same behavior with resume?). Does the extra halt make any difference? I
ask so as some users think after the hardware reset, the cpu should halt.
I'm not sure if I understand it correctly. Anyway, I have no rejection on
this part, just ask for curiosity : )

2014-10-08 10:06 GMT+08:00 Andrii Anpilogov <notifications@github.com>:

> In pyOCD/gdbserver/gdbserver.py:
>
> >                      elif resultMask == 0x3:
> >                          resp = "OK"
> >                          self.target.resetStopOnReset()
> > +                    #111 for reset halt resume cmd, so launch self.target.resetStopOnReset() and self.target.resume()
>
> There is.
> mon reset - is hardware reset
> mon reset halt resume - is halt on reset and then resume
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/mbedmicro/pyOCD/pull/62/files#r18561128>.
>