From 8f513f039aab589d8e4583743a7560eca41cfad9 Mon Sep 17 00:00:00 2001 From: kc8apf Date: Tue, 20 Jan 2009 03:49:31 +0000 Subject: Fix support for ADuC702x flash. Courtesy of Michael Ashton git-svn-id: svn://svn.berlios.de/openocd/trunk@1343 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/target/target/aduc702x.cfg | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/target') 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 -- cgit v1.2.3