1#puts "argc = $argc" 2#puts "argv = $argv" 3#puts "arg 1 is [lindex $argv 0]" 4 5if { $argc != 1 } { 6 puts "not enough arguments to xmd script" 7 exit 8} 9 10set offset 0 11set file [lindex $argv 0] 12 13connect arm hw 14 15rst 16after 1000 17stop 18dow -data build-$file/lk.bin $offset 19rwr pc $offset 20con 21 22