OSDN Git Service
(root)
/
blacktank
/
blacktank.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
First commitment for the BlackTank LPC1769.
[blacktank/blacktank.git]
/
progwrite.sh
1
#!/usr/bin/expect
2
3
#
4
# telnet経由でプログラムをライトする。
5
# こういうのはexpectを使えば良い。
6
#
7
8
set timeout 600
9
spawn telnet localhost 4444
10
11
expect ">"
12
send "halt\n"
13
14
expect ">"
15
send "flash probe 0\n"
16
17
expect ">"
18
send "flash write_image erase TOPPERS-ASP_BlackTank-LPC1769.bin\n"
19
20
expect ">"
21
send "exit\n"
22
23
sleep 2
24
25
spawn telnet localhost 4444
26
27
sleep 2
28
29
expect ">"
30
send "reset\n"
31
32
expect ">"
33
send "exit\n"