FAQ:Download

From GNU 68HC11/HC12
Jump to: navigation, search

Contents

Download to DBUG12

Here's a shell script to download 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.


s19 interpreter bootstrap

[http://hc11-ide.funkmunch.net/s19_interpreter_bootstrap/] is an initial bootstrap for the m68hc11. It optionally relocates to sram after download, and accepts S1 and S9 records verbatim. Baud rate can be easily changed in the asm file. Various debugging modes are available as well.

Current configuration of .dump file

relocate to 0x8000: no

baud rate: 2400 baud

debug mode: none

Makefile example

.PHONY:	bootstrap
bootstrap: s19_interpreter_bootstrap.dump
	@echo 
	@echo "*** BOOTSTRAPPING..."
	sleep 0.1; stty 1200 < ${SERPORT}
	dd if=$< of=${SERPORT} bs=1 2>/dev/null

.PHONY:	send
send: botbrain.s19
	@echo
	@echo "*** SENDING..."
	sleep 0.1; stty 2400 < ${SERPORT}
	dd if=$< of=${SERPORT} bs=1 2>/dev/null
Personal tools