From 38c5ae5b60eae9562b97da42f47af3861847f8e5 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Sun, 8 May 2022 15:51:35 -0700 Subject: *Proper* serial port for memory downloads. 115200 8O2 RS232 with CRTRTS. --- download.tcl | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100755 download.tcl (limited to 'download.tcl') diff --git a/download.tcl b/download.tcl deleted file mode 100755 index 635e54b..0000000 --- a/download.tcl +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env expect - -set timeout 3600 - -set core 0 -set wordsperline 1 - -if {$::argc > 1} { - set core [lindex $::argv 0] - set wordsperline [lindex $::argv 1] -} elseif {$::argc > 0} { - set core [lindex $::argv 0] -} - -spawn nios2-terminal --instance 0 -expect -ex "connected to hardware target" - -send "@[format %x [expr $core * 32768 / $wordsperline]]\n" - -while {[gets stdin line] >= 0} { - send "$line\n" - expect -ex "$line" -} - -# It's likely we ended with a very large zero-memory operation. We want to see -# two command bytes echoed back to us in order to guarantee that the zero -# operation has completely flushed to memory. -send "?" -expect -ex "?" -send "?" -expect -ex "?" - -send "\004" -expect -ex "exiting due to ^D on remote" -- cgit v1.2.3