cfg: change default stellaris working area
authorSpencer Oliver <spen@spen-soft.co.uk>
Tue, 14 Feb 2012 14:20:51 +0000 (14:20 +0000)
committerSpencer Oliver <spen@spen-soft.co.uk>
Thu, 16 Feb 2012 08:57:22 +0000 (08:57 +0000)
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
tcl/board/ek-lm3s1968.cfg
tcl/board/ek-lm3s811-revb.cfg
tcl/board/ek-lm3s811.cfg
tcl/target/stellaris.cfg

index d47e9e2edcdaccc64915005740db6a1dc1f11a2f..e79452c796770d2e55a84340a6fbeac0632458ab 100644 (file)
@@ -13,5 +13,6 @@
 source [find interface/luminary.cfg]
 
 # include the target config
+set WORKAREASIZE 0x2000
 set CHIPNAME lm3s1968
 source [find target/stellaris.cfg]
index aa6e982a08f32f7520e7c50434a5ed8aad84f78d..fb145e4ffcdff3ffe8a011dedb7a6b977097ae75 100644 (file)
@@ -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]
index f8b3a2e82ebf24c35ae14d5fbcfc85aa107f3afe..db7324a72130172663180beba73712e24e6faba7 100644 (file)
@@ -9,5 +9,6 @@
 source [find interface/luminary.cfg]
 
 # include the target config
+set WORKAREASIZE 0x2000
 set CHIPNAME lm3s811
 source [find target/stellaris.cfg]
index 0afe2e791ac8d8cd2fc6219aa01db5a769307c46..06f27c56807be3df913ec4638558ecd16d5dd46c 100644 (file)
@@ -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