Firmware
Loading Application Software
PPC/PMC-8260/DS1
4 - 11
Argument Passed to ROM Image
The firmware passes a single argument to the ROM image in register r3. The value
depends on the start type:
•
When performing a cold start at power up, the firmware passes a value of 2 to
the ROM image.
•
When performing a warm start, the firmware preserves the register r3 and uses
it as argument to the ROM image.
Execution of ROM Image
The firmware executes a ROM image either directly from the ROM or after copy-
ing it to the RAM. The following example code outlines how this procedure is per-
formed:
If FLAGS:SHADOW is 0
If SYPCR_WR is 0
Write SYPCR_VAL to SYPCR register
Set LEDs to GREEN/OFF
Jump to ROM image offset 108
16
(address fe04.0108
16
)
If FLAGS:SHADOW is 1
If FLAGS:SMODE is 0
Copy block [fe04.0100
16
:fe20.0000
16
[ to RAM_ADRS
else
Copy block [fe04.0000
16
:fe20.0000
16
[ to RAM_ADRS
If SYPCR_WR is 0
Write SYPCR_VAL to SYPCR register
Set LEDs to GREEN/OFF
If RAM_EXEC is within the address range of the copied image
Jump to RAM address RAM_EXEC
else
Jump to R108
16
F4
16
4
SYPCR_VAL
Enter the value to be programmed in the SYPCR register
of the PowerQUICC II before the ROM image is exe-
cuted. For this purpose, SYPCR_WR must be set to 0.
For register settings, see the
MPC8260 PowerQUICC II
User’s Manual
.
F8
16
4
RAM_ADRS
Address to which the ROM image is copied to, if
FLAGS:SHADOW is set to 0.
FC
16
4
RAM_EXEC
Address at which the firmware has to begin code execu-
tion.
Table 11:
ROM Image Configuration Section (cont.)
Offset
Bytes
Mnemonic
Description
Summary of Contents for PPC/PMC-8260/DS1
Page 1: ...PPC PMC 8260 DS1 Reference Guide P N 6806800B10A July 2006 ...
Page 8: ...viii PPC PMC 8260 DS1 ...
Page 22: ...xxii PPC PMC 8260 DS1 ...
Page 26: ...xxvi PPC PMC 8260 DS1 ...
Page 30: ...xxx PPC PMC 8260 DS1 ...
Page 31: ...1 Introduction ...
Page 32: ......
Page 39: ...2 Installation ...
Page 40: ......
Page 53: ...3 Indicators and Connectors ...
Page 54: ......
Page 64: ...On Board Connectors Indicators and Connectors 3 12 PPC PMC 8260 DS1 ...
Page 65: ...4 Firmware ...
Page 66: ......
Page 104: ...Code Examples Firmware 4 40 PPC PMC 8260 DS1 ...
Page 105: ...5 Memory Map and Devices ...
Page 106: ......
Page 132: ...Resetting the Devices Memory Map and Devices 5 28 PPC PMC 8260 DS1 ...
Page 133: ...6 TDM Channel Configuration ...
Page 134: ......
Page 145: ...A Troubleshooting ...
Page 146: ......
Page 148: ...A 4 PPC PMC 8260 DS1 ...
Page 150: ...I 2 PPC PMC 8260 DS1 ...