Introduction

Demonstration of the Host Interface

The following example demonstrates the use of PPCBug’s Remote Start capability in a CPCI system. In this example, a simple program is loaded into the local memory of a (non-system) target board, the MCPN750A. The CPCI system host board (an MCP750) then uses the PCI Remote Start interface to initiate execution of the program by the target board.

A simple program is loaded into the local memory of the target board. This program performs the following steps:

1.prints a string to the target console,

2.sets the OWN bit in the Command/Response channel register (relinquishes target ownership of the command channel), and

3.properly returns to the PPC1Bug prompt.

In this example, user interaction takes place on both the host and target consoles. The console display examples are identified as “ MCP750 (host) Console,” and “ MCPN750A (target) Console,” respectively. Note that reads and writes to the PCI Remote Start Command/Response channel look a little unusual because the display is of the little endian representation of the data, i.e., Command Channel data entered on the PPC1Bug command line as $02800075 is stored in PCI memory (DEC 2155x registers) as $75008002.

Make a string in memory to be displayed on the target console:

MCPN750A (target) Console

PPC1-Bug>bf 4000:10000 0<cr>

Effective address: 00004000

Effective count : &262144

PPC1-Bug>md 40100:8<cr>

00040100 00000000 00000000 00000000 00000000 ................

00040110 00000000 00000000 00000000 00000000 ................

PPC1-Bug>ms 40100 ’XYOU_DA_MAN!’<cr>

PPC1-Bug>md 40100:8<cr>

00040100 58594F55 5F44415F 4D414E21 00000000 XYOU_DA_MAN!....

00040110 00000000 00000000 00000000 00000000 ................

PPC1-Bug>m 40100;b<cr> 00040100 58? b=<cr>

5

http://www.motorola.com/computer/literature

5-9

Page 99
Image 99
Motorola IH5 manual Demonstration of the Host Interface, MCPN750A target Console