aboutsummaryrefslogtreecommitdiff
path: root/tcl
diff options
context:
space:
mode:
authorSpencer Oliver <spen@spen-soft.co.uk>2012-02-14 14:20:51 +0000
committerSpencer Oliver <spen@spen-soft.co.uk>2012-02-16 08:57:22 +0000
commitfd39a5e8addce366467ad7305eb270ddd635f4a9 (patch)
treeb981423fa5e840f1f1c1bda4a277e661760831ab /tcl
parentddb2bb28fa4e1ea29c6e94e0c559b3586f9f8235 (diff)
downloadriscv-openocd-fd39a5e8addce366467ad7305eb270ddd635f4a9.zip
riscv-openocd-fd39a5e8addce366467ad7305eb270ddd635f4a9.tar.gz
riscv-openocd-fd39a5e8addce366467ad7305eb270ddd635f4a9.tar.bz2
cfg: change default stellaris working area
This sets the default stellaris working area to 2k rather than the current 8k. 2K is the smallest RAM size in the stellaris family. Change-Id: I1407f758eb0926cc094b824a6d25199b313c45de Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/458 Tested-by: jenkins
Diffstat (limited to 'tcl')
-rw-r--r--tcl/board/ek-lm3s1968.cfg1
-rw-r--r--tcl/board/ek-lm3s811-revb.cfg1
-rw-r--r--tcl/board/ek-lm3s811.cfg1
-rw-r--r--tcl/target/stellaris.cfg6
4 files changed, 6 insertions, 3 deletions
diff --git a/tcl/board/ek-lm3s1968.cfg b/tcl/board/ek-lm3s1968.cfg
index d47e9e2..e79452c 100644
--- a/tcl/board/ek-lm3s1968.cfg
+++ b/tcl/board/ek-lm3s1968.cfg
@@ -13,5 +13,6 @@
source [find interface/luminary.cfg]
# include the target config
+set WORKAREASIZE 0x2000
set CHIPNAME lm3s1968
source [find target/stellaris.cfg]
diff --git a/tcl/board/ek-lm3s811-revb.cfg b/tcl/board/ek-lm3s811-revb.cfg
index aa6e982..fb145e4 100644
--- a/tcl/board/ek-lm3s811-revb.cfg
+++ b/tcl/board/ek-lm3s811-revb.cfg
@@ -8,5 +8,6 @@
source [find interface/luminary-lm3s811.cfg]
# include the target config
+set WORKAREASIZE 0x2000
set CHIPNAME lm3s811
source [find target/stellaris.cfg]
diff --git a/tcl/board/ek-lm3s811.cfg b/tcl/board/ek-lm3s811.cfg
index f8b3a2e..db7324a 100644
--- a/tcl/board/ek-lm3s811.cfg
+++ b/tcl/board/ek-lm3s811.cfg
@@ -9,5 +9,6 @@
source [find interface/luminary.cfg]
# include the target config
+set WORKAREASIZE 0x2000
set CHIPNAME lm3s811
source [find target/stellaris.cfg]
diff --git a/tcl/target/stellaris.cfg b/tcl/target/stellaris.cfg
index 0afe2e7..06f27c5 100644
--- a/tcl/target/stellaris.cfg
+++ b/tcl/target/stellaris.cfg
@@ -47,8 +47,8 @@ swj_newdap $_CHIPNAME cpu -irlen 4 -irmask 0xf \
if { [info exists WORKAREASIZE] } {
set _WORKAREASIZE $WORKAREASIZE
} else {
- # default to 8K working area
- set _WORKAREASIZE 0x2000
+ # default to 2K working area
+ set _WORKAREASIZE 0x800
}
set _TARGETNAME $_CHIPNAME.cpu
@@ -133,7 +133,7 @@ proc reset_peripherals {family} {
$_TARGETNAME configure -event reset-start {
adapter_khz 500
- #
+ #
# When nRST is asserted on most Stellaris devices, it clears some of
# the debug state. The ARMv7M and Cortex-M3 TRMs say that's wrong;
# and OpenOCD depends on those TRMs. So we won't use SRST on those