FAQ:Download

From GNU 68HC11/HC12
Revision as of 17:00, 18 February 2006 by Stephane.Carrez (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

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. Add Notes

By darius at dons dot net dot au.

Personal tools