
Cosmic Software 68HC908JK1 Evaluation Board
68HC908JK1 Evaluation board provides a complete target system with a serial debug
connection that can be used with Cosmic Software’s development tools to create and
debug real programs for the 68HC08 range of micro controllers. The serial debug
interface included on the evaluation board can also be used to debug other 68HC08
target systems that do not have a dedicated serial debug interface.
To use the evaluation board with the Zap Mono8 debugger software provided with the
starter kit it is only necessary to connect the board to the PC with the serial cable
provided and to connect the battery. These connections should be completed before
running the debugger. The default setting for the software is to use COM2. If the
board is connected to COM1, the debugger will automatically open the connect
window so that a new COM port can be selected.
Mono08 Connection
The 68HC08 micro controller family includes a small monitor program permanently
installed in PROM. The Cosmic Zap Mon08 debugger communicates with this
monitor program and it is important for correct operation, that the 68HC08 chip enters
monitor mode at power on and after a reset. The Cosmic 68HC908JK1 Evaluation
board has been configured to do this. If using Zap with another target board, the user
is strongly recommended to read the monitor mode section of the 68HC08 manual.
The monitor program will allow full access to any code programmed in FLASH for
debugging purposes, however, as this would allow for unauthorised access to
customers code once products had been shipped, there is a security feature. This
security can cause problems during debugging if it is not fully understood. When Zap
connects to the 68HC08 chip it provides a set of security bytes. If these are correct,
the 68HC08 monitor program enters a security passed mode. If the security bytes are
not correct it enters in security failed mode. Zap reports the security status at the
bottom of the screen.
If security is passed, the user is allowed full access to the FLASH which in turn
allows for full high level debug. If security fails, the debugger is still allowed to
access the RAM and registers of the 68HC08, but it is not possible to read the
FLASH. If an attempt to read the FLASH is made by the debugger, a read takes place
but the data returned is not valid (usually returns 0xad). Attempts to program the
FLASH are also inhibited. In this mode, the only valid operation on the FLASH is to
totally erase it. If the security bytes are not known for a programmed chip, the only
way to recover it is to enter monitor mode without passing security and then to erase
the whole FLASH.
Once monitor mode has been entered in security fail mode, it will stay in fail mode
until the power has been removed and restored on the chip. In this case a power on
reset is different from just applying a reset input to the reset pin. If the user tries to re-
connect Zap to the chip in security fail mode without re-cycling the power, it will stay
in fail mode even though the correct security bytes are being sent. It is necessary to
disconnect the battery and reconnect the battery before re-connecting Zap.