openocd/src
Paul Fertser 492bab62ab target/adi_v5_swd, cortex_m: properly handle more cases requiring reconnect
This brings SWD reconnection procedure in line with the ARM
documentation and changes cortex_m reset procedure to make use of it.

The motivation behind this patch is to make SAM4L "reset" and "reset
halt" properly without SRST. The complication here is that EDBG issues
an additional read of DP_RDBUFF automatically right after writing
SYSRESETREQ, that leads to a FAULT which needs to be dealt with
properly. With this patch the very first ahbap_debugport_init DAP
access will make SWD layer properly reinitialise the link before
continuing.

Runtime tested with mbed CMIS-DAP + KL25 only.

Change-Id: Ic506f9db30931dfa60860036b83f73b897975909
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/2596
Tested-by: jenkins
Reviewed-by: Andrey Yurovsky <yurovsky@gmail.com>
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2015-03-25 21:32:06 +00:00
..
flash flash/nor/kinetis: do not attempt mass-erase in place of a bank erase 2015-03-25 20:47:46 +00:00
helper configure: define WIN32_LEAN_AND_MEAN early to make it effective 2015-02-04 21:56:55 +00:00
jtag drivers/cmsis-dap: port to common SWD framework 2015-03-25 21:31:09 +00:00
pld update files to correct FSF address 2013-06-05 19:52:42 +00:00
rtos rtos: Freescale MQX rtos support 2015-03-09 06:29:17 +00:00
server server, target, cortex_m: add deinit_target to the API to free resources 2015-03-09 08:34:46 +00:00
svf Openocd: svf: Add ability to ignore svf_check_tdo errors 2014-07-03 18:08:48 +00:00
target target/adi_v5_swd, cortex_m: properly handle more cases requiring reconnect 2015-03-25 21:32:06 +00:00
transport transport: clarify error message when transport is not selected 2015-01-09 08:48:18 +00:00
xsvf update files to correct FSF address 2013-06-05 19:52:42 +00:00
hello.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
hello.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
main.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
Makefile.am Makefile.am: link libusb-1.0 after libusb-0.1 to fix dependencies 2015-02-04 21:56:45 +00:00
openocd.c Added system signal handling to Linux version 2015-03-09 06:25:45 +00:00
openocd.h Fix some problems with the bin2char utility 2014-08-02 09:01:32 +00:00