summaryrefslogtreecommitdiff
path: root/tcl/target
diff options
context:
space:
mode:
authorAlexandre Pereira da Silva <aletes.xgr@gmail.com>2011-04-27 09:19:55 -0300
committerØyvind Harboe <oyvind.harboe@zylin.com>2011-05-03 22:06:57 +0200
commit743fada06a23f5d847cdb95cd96d2c4390a6be62 (patch)
tree47acafde323fe95fdc8460eee2e01e9fc0e9fb18 /tcl/target
parent7d8053e93fd285bcf9a0a7c93216e241c524828f (diff)
downloadopenocd+libswd-743fada06a23f5d847cdb95cd96d2c4390a6be62.tar.gz
openocd+libswd-743fada06a23f5d847cdb95cd96d2c4390a6be62.tar.bz2
openocd+libswd-743fada06a23f5d847cdb95cd96d2c4390a6be62.tar.xz
openocd+libswd-743fada06a23f5d847cdb95cd96d2c4390a6be62.zip
Make the lpc2xxx generic driver support romless parts
Diffstat (limited to 'tcl/target')
-rw-r--r--tcl/target/lpc2xxx.cfg8
1 files changed, 5 insertions, 3 deletions
diff --git a/tcl/target/lpc2xxx.cfg b/tcl/target/lpc2xxx.cfg
index 6a736381..e9e8e6dc 100644
--- a/tcl/target/lpc2xxx.cfg
+++ b/tcl/target/lpc2xxx.cfg
@@ -29,9 +29,11 @@ proc setup_lpc2xxx {chip_name cputapids flash_size flash_variant workarea_size c
$_TARGETNAME configure -work-area-phys 0x40000000 -work-area-size $workarea_size -work-area-backup 0
- # flash bank <name> lpc2000 <base> <size> 0 0 <target#> <variant> <clock> [calc checksum]
- set _FLASHNAME $chip_name.flash
- flash bank $_FLASHNAME lpc2000 0x0 $flash_size 0 0 $_TARGETNAME $flash_variant $core_freq_khz calc_checksum
+ if { $flash_size > 0 } {
+ # flash bank <name> lpc2000 <base> <size> 0 0 <target#> <variant> <clock> [calc checksum]
+ set _FLASHNAME $chip_name.flash
+ flash bank $_FLASHNAME lpc2000 0x0 $flash_size 0 0 $_TARGETNAME $flash_variant $core_freq_khz calc_checksum
+ }
}
proc init_targets {} {