diff options
Diffstat (limited to 'tcl/target/xmc4xxx.cfg')
-rw-r--r-- | tcl/target/xmc4xxx.cfg | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tcl/target/xmc4xxx.cfg b/tcl/target/xmc4xxx.cfg index 34f0327f..bc007779 100644 --- a/tcl/target/xmc4xxx.cfg +++ b/tcl/target/xmc4xxx.cfg @@ -39,6 +39,19 @@ swj_newdap $_CHIPNAME cpu -irlen 4 -expected-id $_CPU_TAPID set _TARGETNAME $_CHIPNAME.cpu target create $_TARGETNAME cortex_m -chain-position $_TARGETNAME +# Work-area is a space in RAM used for flash programming +# By default use 16 kB +if { [info exists WORKAREASIZE] } { + set _WORKAREASIZE $WORKAREASIZE +} else { + set _WORKAREASIZE 0x1000 +} + +$_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0 + +set _FLASHNAME $_CHIPNAME.flash +flash bank $_FLASHNAME xmc4xxx 0x0C000000 0 0 0 $_TARGETNAME + if { ![using_hla] } { cortex_m reset_config sysresetreq } |