summaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authorkc8apf <kc8apf@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-01-20 03:49:31 +0000
committerkc8apf <kc8apf@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-01-20 03:49:31 +0000
commit8f513f039aab589d8e4583743a7560eca41cfad9 (patch)
tree3bc952834a37ca7682c2bf1be00e7b19ec4a9ea5 /src/target
parent07749dbdec7dede36e5cac9d467cb5f06e88ef41 (diff)
downloadopenocd_libswd-8f513f039aab589d8e4583743a7560eca41cfad9.tar.gz
openocd_libswd-8f513f039aab589d8e4583743a7560eca41cfad9.tar.bz2
openocd_libswd-8f513f039aab589d8e4583743a7560eca41cfad9.tar.xz
openocd_libswd-8f513f039aab589d8e4583743a7560eca41cfad9.zip
Fix support for ADuC702x flash. Courtesy of Michael Ashton <data@gtf.org>
git-svn-id: svn://svn.berlios.de/openocd/trunk@1343 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target')
-rw-r--r--src/target/target/aduc702x.cfg6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/target/target/aduc702x.cfg b/src/target/target/aduc702x.cfg
index 35f5ff32..ef1beb78 100644
--- a/src/target/target/aduc702x.cfg
+++ b/src/target/target/aduc702x.cfg
@@ -39,8 +39,12 @@ jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CP
set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME
+# allocate the entire SRAM as working area
+$_TARGETNAME configure -work-area-phys 0x10000 -work-area-size 0x2000
+
## flash configuration
-flash bank aduc702x 0x80000 0x10000 2 2 0
+# only target number is needed
+flash bank aduc702x 0 0 0 0 0
## If you use the watchdog, the following code makes sure that the board
## doesn't reboot when halted via JTAG. Yes, on the older generation