amx-mst701/scripts/on_target/send_image

29 lines
431 B
Plaintext
Raw Permalink Normal View History

2024-12-18 13:52:47 +01:00
#!/usr/bin/ckermit
# usage: send_image FILE_NAME OFFSET
# e.g. send_image output.bin 1F00000
set port /dev/ttyUSB0
set speed 115200
set serial 8N1
set carrier-watch off
set handshake none
set flow-control none
robust
set file type bin
set file name lit
set rec pack 1000
set send pack 1000
set window 5
set prompt Kermit>
out \13
out loadb
out \13
#send bootrom.bin
send uImage
out \13
#in 10 ## Start Addr
connect
quit
exit 0