openocd/src
Antonio Borneo 7456e6bac5 stlink: fix open AP for v2j37 and v3j7
The new stlink firmware requires opening the AP before issuing
any operation.
In the current code we have a 'questionable' check about the core
model to set the TAR autoincrement, that is issued without opening
the AP, thus causing a STLINK_BAD_AP_ERROR.

Modify the AP open API to handle this case and open AP#0 before
the memory access to check the core model.

Change-Id: I576955b5094bd41d63ff1fbad7b4fd9433253321
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reported-by: Andreas Bolsch <hyphen0break@gmail.com>
Reviewed-on: http://openocd.zylin.com/5691
Tested-by: jenkins
Reviewed-by: Andreas Bolsch <hyphen0break@gmail.com>
2020-05-24 21:36:02 +01:00
..
flash flash/nor/sh_qspi: Fix dead assignment 2020-05-24 21:27:08 +01:00
helper coding style: prototype of functions with no parameters 2020-05-09 14:39:59 +01:00
jtag stlink: fix open AP for v2j37 and v3j7 2020-05-24 21:36:02 +01:00
pld helper/command: change prototype of command_print/command_print_sameline 2019-05-14 19:37:11 +01:00
rtos rtos/ChibiOS: Fix some coding styles 2020-05-24 21:25:25 +01:00
server coding style: avoid unnecessary line continuations 2020-05-09 14:39:29 +01:00
svf coding style: avoid unnecessary line continuations 2020-05-09 14:39:29 +01:00
target stm8 target: make adapter speed settings work 2020-05-24 21:34:48 +01:00
transport swim: add new transport 2020-05-24 21:32:05 +01:00
xsvf xsvf: fix memory leak 2020-01-16 09:44:33 +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
Makefile.am Convert to non-recursive make 2016-12-08 16:23:10 +00:00
openocd.c mflash: Remove this broken flash driver 2019-07-28 21:17:47 +01:00
openocd.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00