target/mem_ap: generic mem-ap target

This pseudo target allows attaching to any access point on the DAP at the
MEM-AP level and read and write addresses on the connected bus. For
example, one can create a mem_ap target on the APB-AP and read and write
registers of debug components directly. This allows many diagnostic
and other features be programmed entirely using TCL, without necessity
of adding drivers to OpenOCD.

Change-Id: I53229ffd68fb0f96fb68be15b0f3a76cc8843c8e
Signed-off-by: Matthias Welwarsky <matthias.welwarsky@sysgo.com>
Reviewed-on: http://openocd.zylin.com/4002
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-by: Leonard Crestez <cdleonard@gmail.com>
This commit is contained in:
Matthias Welwarsky
2017-02-20 14:29:01 +01:00
committed by Matthias Welwarsky
parent 23cd59cdf2
commit 5d458cf727
3 changed files with 185 additions and 1 deletions

View File

@@ -75,7 +75,8 @@ ARMV7_SRC = \
%D%/cortex_m.c \
%D%/armv7a.c \
%D%/cortex_a.c \
%D%/ls1_sap.c
%D%/ls1_sap.c \
%D%/mem_ap.c
ARMV8_SRC = \
%D%/armv8_dpm.c \