]> git.sur5r.net Git - openocd/commitdiff
at91sam7sx.cfg: fix use $_TARGETNAME as target identifier, not '0' warning
authorSergey A. Borshch <sb-sf@users.sourceforge.net>
Fri, 22 Nov 2013 10:16:41 +0000 (12:16 +0200)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Tue, 17 Dec 2013 23:13:34 +0000 (23:13 +0000)
all other at91 cfg files already has this fix.
It also fix "No flash at address 0x...." error when JTAG chain consist of
more than one at91sam7sx cores during attempt to flash other than first mcu
in chain.

Change-Id: I7785d9103d0fc494b6a823e2c73f850373ffe112
Signed-off-by: Sergey A. Borshch <sb-sf@users.sourceforge.net>
Reviewed-on: http://openocd.zylin.com/1812
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
tcl/target/at91sam7sx.cfg

index 20e468999bf0ef521569e800a1847103047320a9..4b3cab43cd63d0bb4a549d978cf5d7fcaf356072 100644 (file)
@@ -50,4 +50,4 @@ $_TARGETNAME configure -work-area-phys 0x00200000 -work-area-size 0x4000 -work-a
 
 #flash bank <driver> <base_addr> <size> <chip_width> <bus_width> <target_number> [<target_name> <banks> <sectors_per_bank> <pages_per_sector> <page_size> <num_nvmbits> <ext_freq_khz>]
 set _FLASHNAME $_CHIPNAME.flash
-flash bank $_FLASHNAME at91sam7 0 0 0 0 0 0 0 0 0 0 0 0 18432
+flash bank $_FLASHNAME at91sam7 0 0 0 0 $_TARGETNAME 0 0 0 0 0 0 0 18432