summaryrefslogtreecommitdiff
path: root/src/target/cortex_m3.c
diff options
context:
space:
mode:
authorntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-04 13:45:50 +0000
committerntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-04 13:45:50 +0000
commitf7d3fdb19573977224c911dd9bd5594fee30b231 (patch)
treeefd5eb501e5796b72ef80a1f5c3bbde229e8a88b /src/target/cortex_m3.c
parentd86100261252805215282b17d214c48021ef7f79 (diff)
downloadopenocd_libswd-f7d3fdb19573977224c911dd9bd5594fee30b231.tar.gz
openocd_libswd-f7d3fdb19573977224c911dd9bd5594fee30b231.tar.bz2
openocd_libswd-f7d3fdb19573977224c911dd9bd5594fee30b231.tar.xz
openocd_libswd-f7d3fdb19573977224c911dd9bd5594fee30b231.zip
- add support for different TAR autotincrement sizes as per ARM ADI spec.
- set TAR size to 12 bits for Cortex-M3. - Original patch submitted by Magnus Lundin [lundin@mlu.mine.nu]. git-svn-id: svn://svn.berlios.de/openocd/trunk@2051 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target/cortex_m3.c')
-rw-r--r--src/target/cortex_m3.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/target/cortex_m3.c b/src/target/cortex_m3.c
index 40aadea2..d105fe33 100644
--- a/src/target/cortex_m3.c
+++ b/src/target/cortex_m3.c
@@ -1579,6 +1579,7 @@ int cortex_m3_init_arch_info(target_t *target, cortex_m3_common_t *cortex_m3, jt
armv7m->swjdp_info.ap_tar_value = -1;
armv7m->swjdp_info.jtag_info = &cortex_m3->jtag_info;
armv7m->swjdp_info.memaccess_tck = 8;
+ armv7m->swjdp_info.tar_autoincr_block = (1<<12); /* Cortex-M3 has 4096 bytes autoincrement range */
/* initialize arch-specific breakpoint handling */