diff options
Diffstat (limited to 'tcl/target/stellaris.cfg')
-rw-r--r-- | tcl/target/stellaris.cfg | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tcl/target/stellaris.cfg b/tcl/target/stellaris.cfg index 5f4428f5..4235f910 100644 --- a/tcl/target/stellaris.cfg +++ b/tcl/target/stellaris.cfg @@ -18,6 +18,12 @@ if { [info exists CPUTAPID ] } { set _CPUTAPID 0x0ba00477 } +if { [info exists WORKAREASIZE ] } { + set _WORKAREASIZE $WORKAREASIZE +} else { + set _WORKAREASIZE 0x2000 +} + jtag newtap $_CHIPNAME cpu -irlen 4 -irmask 0xf \ -expected-id $_CPUTAPID -ignore-version @@ -33,7 +39,7 @@ target create $_TARGETNAME cortex_m3 -chain-position $_CHIPNAME.cpu \ # NOTE: you may need or want to reconfigure the work area; # some parts have just 6K, and you may want to use other # addresses (at end of mem not beginning) or back it up. -$_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size 0x2000 +$_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE # JTAG speed ... slow enough to work with a 12 MHz RC oscillator; # LM3S parts don't support RTCK |