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