This program can be used to download a small amount of code in the first 256
bytes of ram of the 68HC11, when your MCU is in boot mode. If you want to
download programs to your EEPROM there is a much better tool from the Motorola
web site
PICOBUG. The problem with PICOBUG is that it uses the first 256 bytes for
RAM so it can not load program in there - and sometimes that is all you have.
Usage:
Prog68HC11
[-w | -W] [-f <com port name>] [<binary file to download>]
If you do not specify a binary to download, the program will send byte 00 to
the MCU forcing it to start the build in EEPROM code - at lead that is what my
MC68HC811E2 boot code does. I use this to start my EEPROM code without removing
the "boot mode" jumpers. It might or might not be useful to you.
If you specify a binary to download the first byte of the binary must be $FF
and is not stored in the RAM - it is used for handshake with the MCU boot code.
The rest of the file content is stored linearly starting from address $00. The
program will read 256 bytes at most, the rest will be ignored. If you code is
smaller than 256 bytes, the remaining bytes in the RAM will be filled with 0s.
You can set which com port to be used wit the -f switch. The default is COM1.
There is no need to set anything on the com port - the program adjusts the
speeds.
The -W or -w switch is used to specify whether the program should wait for
the MCU power up signal or not (-w is wait, -W is do not wait). The default is
to wait.
You can download the binary from here.
Or the source code from here. Source is
written with MS Visual Studio 6.0 - it might or might not work with other
compilers. As always questions or comments are always
welcome.
If you are interested to read how this program works go
here.