Axiom HC11 development board troubleshooting information
--------------------------------------------------------

Following are a number of tips, suggestions and answers to common
questions that will solve most problems users have with the AX11
development system.  There also may be a newer version of the AX11
utility software available you can try.  You can download the latest
version from our web page at: www.axman.com.

AX11 Program
------------

- If you're using CMD or CMM boards and are trying to program code
memory, make sure jumpers 1 and 2 are set parallel to the MC68HC11
micro, not pointing away from it.

- If you are trying to execute Buffalo, Basic, or your own code from
EEPROM, make sure jumpers 1 and 2 are NOT installed.

- Be certain that the data cable you're using is bi-directional and is
connected securely to both the PC and the board.  Also, make sure you
are setup using the correct serial port.

- Make sure the correct power is supplied to the board.  You should only
use a 9volt, 300mA adapter or power supply.  If you're using a power
strip, make sure it is turned on.

- If the configuration file loads (the first 100 bytes or so), but you
get a time-out error when the program section begins to download, make
sure the part is internally configured correctly by selecting Configure
Processor from the main menu.  ROMON must be set to off.  During program
development the only bit that should be on is EEON.

- Make sure you load your code to an address space that actually exists.
The 8k boards (those with part numbers ending in 8) have EPROM's
beginning at address E000h.  The 32k boards can be programmed starting
at 8000h.

- If you are running in a multi-tasking environment (such as windows)
close all programs in the background to be certain no serial conflict
occurs.

- If programming is slow, run the batch file PAGE.BAT in the ax11
directory then see if programming is faster.  If programming doesn't
work following this, return to normal operation by running the batch
file BYTE.BAT.

- If the Assembler or Small C compiler menu options do not work properly
on your system, you can modify their operation by editing the files
DO_SC.BAT (for the C compiler) and DO_ASM.BAT (for the assembler).
These are the batch files that are run when their menu items are
selected.  Try putting a PAUSE statement at the end of the batch files.
This will halt the batch file before returning to AX11 so you can see
any error messages they may be giving you.

- You can reset all AX11 configuration options to their original state
by deleting the file named AX11.CFG.  This file will be re-created the
next time you run AX11.


Code Execution
--------------

- Make sure ALL jumpers are set correctly according to your board's
configuration.  Read the hardware manual section on jumpers carefully if
you're not sure.

- Always remember to remove jumpers 1, 2 and 10 ( jumper 6 on the CMM
board) after programming the code memory.

- If the board has the trace jumper, make sure it's not installed when
running code from ROM or when using interrupts.

- If you programmed your code into EEPROM memory and it doesn't run,
check the HC11 reset vector, located at FFFEh - FFFFh.  These 2 bytes
contain the address in the micro. where execution will begin when the
unit is powered on.  The default is E000h, which is the beginning of
the 8k program address space (or the middle of the 32k program address
space).


Basic11
-------

- The base address to access register I/O (using Peek() and Poke()
  functions) is 6000 hex.

- In some older versions of the Basic11 manual, the word AUTOEE was
misused in place of the correct command AUTOST.

- If you want to autostart your Basic code don't forget to add a RETURN
command somewhere in your programs main loop to get back to the basic
interpreter.  Otherwise, you'll have to remove the external EEPROM to
get BASIC11 to autostart again.

- If you're getting errors or your program isn't uploading to basic11
properly from the AX11 Terminal program, try adding pacing delays.  10
or 20 (ms) should be enough.


ImageCraft C
------------

- Your make or build should create a .MAP file.  At the top of this file
should be a label __START.  This is where you should CALL or GO to when
debugging in buffalo.  Do not use your main label.



SMALLC Compiler
---------------

- If you're programming to ROM, delete the first line of the S19 record
generated, since SMALL.C adds data there.

- Make sure you put the CODE, DATA, and STACK at the correct locations
per your memory configuration.  DATA may need to be at 0000 if you're
burning a ROM, and STACK should have plenty of room.

- Don't forget to use the -R option if you're compiling for ROM.

- If Internal Registers have been re-mapped (default at 0x1000) be sure
to change the #define REG_BASE accordingly.

- If you're having trouble with the shift operations (>> or <<) this is
probably because the small c compiler uses a rotate thru carry
instruction here.  Try using inline assembly code to accomplish the
shift.

- You may have trouble returning any values larger than 1 byte from
functions (ie char functions).  You will have to use global integer
values instead.

- Small C does not support structures or unions.

- Small C is a free "un-supported" public domain compiler.  If you're
doing more than just experimenting consider purchasing a commercial
quality C compiler.  ImageCraft sells a good compiler for around $50,
call them or Axiom Mfg. to order.

