Motorola MPC564EVB User Manual
Motorola MPC564EVB User Manual

Motorola MPC564EVB User Manual

Evaluation board
Hide thumbs Also See for MPC564EVB:
Table of Contents

Advertisement

Quick Links

MPC564EVB User's Manual
MPC564EVBUM
Rev. 1.0, 09/2002

Advertisement

Table of Contents
loading

Summary of Contents for Motorola MPC564EVB

  • Page 1 MPC564EVB User's Manual MPC564EVBUM Rev. 1.0, 09/2002...
  • Page 2 Motorola product could create a situation where personal injury or death may occur. Should Buyer purchase or...
  • Page 3 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 4 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 5: 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 6 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 7: Mpc564Evb 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.
  • Page 8 •System Indicators – Reset Indicator, Supply voltage indications for 5V, 3.3V, and 2.6V supplies •Reset Switches – POR, 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. MPC564EVB User’s Manual PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE...
  • Page 9: 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 512 KByte UC3F flash, two UART channels, two Timing Processor Units (TPUs), 32 KBytes of SRAM, a QSPI...
  • Page 10: System Memory

    BDM or Nexus. User should use caution to avoid this situation. The upper 1 MByte is used to store the MPC564EVB dBUG debugger/monitor firmware (0x0090_0000 to 0x009F_FFFF).
  • Page 11: Sram

    System Memory 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. These memory devices are connected in linear order from U2 to U3 if more than one is available, so that the low order address of the memory bank will access U2 and the high order addresses of the memory bank will access U3.
  • Page 12: Memory Device / Bank Selection And Configuration

    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: • Internal SRAM • MPC564 512K byte Internal FLASH Memory (U1) •...
  • Page 13: Memory Bank Chip Select Configuration

    ROM to start at 0x0080_0000 and configures the rest of the internal and external peripherals. Please refer to the MPC561/563 user’s manual section 10.7 (Global (Boot) Chip-Select Operation) for more information. Chapter 1. MPC564EVB Board PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE...
  • Page 14: 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 15: Ta Generation

    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 16: 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 17: Communication Ports

    VREF3 EPEE Open 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 18: 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 19: 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 20: 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 21: Bdm Port Options

    JP3 provides the option of 2.6V or 3.3V interface levels on the BDM port. This allows the use of legacy MPC555 BDM tools on the MPC564. The option is set for 3.3V interface from the factory. The following JP3 reference is with the MPC564EVB setting with the COM ports facing left. ♦...
  • Page 22 MDO7 — — MDI2 — — MDI3 — EPEE & B0EPEE VENDOR_IO1 IN or — The Nexus specification labels active low signals with a forward slash (/) before the signal name. 1-16 MPC564EVB User’s Manual PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE...
  • Page 23 MCKO VF[1]/MPIO32B[1]/ MCKO /MSEO VFLS[0]/MPIOB32[3]/ MSEO MDO0 TDO/DSDO/MDO[0] MDO1 VF[0]/MPIO32B[0]/ MDO[1] MDO2 MPWM[1]/MDO[2] MDO3 MPWM[17]/MDO[3] MDO4 IRQ[0]/SGPIO[0]/ MDO[4] MDO5 MPIO32B[5]/MDO[5] MDO6 MPIO32B[6]/ MPWM[4]/MDO[6] MDO7 MPWM[19]/MDO[7] /EVTO BG/VF[0]/LWP[1] PORT0 — — Chapter 1. MPC564EVB Board 1-17 PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE...
  • Page 24: Connectors And User Components

    Sample software for driving the Keypad Port is provided on the MPC5xx support CD. Table 1-8. Keypad MPC564 I/O SIGNAL QADC_B PQA4 out QADC_B PQA5 out QADC_B PQA6 out QADC_B PQA7 out 1-18 MPC564EVB User’s Manual PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE...
  • Page 25: Lcd Port

    LCD Data Byte D7 > D0, Write output to LCD if D7 = 0, Read input if D7 = 1. See LCD Module data sheet for command codes Example source code for the LCD and Keypad drivers are provided on the Axiom MPC5xx support Chapter 1. MPC564EVB Board 1-19 PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE...
  • Page 26: User Components

    Active Low, also drives BRK_EN option Active high, +5V Active high, +5V Active high, +5V LED1 Active High LED2 Active High LED3 Active High LED4 Active High RV1 – Center Tap 0 – 5V 1-20 MPC564EVB User’s Manual PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE...
  • Page 27: Mpc564Evb Hardware Options

    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 28: Bus_Port

    Connectors and User Components 1.5.5.2 BUS_PORT The BUS Port provides the data and address line access to the MPC564 memory bus on a 60 pin header. BUS PORT SIGNAL SIGNAL +2.6V 1-22 MPC564EVB User’s Manual PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE...
  • Page 29: Tpu_Ports

    1.5.5.4 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 Chapter 1. MPC564EVB Board 1-23 PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE...
  • Page 30: Mios_Port

    The port has many multiplexed pins so the auxiliary signal connections are also provided for reference. MIOS PORT AUX SIGNAL SIGNAL SIGNAL AUX SIGNAL MGPIO15 MGPIO14 MGPIO13 MGPIO12 CAN_C TX CAN_C RX MGPIO11 MGPIO10 MGPIO9 MGPIO8 MGPIO7 MGPIO6 NEXUS MDO_6 1-24 MPC564EVB User’s Manual PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE...
  • Page 31: Qadc_Ports

    B channels on to socket headers, QADC_A and QADC_B. QADC_A SIGNAL SIGNAL ETRIG2 ETRIG1 A_PQB7/AN51 A_PQA7/AN59 A_PQB6/AN50 A_PQA6/AN58 A_PQB5/AN49 A_PQA5/AN57 A_PQB4/AN48 A_PQA4/AN56 A_PQB3/AN3 A_PQA3/AN55 A_PQB2/AN2 A_PQA2/AN54 A_PQB1/AN1 A_PQA1/AN53 A_PQB0/AN0 A_PQA0/AN52 Chapter 1. MPC564EVB Board 1-25 PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE...
  • Page 32: Qsm_Port

    B_CANRX B_CANTX CAN_B CAN_A A_CANRX A_CANTX CAN_A COM2 RXD2 RXD1 COM1 COM2 TXD2 TXD1 COM1 POWER OAK POWER OAK MOSI MISO POWER OAK PCS3 PCS2 POWER OAK PCS1 PCS0 / SS 1-26 MPC564EVB User’s Manual PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE...
  • Page 33: Mictor 1 - 3 Ports

    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 34 Software Development 1-28 MPC564EVB User’s Manual PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE...
  • Page 35: Chapter 2 Initialization And Setup

    Chapter 2 Initialization and Setup 2.1 System Configuration The MPC564EVB 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 36 System Configuration dBUG> 6 - 26 V Input Power RS-232 Terminal Or PC Figure 2-1. Minimum System Configuration MPC564EVB User’s Manual PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE...
  • Page 37: 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 38 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 application 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 39: 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 40: 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 41 MPC564EVB Jumper and Switch Setup Table 2-2. Jumper Settings (Continued) Jumper Setting Function C_TX inserted CAN: see section 1.3.2 *removed CAN: see section 1.3.2 C_RX inserted CAN: see section 1.3.2 *removed CAN: see section 1.3.2 100_IRQ *inserted Ties the interrupt line from the Ethernet chip to...
  • Page 42: Reset Configuration Word And Configuration Switch (Config_Sw)

    MPC564EVB Jumper and Switch Setup 100_IRQ BRK_EN 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 43 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 44: 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 45 System Power-up and Initial Operation The board is now ready for operation under the control of the debugger as described in Chapter 2. 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 46 System Power-up and Initial Operation 2-12 MPC564EVB User’s Manual PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE...
  • Page 47: 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 48: Operational Procedure

    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 PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE...
  • Page 49 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 PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE...
  • Page 50: 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 PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE...
  • Page 51: 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 52: 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 dn <-c> <-e> <-i> <-s <-o offset>> <filename> Download Network go <addr> Execute MPC564EVB User’s Manual PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE...
  • Page 53 Commands Table 3-1. dBUG Command Summary MNEMONIC DESCRIPTION SYNTAX gt addr Execute To HELP help <command> Help ird <module.register> Internal Register Display irm module.register data Internal Register Modify lr<width> addr Loop Read lw<width> addr data Loop Write md<width> <begin> <end> Memory Display mm<width>...
  • Page 54 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 PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE...
  • Page 55 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 56 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 PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE...
  • Page 57 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 58 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 PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE...
  • Page 59 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 60 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 PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE...
  • Page 61 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 62 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 PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE...
  • Page 63 Commands Download Network Usage: DN <-c> <-e> <-i> <-s> <-o offset> <filename> The DN command downloads code from the network. The DN command handle files which are either S-record, COFF, ELF or Image formats. The DN command uses Trivial File Transfer Protocol (TFTP) to transfer files from a network host.
  • Page 64 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-18 MPC564EVB User’s Manual PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE...
  • Page 65 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 66 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: usiu.plprcrk 3-20 MPC564EVB User’s Manual PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE...
  • Page 67 Commands Internal Register Modify Usage: IRM module.register data This command modifies the contents of 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 modify. The data parameter specifies the new value to be written into the register.
  • Page 68 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 PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE...
  • Page 69 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 70 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-24 MPC564EVB User’s Manual PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE...
  • Page 71 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 72 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-26 MPC564EVB User’s Manual PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE...
  • Page 73 Commands MMAP Memory Map Display Usage: mmap This command displays the memory map information for the M5249C3 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 74: Rd Register Display

    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-28 MPC564EVB User’s Manual PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE...
  • Page 75 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 76 The RESET command executes the same sequence of code that occurs at power-on. If the RESET command fails to reset the board 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-30 MPC564EVB User’s Manual PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE...
  • Page 77 Commands Set Configurations Usage: SET <option value> The SET command allows the setting of user-configurable options within dBUG. With no arguments, SET displays the options and values available. The SHOW command displays the settings in the appropriate format. The standard set of options is listed below. •...
  • Page 78 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 3-32 MPC564EVB User’s Manual PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE...
  • Page 79 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. The STEP command can be used to “step over”...
  • Page 80 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-34 MPC564EVB User’s Manual PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE...
  • Page 81 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 82 Flash). The user’s code should be at address 0xFFF08000 and then will be uploaded to internal flash starting at address 0x0000_0000. Example: To program all sectors of user UC3FFlash, the command is: uc3fupload 3-36 MPC564EVB User’s Manual PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE...
  • Page 83 The updbug command is used to update the dBUG image in Flash. When updates to the MPC564EVB dBUG are available, the updated image is downloaded to address 0xFFF0_8000. The new image is placed into Flash using the UPDBUG command. The user is prompted for verification before performing the operation (note case sensitivity here).
  • Page 84 0xFFF0_8000 and then will be uploaded to external flash starting at address 0x0080_0000. Examples: To program all sectors of user Flash, the command is: upuser To program only 1000 bytes into user Flash, the command is: upuser 1000 3-38 MPC564EVB User’s Manual PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE...
  • Page 85 Commands VERSION Display dBUG Version Usage: VERSION The VERSION command displays the version information for dBUG. The dBUG version, build number and build date are all given. The version number is separated by a decimal, for example, “v 2b.1c.1a”. In this example, v 2b .
  • Page 86: System Call Functions

    Assembly example: /* the character is returned to the user in r3*/ addi r10, r0, 0x0000 Selects the function The character is returned in r3 C example: int board_in_char (void) 3-40 MPC564EVB User’s Manual PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE...
  • Page 87: In_Stat

    System Call Functions /* assume r3 contains the character */ asm(“ addi r10, r0, 0x0000”); Selects the function asm(“ sc”); The character is returned in r3 3.5.3 IN_STAT This function (function code 0x0001) checks if an input character is present to receive. A value of zero is returned in r3 when no character is present.
  • Page 88: Exit_To_Dbug

    3.5.6 EXIT_TO_dBUG This function (function code 0x0000) transfers the control back to the dBUG, by terminating the user code. The register context is preserved. Assembly example: r0,72(r1) mtspr 8,r0 addi r1,r1,64 asm_sc_exit_to_dbug 3-42 MPC564EVB User’s Manual PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE...

Table of Contents