User Contributed Notes
darius@dons.net.au
01-Jul-2003 8:58
#8
Here's a shell script to upload to a micro via DBUG12.

#!/bin/sh

if [ -z $1 ]; then
  echo "Bad usage"
  exit
fi

(
stty 38400 cs8 -cstopb -crtscts -clocal
ascii-xfr -n -c 1 -l 1 -s $1
) >/dev/cuaa0 </dev/cuaa0

Run cu/minicom/whatever and stop the remote micro, do [F]BULK, then [F]LOAD, quit and run the shell script. You'll need to edit the 'cuaa0's for your operating system.

It's pretty slow, I have a faster version written in C, but it's a bit long to paste here.

For this script to work you need ascii-xfr which is a part of minicom.