diff options
| author | Julian Blake Kongslie | 2022-05-08 15:51:35 -0700 |
|---|---|---|
| committer | Julian Blake Kongslie | 2022-05-08 15:51:35 -0700 |
| commit | 38c5ae5b60eae9562b97da42f47af3861847f8e5 (patch) | |
| tree | 556fd9e5c38fb2feea56ce5741ca02a5e110ad63 /tool/download.tcl | |
| parent | Make the script for setting up the TTY actually connect. (diff) | |
| download | multipdp8-38c5ae5b60eae9562b97da42f47af3861847f8e5.tar.xz | |
*Proper* serial port for memory downloads. 115200 8O2 RS232 with CRTRTS.
Diffstat (limited to '')
| -rwxr-xr-x | tool/download.tcl (renamed from download.tcl) | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/download.tcl b/tool/download.tcl index 635e54b..c0dca55 100755 --- a/download.tcl +++ b/tool/download.tcl | |||
| @@ -12,14 +12,13 @@ if {$::argc > 1} { | |||
| 12 | set core [lindex $::argv 0] | 12 | set core [lindex $::argv 0] |
| 13 | } | 13 | } |
| 14 | 14 | ||
| 15 | spawn nios2-terminal --instance 0 | 15 | spawn tool/connect |
| 16 | expect -ex "connected to hardware target" | ||
| 17 | 16 | ||
| 18 | send "@[format %x [expr $core * 32768 / $wordsperline]]\n" | 17 | send "@[format %x [expr $core * 32768 / $wordsperline]]\n" |
| 19 | 18 | ||
| 20 | while {[gets stdin line] >= 0} { | 19 | while {[gets stdin line] >= 0} { |
| 21 | send "$line\n" | 20 | send "$line\n" |
| 22 | expect -ex "$line" | 21 | expect -ex "$line\n" |
| 23 | } | 22 | } |
| 24 | 23 | ||
| 25 | # It's likely we ended with a very large zero-memory operation. We want to see | 24 | # It's likely we ended with a very large zero-memory operation. We want to see |
| @@ -30,5 +29,5 @@ expect -ex "?" | |||
| 30 | send "?" | 29 | send "?" |
| 31 | expect -ex "?" | 30 | expect -ex "?" |
| 32 | 31 | ||
| 33 | send "\004" | 32 | send "\n~." |
| 34 | expect -ex "exiting due to ^D on remote" | 33 | wait |
