
B-8
DINK32 PowerPC ISA Debugger User’s Manual
For More Information On This Product,
Go to: www.freescale.com
MOTOROLA
SPINIT
B.12 SPINIT
The “SPINIT” (pronounced “S-P-Init”) directory contains source files that can be built to
build an application that will initialize the sandpoint board with autosizing memory and
kernel IO drivers. Unlike the DINK code, SPINIT is streamlined and omits most of the
legacy support. Also contains assembly-language drivers for standard PC-16x50 UART
(such as the MPC8245 and/or Sandpoint motherboard), allowing early access to console
I/O for debugging.
B.12.1 Building
The makefile target is spinit.src. The s-record file code begins at 0x0, allowing it to be
loaded in place of DINK. SPINIT cannot be downloaded and executed (at least, it will not
do anything useful). A more typical use of SPINIT is to add custom modifications and then
to replace DINK, whether with a PromJET flash emulator, a COP debugger download
function, or even just a re-programmed flash. A user can use this code as a starting place
for their own sandpoint monitor code.
B.12.2 Status
Complete except for interrupt handling, and C-language environment is not fully working
(most likely bss copy is not right).
B.13 duart_8245
This test is composed of two directories, duart_8245_driver and duart_8245_isr. These
directories contain source files that can be built to build an application that will use the
duart in the MPC8245. It will read characters from the input stream and echo them to the
output stream via the serial port using the 8245 Duart and EPIC interrupt controller. Read
the src/readme.txt file for information on running this test.
B.13.1 Building
Note:
This code uses two different load addresses, both different from the normal load
address. The driver uses 0x001a0000 and the isr uses 0x001c0000 load addresses. The
makefile forces these load addresses upon the elf and src files. Read the readme.txt files
The code is contained in two directories:
driver—contains the code to build the function that echos the keyboard
isr—interrupt service routine that is connected to the EPIC
1. Build isr_uart1.src in the isr directory:
— cd isr
F
Freescale Semiconductor, Inc.
n
.