From: Alexandre Pereira da Silva Date: Wed, 27 Apr 2011 12:19:55 +0000 (-0300) Subject: Make the lpc2xxx generic driver support romless parts X-Git-Tag: v0.5.0-rc1~71 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=743fada06a23f5d847cdb95cd96d2c4390a6be62;p=openocd Make the lpc2xxx generic driver support romless parts --- 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 lpc2000 0 0 [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 lpc2000 0 0 [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 {} {