FAQ:Download

From GNU 68HC11/HC12
(Difference between revisions)
Jump to: navigation, search
(Migrate faq to wiki)
 
Line 1: Line 1:
 +
=Upload to DBUG12=
 +
 
Here's a shell script to upload to a micro via DBUG12.
 
Here's a shell script to upload to a micro via DBUG12.
  
 
  #!/bin/sh
 
  #!/bin/sh
 
+
 
  if [ -z $1 ]; then
 
  if [ -z $1 ]; then
 
   echo "Bad usage"
 
   echo "Bad usage"
 
   exit
 
   exit
 
  fi
 
  fi
 
+
 
  (stty 38400 cs8 -cstopb -crtscts -clocal
 
  (stty 38400 cs8 -cstopb -crtscts -clocal
 
  ascii-xfr -n -c 1 -l 1 -s $1
 
  ascii-xfr -n -c 1 -l 1 -s $1
Line 20: Line 22:
  
 
By '''darius at dons dot net dot au'''.
 
By '''darius at dons dot net dot au'''.
 +
 +
 +
=s19 interpreter bootstrap=
 +
[[http://hc11-ide.funkmunch.net/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

Revision as of 06:08, 18 October 2006

Contents

Upload to DBUG12

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.


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