riscv-openocd/src
Tomas Vanek d459a2d27d adi_v5_swd: wait for readable DPIDR, ABORT if stalled
Reading of DPIDR is the very first operation after JTAG to SWD sequence.
Without this change if DPIDR read fails then swd connect fails.

Keep trying JTAG to SWD sequence and DPIDR read until success
or timeout 0.5 sec. It makes setting of adapter srst delay on SWD transport
mostly unnecessary.

Also test for ERROR_WAIT (which should not occur according to
IHI 0031E B4.3.2 but a quirk is known) and if bus is kept stalled
then issue abort to make the next connect possible.

Change-Id: Id8fe6618605bbeb4fed5061e987ed55de90a35f2
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/5730
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2020-12-02 23:15:16 +00:00
..
flash flash/nor/stm32f1x: fix error message 2020-11-15 22:10:02 +00:00
helper helper/command: disable logging of registered commands [RFC] 2020-11-15 22:10:35 +00:00
jtag jtag/drivers/cmsis_dap: fix build with gcc 10.1.0 2020-11-15 21:38:29 +00:00
pld openocd: use proper format with uint32_t 2020-09-05 17:12:44 +01:00
rtos rtos: make private the API rtos_try_next() 2020-11-04 17:39:42 +00:00
server target, register: allow a register hidden from gdb and 'reg' cmd 2020-11-15 21:05:37 +00:00
svf openocd: fix command's usage string 2020-09-05 17:13:10 +01:00
target adi_v5_swd: wait for readable DPIDR, ABORT if stalled 2020-12-02 23:15:16 +00:00
transport build: fix build with --enable-minidriver-dummy 2020-11-07 20:53:39 +00:00
xsvf openocd: avoid checking for non NULL pointer to free it 2020-09-05 17:11:50 +01:00
Makefile.am Convert to non-recursive make 2016-12-08 16:23:10 +00:00
hello.c helper/command: change prototype of command_print/command_print_sameline 2019-05-14 19:37:11 +01:00
hello.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
main.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
openocd.c openocd: convert function setup_command_handler() to static 2020-11-04 17:40:14 +00:00
openocd.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00