
MOTOROLA
Chapter 2. Using DINK
2-5
DINK Model
sportal open
sportal sim_stdall term
ld obj/edink.src
2.3.2
Running eDINK on MPC8540 ISS
1. Read the MPC8540 ISS for environment setup and other requirements
2.
Load the edink image using the simulator’s load command
3. Run the edink image using the simulator’s run command
NOTE: The MPC8540 ISS doesn’t support the sportal. However, the simulator must be run
with the -s option to enable a serial terminal.
2.3.3
Loading Application Elf Binary to Simulated EDINK
The best way to load an application to edink is through the simulator. The same commands
used to load edink into the simulator can be used to load an application elf binary. It is
important that the application be linked at 0x1000000 as there is no option in the simulator
for an offsetted load.
2.4
DINK Model
There are two sets of registers maintained in DINK32. One for DINK and one for the user.
While the user is running DINK32, the DINK register set is active in the hardware. The
user register set is maintained in a table. Register commands access this user table. When
the user does a go or trace command, the DINK hardware registers are stored in the DINK
table and the user registers are loaded from the table into the hardware. Then control is
transferred to the user program. Whenever control is returned to DINK, either via an error
or a step or user code completion, the registers are again swapped.
2.5
Interacting with DINK
When DINK has successfully initialized the target platform, it then starts up the DINK shell
which can be used to execute many built-in tasks (modify/display memory, assemble
programs) or can execute downloaded or flash-resident commands.
While using the DINK shell, terminal emulators that support VT102-sequences can be used
to map the up, down, left, and right arrows. Up and down arrows recall previously executed
commands from the ‘history buffer’ (a list of each command entered). Right and left
arrows, as well as the backspace and DEL keys can be used to move the cursor and edit the
line.
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.