Operation
Off-Board Code Generation
M68HC12A4EVB Evaluation Board — Rev. 1
User’s Manual
MOTOROLA
Operation
73
3.8 Off-Board Code Generation
To generate a user program on a host computer and load it into the EVB’s
memory, follow these steps:
NOTE:
For steps 2 and 3, follow the instructions in the MCUez HC12 Assembler User’s
Manual, Motorola document order number MCUEZASM12/D.
1.
Set up the EVB system with a host computer as the terminal. See section
2.6.3 Host-Computer Setup
.
2.
In the host computer’s native operating mode — for instance, before
starting the communications program that allows it to serve as the EVB’s
terminal — write and assemble the program using Motorola’s MCUez
assembler.
3.
Using the MCUez assembler’s hex utility, generate a Motorola S-record
file from the object (.HEX) file.
Appendix A. S-Record Format
contains detailed information about the S-record formats.
4.
Start the EVB with D-Bug12 as the default operating mode, using the
procedure in
3.2 Startup
.
5.
At the D-Bug12 prompt, issue D-Bug12’s LOAD command with any
parameters. Note that this requires interaction with the terminal
communications program’s “send file” utility. See
Appendix B. Communications Program Examples
.
3.9 Memory Usage
The EVB’s memory usage and requirements are described here and
summarized in
Table 3-5
.
NOTE:
This memory mapping applies only to the factory-default memory
configuration.
3.9.1 Description
The monitor program, D-Bug12, occupies 24 Kbytes in the two 32-Kbyte
EPROMs, U7 and U9A. The remaining 8 Kbytes are available for user
programs and utilities, but since this ROM area cannot be directly written,
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
.
..
AR
CH
IVE
D B
Y F
RE
ES
CA
LE
SE
MI
CO
ND
UC
TO
R,
IN
C.