New option feature added.
Modified the exception handler to avoid unwanted exception
fix some issue in JIRA GCC32RM-298
Fix the bug that sometimes the usb-driver will be blocked by pyocd, and add board id information in -l option
In python2.6 the INTERFACE[usb_backend].getAllConnectedInterface will return None instead of [], so add more condition to avoid it
Provide more information in -h for the -d option
Fix the issue of two duplicate print
Fix the JIRA issue GCC32RM-303
Added K22F support.

Signed-off-by: Chris Reed <flit@me.com>
Updates to fix syntax and broken example in gdb_test.py
Merge pull request #24 from sg-/master

Updates to fix syntax and broken example in gdb_test.py
Updated Kinetis flash blobs to latest versions as used in CMSIS-DAP.

Signed-off-by: Chris Reed <flit@me.com>
Flash driver improvements.

- Moved the Kinetis security check function to a new Flash_Kinetis base
  class, from which all Kinetis flash algos now derive.
- Improved security check to disallow an FOPT byte of 0x00.
- Removed specific Kinetis L-series flash algo classes in favour of a
  new Flash_klxx class, since the flash blob is the same for all current
  L-series devices.
- Changed Flash.programPage() to pass the length of the data array
  instead of a fixed page size, to allow to programming less than a full
  page, if the device supports it.

Signed-off-by: Chris Reed <flit@me.com>
merge master branch
Added unlock script for Kinetis devices.

Signed-off-by: Chris Reed <creed@freescale.com>
Remove whitespace
Fix python hang (on Windows) when an error occurred during the initial device init().

* Catch the exception and close down the interface, then reraise the exception so the program will not keep trying to use the failed board.

Signed-off-by: Chris Williamson <chris.williamson@freescale.com>
Fix a different python hang (on Windows) when an error occurred during the flash.init().

* No matter what, you have to call interface.close() to insure python.exe on Windows won't hang.

Signed-off-by: Chris Williamson <chris.williamson@freescale.com>
add a new test case for gdb server
change the sleep time back to the origin