User Contributed Notes
01-Jul-2003 8:58
Here's a shell script to upload to a micro via DBUG12.


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

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.