Hide thumbs Also See for MPC564EVB:
Table of Contents

Advertisement

Quick Links

MPC564EVB User's Manual
MPC564EVBUM
Rev. 1.2, 3/2003

Advertisement

Table of Contents
loading

Summary of Contents for Motorola MPC564EVB

  • Page 1 MPC564EVB User’s Manual MPC564EVBUM Rev. 1.2, 3/2003...
  • Page 2: Revision History

    Revision History Version Revision Description of Changes Number Date 11/2002 Initial Version 3/2003 Fixed typos. Added appendix describing dBUG ethernet configu- ration. Added appendix for emulating the MPC53X parts. Added 66MHz references.
  • Page 3 Motorola product could create a situation where personal injury or death may occur. Should Buyer purchase or...
  • Page 4 Axiom Manufacturing was negligent regarding the design or manufacture of the part or system. EMC Information on MPC564EVB This product as shipped from the factory with associated power supplies and cables, has been tested and meets with requirements of EN5022 and EN 50082-1: 1998 as a CLASS A product.
  • Page 5 WARNING This board generates, uses, and can radiate radio frequency energy and, if not installed properly, may cause interference to radio communications. As temporarily permitted by regulation, it has not been tested for compliance with the limits for class a computing devices pursuant to Subpart J of Part 15 of FCC rules, which are designed to provide reasonable protection against such interference.
  • Page 7: Table Of Contents

    1.2.2 SRAM ......................1-5 1.2.3 Internal SRAM....................1-5 1.2.4 Internal Flash ....................1-5 1.2.5 MPC564EVB Memory Map................1-5 1.2.5.1 Memory Device / Bank Selection and Configuration........1-6 1.2.5.2 Memory Bank Chip Select Configuration ........... 1-7 1.2.5.3 Reset Vector Mapping.................. 1-7 Support Logic ......................
  • Page 8 The Terminal Character Format............... 2-5 2.2.6 Connecting the Terminal.................. 2-5 2.2.7 Using a Personal Computer as a Terminal............2-5 MPC564EVB Jumper and Switch Setup ............. 2-6 2.3.1 Reset Configuration Word and Configuration Switch (CONFIG_SW) ..2-8 2.3.2 Memory Configuration (MAP_SW).............. 2-10 System Power-up and Initial Operation.............
  • Page 9 Contents Paragraph Page Number Title Number Appendix B Configuring dBUG for Network Downloads Required Network Parameters ................B-1 Configuring dBUG Network Parameters.............B-1 Troubleshooting Network Problems ..............B-2 MOTOROLA MPC564EVB User’s Manual...
  • Page 10 Contents Paragraph Page Number Title Number MPC564EVB User’s Manual MOTOROLA...
  • Page 11: Mpc564 Evb Board

    All special features of the MPC564 are supported. The heart of the evaluation board is the MPC564. The MPC564EVB has 512Kbyte (128K x 32) external SRAM for development or application memory, 2Mbyte (512K x 32) external Flash memory, and numerous hardware expansion possibilities. The MPC564EVB board also provides...
  • Page 12 •Reset Switches – POReset, Hard, Soft reset buttons. •User Components – 4 user LEDs (one with debounce), 4 user Switches, 1 user Potentiometer with socket header for I/O connection. The MPC533/4 has limited or no functionality for this module. See Appendix A MPC564EVB User’s Manual...
  • Page 13: Processor

    Figure 1-1. MPC564EVB top view 1.1 Processor The microprocessor used on the MPC564EVB is the highly integrated Motorola PowerPC MPC564 32-bit microcontroller. The MPC564 implements a PPC ISA core with 512KByte UC3F flash, two UART channels, two Timing Processor Units (TPUs)
  • Page 14: System Memory

    User should note that the debug monitor firmware is installed in this flash device. Development tools or user application programs See Appendix A for block diagram of MPC533/4 MPC564EVB User’s Manual...
  • Page 15: Sram

    MPC564EVB dBUG debugger/monitor firmware (0x0090_0000 to 0x009F_FFFF). 1.2.2 SRAM The MPC564EVB has one 512 KByte device on the board (U2). It’s starting address is 0xFFF0_0000. The synchronous SRAM Memory Bank is composed of one (optional 2) 128K x 32 memory devices.
  • Page 16: Memory Device / Bank Selection And Configuration

    0x0100_0000 - 0x0108_0000 Ethernet 0xFFF0_0000 - 0xFFF8_0000 External SRAM 512KByte 1.2.5.1 Memory Device / Bank Selection and Configuration. The MPC564EVB board has two internal memory banks, two external memory banks and a Peripheral memory bank that provide: MPC564EVB User’s Manual...
  • Page 17: Memory Bank Chip Select Configuration

    External Terminate (TA*) *Default Note Peripheral memory map. 1.2.5.3 Reset Vector Mapping After reset, the processor attempts to execute at physical address 0x0000_0100 if the hard reset configuration word IP bit is cleared to 0 or physical address 0xFFF0_0100 if the hard reset MPC564EVB User’s Manual...
  • Page 18: Support Logic

    Reset chapter for the respective RCW bit definitions. 1.3.2 Clock Circuitry The MPC564EVB board uses a 4MHz crystal (Y1 on the schematics) to provide the clock to the on-chip oscillator of the MPC564. In addition to the 4MHz crystal, there is also a 25MHz oscillator (Y3) which feeds the Ethernet chip (U20).
  • Page 19: Exception Sources

    Programming two interrupt sources with the same level and priority can result in undefined operation. The MPC564EVB hardware uses IRQ[0]/SGPIOC[0] to support the ABORT (Non Maskable Interrupt) function using the ABORT switch (SWITCH1 when BRK_EN jumper is inserted). This switch is used to force a non-maskable interrupt if the user's program execution should be aborted without issuing a RESET.
  • Page 20: Power Oak K/I/S Hardware Options

    VKAM and MPC564 back-up supply options. ‘I’ designated options refer to Interrupt operation options. ‘S’ designated options refer to MPC564 Reset or I/O signal connection options. Following is the summary table (also refer to MPC564EVB schematic): Table 1-3. K/I/S Option Table...
  • Page 21: Communication Ports

    Open The MPC533/4 has limited or no functionality for this module. See Appendix A 1.4 Communication Ports The MPC564EVB provides external interfaces for 2 SCI serial ports, 3 CAN ports and a 10/100T ethernet port. 1.4.1 COM1 and COM2 The MPC564 processor has one queued serial multi-channel module (QSMCM) which provides two serial communications interfaces (SCI/UART).
  • Page 22: Can Ports And Options

    Input 1.4.2 CAN PORTs and Options The MPC564EVB board provides 3 CAN transceivers with I/O ports: CAN_A, CAN_B, and CAN_C. CAN_A is supported by the PC33394 Power Oak CAN transceiver. The CAN_B and CAN_C ports are supported by Philips PCA82C250 1M Baud CAN transceivers. The MPC564 CAN_A port is directly interfaced to the Power Oak transceiver and can not be isolated easily.
  • Page 23 These ports provide the CAN transceiver input and output connection to the CAN bus. No bias or termination for the CAN bus is provided on the MPC564EVB board. If required the user must install these components in the proto area or elsewhere on the CAN bus. Following are the pin...
  • Page 24: 10/100T Ethernet Port

    RJ45 jack J3 of the Ethernet port provides a direct to HUB type connection. The Ethernet cable provided with the MPC564EVB kit is a crossover type for direct connection of the EVB to a PC host network card. If connection to a HUB is desired, a standard Ethernet cable should be applied.
  • Page 25: Bdm And Nexus Development Ports

    IEEE-ISTO 5001 50 pin standard I/O connections and connector and the BDM port provides the standard 10 pin interface (refer to MPC564EVB schematic sheet 3 for details). User should observe that both ports can not be applied at the same time. Note that the NEXUS interface applies some of the MPC564 standard I/O signals from the MIOS module as alternate development port I/O signals.
  • Page 26: Nexus Connector

    Signal Signal Number Number Signal Signal — UBATT UBATT — VSTBY2.6 VSTBY IN or TOOL_IO0 — — TOOL_IO1 IN or IN or TOOL_IO2 — HRESET /RESET VREF VDD2.6 EVTI /EVTI — RSTI /RSTI MSEI /MSEI — 1-16 MPC564EVB User’s Manual...
  • Page 27 On the MPC56x devices, some of the Nexus signals are shared with other pin functions. MPC56x Signal Sharing shows the Nexus signal versus the MPC561/562/563/564 pins. Table 1-7. MPC56x Signal Sharing MPC561/562/563/564 Nexus Signal Signal Ball /RESET HRESET /RSTI JCOMP/RSTI MPC564EVB User’s Manual 1-17...
  • Page 28 — — TOOL_IO1 — — TOOL_IO2 — — VREF VDD2.6 VALTREF VSTBY VSTBY2.6 Pin MPWM[18]/MDO[6] (H24) could also be used, but is not enabled at reset and must be enabled via software. This is not recommended. 1-18 MPC564EVB User’s Manual...
  • Page 29: Connectors And User Components

    Read and Write capability for LCD module command and data bytes without the CPU waiting for LCD access time. LCD Port access are performed as a 3 or 4 bus cycle transaction as follows: The MPC533/4 has limited or no functionality for this module. See Appendix A MPC564EVB User’s Manual 1-19...
  • Page 30 See the schematic to match this jumper setting to your LCD device connector. Contact support@axman.com for assistance applying a LCD module. Typical JP2 positions for 80 character or smaller LCD. Rotate 90 degrees for 160 character type modules. 1-20 MPC564EVB User’s Manual...
  • Page 31: User Components

    Monitor command prompt. When the option jumper is installed, depressing SW1 will cause a low active level to be applied to the MPC564 IRQ0. 1.5.4 MPC564EVB Hardware Options XFC Filter Capacitor C3 Capacitor C3 provides the XFC filtering for the PLL circuits. The capacitor may be changed by the user if PLL locking problems are experienced at the frequency of operation selected or if the reference crystal is replaced.
  • Page 32: Signals Available On Board

    QADC_A Port. EPEE and BOEPEE CUTAWAY E0 The MPC564EVB board has the EPEE and BOEPEE signals connected by CUT_AWAY pad E0. This connection is for NEXUS port programming of the MPC564 internal flash. This connection will cause the CONFIG_SW position 7 or 8 to enable both signals.
  • Page 33: Tpu_Ports

    The TPU (Timing Processor Unit) Ports provide access to the MPC564 TPU A, and B channels on 2 identical socket headers, TPU PORT A, and TPU PORT B. The MPC533/4 has limited or no functionality for this module. See Appendix A MPC564EVB User’s Manual 1-23...
  • Page 34: Control_Port

    The CONTROL Port provides access to the MPC564 chip selects, bus controls, resets, clocks, and other signals on a 40 pin header. CONTROL PORT SIGNAL SIGNAL ALTREF BOEPEE EPEE TSIZ1 TSIZ0 BURST BDIP PULL_SEL RSTCONF* SRESET EXTCLK HRESET PORESET ENGCLK CLKOUT 1-24 MPC564EVB User’s Manual...
  • Page 35: Mios_Port

    NEXUS MSEO / MGPIO3 MGPIO2 NEXUS MSEI BDM VFLS1 (V3 option) NEXUS MCKO MGPIO1 MGPIO0 NEXUS MDO_1 NEXUS MDO_7 MPWM19 MPWM18 NEXUS MDO_3 MPWM17 MPWM16 MPWM3 MPWM2 NEXUS MDO_2 MPWM1 MPWM0 NEXUS MDI_1 MDA31 MDA30 MDA29 MDA28 MPC564EVB User’s Manual 1-25...
  • Page 36: Qadc_Ports

    A_PQB3/AN3 A_PQA3/AN55 A_PQB2/AN2 A_PQA2/AN54 A_PQB1/AN1 A_PQA1/AN53 A_PQB0/AN0 A_PQA0/AN52 QADC_B SIGNAL SIGNAL AN87 AN86 AN85 AN84 AN83 AN82 AN81 AN80 B_PQB7/AN51 (Keypad) B_PQA7/AN59 (Keypad) The MPC533/4 has limited or no functionality for this module. See Appendix A 1-26 MPC564EVB User’s Manual...
  • Page 37: Qsm_Port

    The Mictor Ports are not installed at the factory but are available to apply the HP logic analysis system. The Mictor 1 – 3 positions provide address and data bus connections for the HP system. See schematic sheet 3 for details of the connections. MPC564EVB User’s Manual 1-27...
  • Page 38: Reference Documents

    The user can set this by changing the PLL Registers of the MPC564 in software. Software development on the MPC564EVB is best performed using a development tool connected to the BDM-PORT or NEXUS connector. This provides real-time access to all hardware, peripherals and memory on the board.
  • Page 39: Chapter 2 Initialization And Setup

    Chapter 2 Initialization and Setup 2.1 System Configuration The MPC564 board requires the following items for minimum system configuration: • The MPC564EVB board (provided). • Power supply (provided). • RS232 compatible terminal or a PC with terminal emulation software. •...
  • Page 40 System Configuration dBUG> 6 - 26 V Input Power RS-232 Terminal Or PC Figure 2-1. Minimum System Configuration MPC564EVB User’s Manual...
  • Page 41: Installation And Setup

    You should have received: • MPC564EVB Single Board Computer • MPC564EVB User's Manual (this document) • One RS232 9-pin Serial Cable • One CAT5E Ethernet cable, crossover type •...
  • Page 42 Installation And Setup The Motorola MPC500 Family companion power supply Power Oak (PC33394) is provided on the EVB board. This device provides many features designed for automotive applications but may also be useful for industrial or general purpose applications. See the PC33394 data sheet for full description of features, operation, and capability.
  • Page 43: Selecting Terminal Baud Rate

    The board is now ready to be connected to a PC/terminal. Use the RS232 serial cable to connect the PC/terminal to the MPC564EVB at COM-1. The cable has a 9-pin female D-sub terminal connector at one end and a 9-pin male D-sub connector at the other end. Connect the 9-pin male connector to connector COM-1 on the MPC564EVB board.
  • Page 44: Mpc564Evb Jumper And Switch Setup

    Pin 5 = Ground/Vss/Common Pin 7 and 8 = group connected for RTS/CTS flow control null back to host Pin 9 = open 2.3 MPC564EVB Jumper and Switch Setup Jumper settings are as follows: Note ‘*’ is used to indicate that default setting.
  • Page 45 MPC564EVB Jumper and Switch Setup Table 2-2. Jumper Settings (Continued) Jumper Setting Function removed SWITCH1 is for user use B_RX *insterted CAN: see Section 1.4.2, “CAN PORTs and Options removed CAN: see Section 1.4.2, “CAN PORTs and Options C_TX inserted CAN: see Section 1.4.2, “CAN PORTs and Options...
  • Page 46: Reset Configuration Word And Configuration Switch (Config_Sw)

    MPC564EVB Jumper and Switch Setup Figure 2-3. Jumper Locations on the Board 2.3.1 Reset Configuration Word and Configuration Switch (CONFIG_SW) Configuration Switch provides several key external Reset Configuration Word (RCW)options and the programming enable options for programming the MPC564 internal flash memory. These switches provide a logic 0 or low level when off and a logic 1 or high level when on.
  • Page 47 MPC564EVB Jumper and Switch Setup configuration options are only presented to the data bus during Hard Reset if enabled by CONFIG switch position 1. Note that MAP switch also has positions (5 and 8) that are part of the Reset Configuration Word.
  • Page 48: Memory Configuration (Map_Sw)

    RW0, RW2, RW4 – 18, RW23 – 30 provide the user access to external Reset Configuration Word (RCW) bits not normally required for default MPC564EVB operation. The RW0 – 30 designations reflect the data bus D0 – D30 bit affected when the RCW word is enabled externally. All RW0 –...
  • Page 49 System Power-up and Initial Operation dBUG> The board is now ready for operation under the control of the debugger as described in Chapter 3. If you do not get the above response, perform the following checks: 1. Make sure that the power supply is properly configured for polarity, voltage level and current capability (~300mA) and is connected to the board.
  • Page 50 System Power-up and Initial Operation 2-12 MPC564EVB User’s Manual...
  • Page 51: Using The Monitor/Debug Firmware

    Chapter 3 Using the Monitor/Debug Firmware The MPC564EVB single board computer has a resident firmware package that provides a self-contained programming and operating environment. The firmware, named dBUG, provides the user with monitor/debug interface, inline assembler and disassembly, program download, register and memory manipulation, and I/O control functions.
  • Page 52: Operational Procedure

    System power-up and initial operation are described in detail in Chapter 2. This information is repeated here for convenience and to prevent possible damage. 3.2.1 System Power-up • Be sure the power supply is connected properly prior to power-up. • Make sure the terminal is connected to RS232 COM-1 connector. MPC564EVB User’s Manual...
  • Page 53 Operational Procedure • Make sure the IP bit is set (switch 5 ON in MAP_SW). This will cause the board to boot out of external flash (where the dBUG code resides). • Turn power on to the board. Chapter 3. Using the Monitor/Debug Firmware...
  • Page 54: System Initialization

    The act of powering up the board will initialize the system. The processor is reset and dBUG is invoked. dBUG performs the following configurations of internal resources during the initialization. The IP bit is set by default, placing the vector table at 0xFFF0_0000 (external SRAM). To take over an MPC564EVB User’s Manual...
  • Page 55: Hard Reset Button

    If you did not get this response check the setup, refer to Section 2.4, “System Power-up and Initial Operation”. Other means can be used to re-initialize the MPC564EVB Computer Board firmware. These means are discussed in the following paragraphs. 3.2.2.1 Hard RESET Button.
  • Page 56: Command Line Usage

    <-r> <-c count> <-t trigger> Breakpoint bs <width> begin end data Block Search dc value Data Convert di<addr> Disassemble dl <offset> Download Serial DLDBUG dldbug Download dBUG dn <-c> <-e> <-i> <-s <-o offset>> <filename> Download Network MPC564EVB User’s Manual...
  • Page 57 Commands Table 3-1. dBUG Command Summary MNEMONIC DESCRIPTION SYNTAX fl <command> dest <src> size Erase/Program External Flash go <addr> Execute gt addr Execute To hbr addr <-r> Hardware Breakpoint HELP help <command> Help ird <module.register> Internal Register Display irm module.register data Internal Register Modify lr<width>...
  • Page 58 The statement is the assembled, and if valid, placed into memory, otherwise an error message is produced. Examples: To place a NOP instruction at address 0x0001_0000, the command is: 10000 nop To interactively assembly memory at address 0x0040_0000, the command is: 400000 MPC564EVB User’s Manual...
  • Page 59 Commands Block Compare Usage: BC addr1 addr2 length The BC command compares two contiguous blocks of memory on a byte by byte basis. The first block starts at address addr1 and the second starts at address addr2, both of length bytes. If the blocks are not identical, the address of the first mismatch is displayed.
  • Page 60 To zero out the BSS section of the target code (defined by the symbols bss_start and bss_end), the command is: bss_start bss_end 0 To fill a block of memory starting at 0xFFF2_0000 and ending at 0xFFF4_0000 with data that increments by 2 for each <width>, the command is: FFF20000 FFF40000 0 2 3-10 MPC564EVB User’s Manual...
  • Page 61 Commands Block Move Usage: BM begin end dest The BM command moves a contiguous block of memory starting at address begin and stopping at address end to the new address dest. The BM command copies memory as a series of bytes, and does not alter the original block.
  • Page 62 To set a breakpoint at the C function bench() and set its trigger value to 3, the command is: _bench -t 3 When the target code is executed, the processor must attempt to execute the function bench() a third time before returning control back to dBUG. To remove all breakpoints, the command is: 3-12 MPC564EVB User’s Manual...
  • Page 63 Commands Block Search Usage: BS<width> begin end data The BS command searches a contiguous block of memory starting at address begin, stopping at address end, for the value data. <Width> modifies the size of the data that is compared during the search.
  • Page 64 All values are treated as 32-bit quantities. Examples: To display the decimal and binary equivalent of 0x1234, the command is: 0x1234 To display the hexadecimal and binary equivalent of 1234, the command is: 1234 3-14 MPC564EVB User’s Manual...
  • Page 65 Commands Disassemble Usage: DI <addr> The DI command disassembles target code pointed to by addr. The value for addr may be an absolute address specified as a hexadecimal value, or a symbol name. Wherever possible, the disassembler will use information from the symbol table to produce a more meaningful disassembly.
  • Page 66 Examples: To download an S-record file through the serial port, the command is: To download an S-record file through the serial port, and add an offset to the destination address of 0x40, the command is: 0x40 3-16 MPC564EVB User’s Manual...
  • Page 67 Usage: DLDBUG The DLDBUG command will download the dBUG monitor to the MPC564EVB board. First it will erase all sectors of Flash that dBUG occupies, then it will download the code through the serial port. Upon asking if the user is sure they want to do this, the user should respond by typing “yes” if they want to continue. The DLDBUG command will work at baud rates up to and including 57600.
  • Page 68 To download a COFF file with the name “coff.out”, the command is: dn -c coff.out To download a file using the default filetype with the name “bench.out”, the command is: dn bench.out To download a file using the default filename and filetype, the command is: 3-18 MPC564EVB User’s Manual...
  • Page 69 Commands Erase/Program Flash Usage: FL (e)rase addr bytes FL (w)rite dest src bytes The FL command is used to erase the external flash, write to external flash, and display flash device information. Erase and Write operations must be done in sector blocks. dBUG assumes that the user has erased enough memory before writing to it.
  • Page 70 To execute code at the current program counter, the command is: To execute code at the C function main(), the command is: go _main To execute code at the address 0x0004_0000, the command is: go 40000 3-20 MPC564EVB User’s Manual...
  • Page 71 Commands Execute To Usage: GT addr The GT command inserts a temporary software breakpoint at addr and then executes target code starting at the current program counter. The value for addr may be an absolute address specified as a hexadecimal value, or a symbol name. When the GT command is executed, all breakpoints are inserted into the target code, and the context is switched to the target program.
  • Page 72 Examples: To obtain a listing of all the commands available within dBUG, the command is: help To obtain help on the breakpoint command, the command is: help br 3-22 MPC564EVB User’s Manual...
  • Page 73 Commands Internal Register Display Usage: IRD <module.register> This command displays the internal registers of different modules inside the MPC500. In the command line, module refers to the module name where the register is located and register refers to the specific register to display. The registers are organized according to the module to which they belong.
  • Page 74 MPC500 are USIU, TPU_A, TPU_B, QADC_A, QADC_B, QSMCM_A, MIOS14, CAN_A. Refer to the MPC564 user’s manual for more information on these modules and the registers they contain. Example: To modify the PCPRCR in the USIU to the value 0x0091_4000, the command is: usiu.plprcr 914000 3-24 MPC564EVB User’s Manual...
  • Page 75 Commands Loop Read Usage: LR<width> addr The LR command continually reads the data at addr until a key is pressed. The optional <width> specifies the size of the data to be read. If no <width> is specified, the command defaults to reading word sized data.
  • Page 76 The default access size is a word. Examples: To continually write the data 0x1234_5678 to address 0xFFF2_0000, the command is: FFF20000 12345678 Note that the following command writes 0x78 into memory: lw.b FFF20000 12345678 3-26 MPC564EVB User’s Manual...
  • Page 77 Commands Memory Display Usage: MD<width> <begin> <end> The MD command displays a contiguous block of memory starting at address begin and stopping at address end. The values for addresses begin and end may be absolute addresses specified as hexadecimal values, or symbol names. Width modifies the size of the data that is displayed. If no <width>...
  • Page 78 Thus, for the duration of the operation, this command performs properly-aligned memory accesses. Examples: To set the byte at location 0xFFF1_0000 to be 0xFF, the command is: mm.b FFF10000 FF To interactively modify memory beginning at 0xFFF1_0000, the command is: FFF10000 3-28 MPC564EVB User’s Manual...
  • Page 79 Commands MMAP Memory Map Display Usage: mmap This command displays the memory map information for the MPC564 evaluation board. The information displayed includes the type of memory, the start and end address of the memory, and the port size of the memory. The display also includes information on how the Chip-selects are used on the board.
  • Page 80 00000000 003FFF00 00000000 00000000 00000000 00000000 00000000 00000000 r08-15: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 r16-23: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 r24-31: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 3-30 MPC564EVB User’s Manual...
  • Page 81 Commands Register Modify Usage: RM reg data The RM command modifies the contents of the register reg to data. The value for reg is the name of the register, and the value for data may be a symbol name, or it is converted according to the user-defined radix, normally hexadecimal.
  • Page 82 The RESET command executes the same sequence of code that occurs at power-on. If the RESET command fails to reset the system adequately, cycle the power or press the reset button. Examples: To reset the board and clear the dBUG data structures, the command is: reset 3-32 MPC564EVB User’s Manual...
  • Page 83 The default is 56MHz. The only clock speeds supported in dBUG are 40, 56, and 66 MHz (not every MPC564EVB supports 66MHz. Make sure you have a MPC564CZP66 processor before switching to this speed).
  • Page 84 To display the current baud rate of the board, the command is: show baud Here is an example of the output from a show command: dBUG> show base: 16 baud: 19200 server: 192.0.0.1 client: 192.0.0.2 gateway: 0.0.0.0 netmask: 255.255.255.0 filename: test.srec filetype: S-Record mac: 00:CF:52:49:C3:01 speed: 56000000 3-34 MPC564EVB User’s Manual...
  • Page 85 Commands STEP Step Over Usage: STEP The STEP command can be used to “step over” a subroutine call, rather than tracing every instruction in the subroutine. The ST command sets a temporary software breakpoint one instruction beyond the current program counter and then executes the target code. This command only works when executing code in SRAM.
  • Page 86 -a main FFF40000 To remove the symbol “junk” from the table, the command is: symbol -r junk To see how full the symbol table is, the command is: symbol To display the symbol table, the command is: symbol 3-36 MPC564EVB User’s Manual...
  • Page 87 Commands TRACE Trace Into Usage: TRACE <num> The TRACE command allows single-instruction execution. If num is provided, then num instructions are executed before control is handed back to dBUG. The value for num is a decimal number. The TRACE command sets bits in the processors’ supervisor registers to achieve single-instruction execution, and the target code executed.
  • Page 88 The version date is the day and time at which the entire dBUG monitor was compiled and built. Examples: To display the version of the dBUG monitor, the command is: version 3-38 MPC564EVB User’s Manual...
  • Page 89: System Call Functions

    System Call Functions 3.5 System Call Functions An additional utility within the dBUG firmware is a function called the System Call handler. This function can be called by the user program to utilize various routines within dBUG, to perform a special task, and to return control to dBUG.
  • Page 90: In_Stat

    "addi r10,r0,0x0040"); asm( "sc"); 3.5.5 ISR_REMOVE This function’s code is 0x0041. For ISR_REMOVE, the vector is in r3. Nothing is returned. Assembly example: addi r10, r0, 0x0041 Selects the function The character is returned in r3 3-40 MPC564EVB User’s Manual...
  • Page 91: Exit_To_Dbug

    System Call Functions C example: board_isr_remove (void *handler) asm( "addi r10,r0,0x0041"); asm( "sc"); 3.5.6 EXIT_TO_dBUG This function transfers the control back to the dBUG, by terminating the user code. The register context is preserved. C example (see “scif.s”file : anything in R10 besides 0x0000, 0x0001, 0x0020, 0x0030, 0x0031, 0x0040, 0x0041): asm( "addi...
  • Page 92 System Call Functions 3-42 MPC564EVB User’s Manual...
  • Page 93: Mpc533/534 Emulation

    Appendix A MPC533/534 Emulation The MPC564EVB can be used to emulate the MPC533 and MPC534 processors. This appendix will highlight the differences between the processors. Several modules present in the MPC564 are not available in the MPC533/4, so the user should not reference those modules.
  • Page 94 Block Diagram Figure A-1. Block Diagram of the MPC533/4 512 Kbytes JTAG Flash* Burst Buffer Controller 2 U-BUS DECRAM E-BUS (2Kbytes) USIU MPC500 Nexus Core L-BUS 32K CALRAM 28 Kbytes 4-Kbyte Overlay UIMB QSMCM QADC64E IMB3 MIOS14 MPC564EVB User’s Manual...
  • Page 95: B.1 Required Network Parameters

    B.2 Configuring dBUG Network Parameters Once the network parameters have been obtained, the dBUG Rom Monitor must be configured. The following commands are used to configure the network parameters. set client <client IP> set server <server IP> MPC564EVB User’s Manual...
  • Page 96: B.3 Troubleshooting Network Problems

    Most problems related to network downloads are a direct result of improper configuration. Verify that all IP addresses configured into dBUG are correct. This is accomplished via the ‘show ’command. Using an IP address already assigned to another machine will cause dBUG network download to MPC564EVB User’s Manual...
  • Page 97 Reset the board, and wait one minute for the TFTP server to time out and terminate any open connections. Verify that the IP addresses for the server and gateway are correct. Also verify that a TFTP server is running on the server. MPC564EVB User’s Manual...
  • Page 98 Troubleshooting Network Problems MPC564EVB User’s Manual...

Table of Contents