Fixes for NRF51822:
- 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.
Fix 'mon help' commands in GDBServer. Cleanup after code review.
Align gdbserver options. Rename flash_protect_offset to flash_protect. Merge nrf51 gdb server.
Rename flash_offset to skip_bytes.
Merge pull request #62 from anpilog/update_nrf51822

A lot fixes for NRF51822. Make pyOCD usable with nRF51 CPU.
Add erase page support to flash.py

Add the erase page function to flash.py.
Update LPC1768 methods reset and resetStopOnReset.
Merge pull request #64 from TerryGuo/master

Target: Update LPC1768 methods reset and resetStopOnReset - software reset argument
Update gdbserver to detect starting flash address

Automatically detect the starting flash address.  If the address is
non-zero then erase page by page to prevent erasing bootloader code.
Otherwise perform a mass erase.  This patch also removes skip_bytes
from gdbserver since it is no longer needed if the starting flash
address is determined automatically.
Check the return value of flash operations

Check what each flash operation returns.  If it returns failure
(non-zero value) then log it.
Add program/erase page test to basic_test.py

Test erasePage and programPage in basic_test.py.
Merge pull request #63 from c1728p9/master

Prevent GDB from erasing bootloader (flashOffset, programPage addition)
Flash: Kinetis flash bob update

The flash blob used from the refactor branch (commit 63c5623cff9ad).
K22F is not functional, skipped in this update.
Merge pull request #68 from 0xc0170/fix_issue#64

Flash: Kinetis flash bob update (not k22f)