MPC564EVB Freescale Semiconductor, MPC564EVB Datasheet

KIT EVAL FOR MPC561/562/563/564

MPC564EVB

Manufacturer Part Number
MPC564EVB
Description
KIT EVAL FOR MPC561/562/563/564
Manufacturer
Freescale Semiconductor
Type
Microcontrollerr
Datasheets

Specifications of MPC564EVB

Contents
Module Board, Installation Guide, Power Supply, Cable, Software and more
Processor To Be Evaluated
MPC56x
Data Bus Width
32 bit
Interface Type
RS-232, Ethernet
For Use With/related Products
MPC561, 562, 563, 564
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Freescale Semiconductor, Inc.
MPC564EVB User’s Manual
MPC564EVBUM
Rev. 1.2, 3/2003
For More Information On This Product,
Go to: www.freescale.com

Related parts for MPC564EVB

MPC564EVB Summary of contents

Page 1

... Freescale Semiconductor, Inc. MPC564EVB User’s Manual For More Information On This Product, Go to: www.freescale.com MPC564EVBUM Rev. 1.2, 3/2003 ...

Page 2

... Freescale Semiconductor, Inc. Revision History Version Revision Number Date 1.1 11/2002 Initial Version 1.2 3/2003 Fixed typos. Added appendix describing dBUG ethernet configu- ration. Added appendix for emulating the MPC53X parts. Added 66MHz references. For More Information On This Product, Description of Changes ...

Page 3

... Freescale Semiconductor, Inc. DigitalDNA and Mfax are trademarks of Motorola, Inc. IBM PC and IBM AT are registered trademark of IBM Corp. All other trademark names mentioned in this manual are the registered trade mark of respective owners No part of this manual and the dBUG software provided in Flash ROM’s/EPROM’s may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise ...

Page 4

... Axiom Manufacturing was negligent regarding the design or manufacture of the part or system. EMC Information on MPC564EVB 1. 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

... Freescale Semiconductor, Inc. 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 6

... Freescale Semiconductor, Inc. For More Information On This Product, Go to: www.freescale.com ...

Page 7

... External Flash .................................................................................................. 1-4 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 1.3 Support Logic ...................................................................................................... 1-8 1 ...

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 2.3 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 2.4 System Power-up and Initial Operation............................................................. 2-10 Using the Monitor/Debug Firmware 3 ...

Page 9

... Paragraph Number Configuring dBUG for Network Downloads B.1 Required Network Parameters .............................................................................B-1 B.2 Configuring dBUG Network Parameters.............................................................B-1 B.3 Troubleshooting Network Problems ....................................................................B-2 MOTOROLA For More Information On This Product, Contents Title Appendix B MPC564EVB User’s Manual Go to: www.freescale.com Page Number iii ...

Page 10

... Freescale Semiconductor, Inc. Paragraph Number iv For More Information On This Product, Contents Title MPC564EVB User’s Manual Go to: www.freescale.com Page Number MOTOROLA ...

Page 11

... To support development and test, the evaluation board can be connected to debuggers and emulators produced by different manufacturers. The MPC564EVB provides for low cost software testing with the use of a ROM resident debug monitor, dBUG, programmed into the external Flash device. Operation allows the user to load code in the on-board RAM, execute applications, set breakpoints, and display or modify registers or memory ...

Page 12

... Components – 4 user LEDs (one with debounce), 4 user Switches, 1 user Potentiometer with socket header for I/O connection. 1 The MPC533/4 has limited or no functionality for this module. See Appendix A 1-2 For More Information On This Product, MPC564EVB User’s Manual Go to: www.freescale.com ...

Page 13

... Freescale Semiconductor, Inc. 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

... See Appendix A for block diagram of MPC533/4 1-4 For More Information On This Product, 512 Kbytes Flash* U-BUS Nexus L-BUS L2U UIMB QSMCM PPM Tou Tou Tou TPU3 CAN CAN CAN 1 Block Diagram MPC564EVB User’s Manual Go to: www.freescale.com E-BUS USIU IMB3 MIOS14 ...

Page 15

... 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). 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. The MPC564EVB board has two internal memory banks, two external memory banks and a Peripheral memory bank that provide: 1-6 For More Information On This Product, CS0 or CS1 default CS1, MAP SW. 1,2 CS0 or CS2 default CS0, MAP SW ...

Page 17

... Base address = 0x0100_0000, Port width = 16 bit *Default External TA* generation provided. 0xFFFF_80F0 Memory Range 0x0100_0000 > 0100_7FFF, wait state = External Terminate (TA*) *Default Note Peripheral memory map. MPC564EVB User’s Manual Go to: www.freescale.com System Memory Notes 1-7 ...

Page 18

... 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

... 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. Refer to MPC564 User’ ...

Page 20

... 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 Option ...

Page 21

... 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

... SCI_A_ RXD2 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

... 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 host network card. If connection to a HUB is desired, a standard Ethernet cable should be applied. ...

Page 25

... 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. JP3 i 3 ...

Page 26

... I/O Number Number OUT 1 2 OUT OUT TOOL_IO0 OUT TOOL_IO2 OUT OUT OUT — — MPC564EVB User’s Manual Go to: www.freescale.com SRESET DSCK VFLS1 DSDI DSO MPC56x Signal Signal UBATT — — — VREF VDD2.6 GND GND GND GND GND GND ...

Page 27

... — — — OUT MPC561/562/563/564 Signal Ball HRESET W23 JCOMP/RSTI L1 MPC564EVB User’s Manual Go to: www.freescale.com Communication Ports MPC56x Signal Signal GND GND GND GND GND GND GND GND GND GND LWP[0] GND GND GND GND GND GND GND GND ...

Page 28

... H23 IRQ[0]/SGPIO[0]/ P3 MDO[4] MPIO32B[5]/MDO[5] H26 MPIO32B[6]/ J23 1 MPWM[4]/MDO[6] MPWM[19]/MDO[7] H25 BG/VF[0]/LWP[ — — R1 LWP[0] 2 EPEE & B0EPEE T23 & T24 — — — — — — VDD2.6 VDD VSTBY VSTBY2.6 MPC564EVB User’s Manual Go to: www.freescale.com 3 ...

Page 29

... Connectors and User Components Table 1-8. Keypad PIN MPC564 I/O SIGNAL 1 QADC_B PQA4 out 2 QADC_B PQA5 out 3 QADC_B PQA6 out 4 QADC_B PQA7 out 5 QADC_B PQB4 in 6 QADC_B PQB5 in 7 QADC_B PQB6 in 8 QADC_B PQB7 in MPC564EVB User’s Manual Go to: www.freescale.com 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 1-20 For More Information On This Product, MPC564EVB User’s Manual Go to: www.freescale.com ...

Page 31

... 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

... 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 enable both signals. If this operation is not desired by the user, cut the CUT-AWAY E0 pad to isolate the signals from each other ...

Page 33

... A8 D31 34 33 D30 D29 32 31 D28 D27 D26 30 29 D25 28 27 D24 D23 26 25 D22 D21 24 23 D20 D19 D18 22 21 D17 20 19 D16 D15 18 17 D14 D13 16 15 D12 D11 D10 GND 2. MPC564EVB User’s Manual Go to: www.freescale.com 1-23 ...

Page 34

... TPU CH12 14 13 TPU CH10 TPU CH8 8 7 TPU CH6 6 5 TPU CH4 TPU CH2 TPU CH0 PIN PIN SIGNAL 40 39 EPEE TMS TSIZ1 TSIZ0 TEA BDIP 24 23 RSTCONF HRESET GND 18 17 PORESET 16 15 CLKOUT MPC564EVB User’s Manual Go to: www.freescale.com ...

Page 35

... MGPIO6 24 23 MGPIO4 22 21 MGPIO2 20 19 MGPIO0 18 17 MPWM18 MPWM16 MPWM2 12 11 MPWM0 MDA31 10 9 MDA30 MDA29 MDA28 8 7 MPC564EVB User’s Manual Go to: www.freescale.com AUX SIGNAL CAN_C TX NEXUS MDO_6 BDM VFLS0 (V4 option) NEXUS MSEI NEXUS MDO_1 NEXUS MDI_1 1-25 ...

Page 36

... MDA12 2 1 MDA11 PIN PIN SIGNAL 20 19 VRH 18 17 ETRIG1 16 15 A_PQA7/AN59 A_PQA6/AN58 A_PQA5/AN57 10 9 A_PQA4/AN56 8 7 A_PQA3/AN55 A_PQA2/AN54 6 5 A_PQA1/AN53 4 3 A_PQA0/AN52 2 1 PIN PIN B_PQA7/AN59 (Keypad MPC564EVB User’s Manual Go to: www.freescale.com AUX SIGNAL SIGNAL AN86 AN84 AN82 AN80 . ...

Page 37

... B_PQA0/AN52 PIN PIN SIGNAL B_CANTX A_CANTX RXD2 12 11 RXD1 TXD2 10 9 TXD1 SCK 8 7 MOSI 6 5 MISO PCS3 4 3 PCS2 PCS1 2 1 PCS0 / SS MPC564EVB User’s Manual Go to: www.freescale.com SIGNAL EVB USE CAN_B CAN_A COM1 COM1 POWER OAK POWER OAK 1-27 ...

Page 38

... The provided dBUG monitor/utility software initializes the clock to run this board at 56 MHz on power-up. 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

... Freescale Semiconductor, Inc. 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 with terminal emulation software. • RS232 Communication cable (provided). ...

Page 40

... Freescale Semiconductor, Inc. System Configuration Figure 2-1. Minimum System Configuration 2-2 For More Information On This Product, dBUG> RS-232 Terminal Or PC MPC564EVB User’s Manual Go to: www.freescale.com Input Power ...

Page 41

... Unpack the computer board from its shipping box. Save the box for storing or reshipping. Refer to the following list and verify that all the items are present. 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

... The ON jumper provides a constant enable to the VIGN signal so the Power Oak is enabled upon power application. The ON option jumper may be removed to apply the VIGN signal externally with a switch or other source. Basic operation of the VIGN signal is to apply +VIN to enable the 2-4 For More Information On This Product, MPC564EVB User’s Manual Go to: www.freescale.com ...

Page 43

... 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

... 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. ‘**’ is used to indicate mandatory setting for proper operation. ...

Page 45

... Figure 2-3 on the next page shows the jumper locations for the board. Chapter 2. Initialization and Setup For More Information On This Product, MPC564EVB Jumper and Switch Setup Function SWITCH1 is for user use CAN: see Section 1.4.2, “CAN PORTs and Options CAN: see Section 1.4.2, “CAN PORTs and Options CAN: see Section 1.4.2, “ ...

Page 46

... Freescale Semiconductor, Inc. MPC564EVB Jumper and Switch Setup ON J12 JP1 JP3 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

... All other external RCW bits are provided with the RW hardware options. RW0 – 30: External Reset Configuration Word (RCW) Options Chapter 2. Initialization and Setup For More Information On This Product, MPC564EVB Jumper and Switch Setup Table 2-3. CONFIG_SW Function 0 = Internal Reset Config Word se- ...

Page 48

... 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

... Freescale Semiconductor, Inc. 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

... Freescale Semiconductor, Inc. System Power-up and Initial Operation 2-12 For More Information On This Product, MPC564EVB User’s Manual Go to: www.freescale.com ...

Page 51

... D:\TECD-SPO\Documentation\MPC564EVB\mpc564evb_3_Firmware_V1.fm 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. This chapter is a how-to-use description of the dBUG package, including the user interface and command structure ...

Page 52

... 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. 3-2 For More Information On This Product, MPC564EVB User’s Manual Go to: www.freescale.com ...

Page 53

... Freescale Semiconductor, Inc. • Make sure the IP bit is set (switch 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 For More Information On This Product, Go to: www ...

Page 54

... 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 3-4 For More Information On This Product, MPC564EVB User’s Manual Go to: www.freescale.com ...

Page 55

... 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. Pressing the Hard RESET button (SW1-HARD RESET) causes all processes to terminate, resets the MPC564 processor and board logic and restarts the dBUG firmware ...

Page 56

... For More Information On This Product, DESCRIPTION SYNTAX Assemble Block Compare Block Fill Block Move Breakpoint Block Search Data Convert Disassemble Download Serial Download dBUG Download Network MPC564EVB User’s Manual Go to: www.freescale.com ...

Page 57

... Freescale Semiconductor, Inc. Table 3-1. dBUG Command Summary MNEMONIC FL fl <command> dest <src> size GO go <addr> addr HBR hbr addr <-r> HELP help <command> IRD ird <module.register> IRM irm module.register data LR lr<width> addr LW lw<width> addr data MD md<width> <begin> <end> MM mm<width> addr <data> ...

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: asm 10000 nop To interactively assembly memory at address 0x0040_0000, the command is: asm 400000 3-8 For More Information On This Product, MPC564EVB User’s Manual Go to: www.freescale.com Assembler ...

Page 59

... Freescale Semiconductor, Inc. BC 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. The value for addresses addr1 and addr2 may be an absolute address specified as a hexadecimal value or a symbol name ...

Page 60

... 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: bf FFF20000 FFF40000 0 2 3-10 For More Information On This Product, MPC564EVB User’s Manual Go to: www.freescale.com Block Fill ...

Page 61

... Freescale Semiconductor, Inc. BM 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. The values for addresses begin, end, and dest may be absolute addresses specified as hexadecimal values, or symbol names ...

Page 62

... To set a breakpoint at the C function bench() and set its trigger value to 3, the command is: br _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 For More Information On This Product, MPC564EVB User’s Manual Go to: www.freescale.com Breakpoints ...

Page 63

... Freescale Semiconductor, Inc. BS 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 <width> is specified, the default of word sized data is used. ...

Page 64

... All values are treated as 32-bit quantities. Examples: To display the decimal and binary equivalent of 0x1234, the command is: dc 0x1234 To display the hexadecimal and binary equivalent of 1234, the command is: dc 1234 3-14 For More Information On This Product, Data Conversion MPC564EVB User’s Manual Go to: www.freescale.com ...

Page 65

... Freescale Semiconductor, Inc. DI 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 symbol name. Wherever possible, the disassembler will use information from the symbol table to produce a more meaningful disassembly. This is especially useful for branch target addresses and subroutine calls. ...

Page 66

... To download an S-record file through the serial port, the command is download an S-record file through the serial port, and add an offset to the destination address of 0x40, the command is: dl 0x40 3-16 For More Information On This Product, Download Console MPC564EVB User’s Manual Go to: www.freescale.com ...

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 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: dn 3-18 For More Information On This Product, Download Network MPC564EVB User’s Manual Go to: www.freescale.com ...

Page 69

... Freescale Semiconductor, Inc. FL Usage (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. The destination address must be word (4byte) aligned and the byte count must be in word (4byte) multiples ...

Page 70

... The GO command is repeatable. Examples: To execute code at the current program counter, the command is 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 For More Information On This Product, MPC564EVB User’s Manual Go to: www.freescale.com Execute ...

Page 71

... Freescale Semiconductor, Inc. GT 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 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

... If command is provided, then a brief listing of the syntax of the specified command is displayed. 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 For More Information On This Product, MPC564EVB User’s Manual Go to: www.freescale.com Help ...

Page 73

... Freescale Semiconductor, Inc. IRD 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. The available modules on the MPC500 are USIU, TPU_A, TPU_B, QADC_A, QADC_B, QSMCM_A, MIOS14, CAN_A. Refer to the MPC564 user’ ...

Page 74

... 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: irm usiu.plprcr 914000 3-24 For More Information On This Product, Internal Register Modify MPC564EVB User’s Manual Go to: www.freescale.com ...

Page 75

... Freescale Semiconductor, Inc. LR 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 <width> is specified, the command defaults to reading word sized data. Example: To continually read the word data from address 0xFFF2_0000, the command is: ...

Page 76

... The default access size is a word. Examples: To continually write the data 0x1234_5678 to address 0xFFF2_0000, the command is: lw FFF20000 12345678 Note that the following command writes 0x78 into memory: lw.b FFF20000 12345678 3-26 For More Information On This Product, MPC564EVB User’s Manual Go to: www.freescale.com Loop Write ...

Page 77

... Freescale Semiconductor, Inc. MD 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 < ...

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: mm FFF10000 3-28 For More Information On This Product, Memory Modify MPC564EVB User’s Manual Go to: www.freescale.com ...

Page 79

... Freescale Semiconductor, Inc. MMAP 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

... For More Information On This Product, Register Display lr: 00000000 ctr: 00000000 MPC564EVB User’s Manual Go to: www.freescale.com ...

Page 81

... Freescale Semiconductor, Inc. RM 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 converted according to the user-defined radix, normally hexadecimal. dBUG preserves the registers by storing a copy of the register set in a buffer. The RM command updates the copy of the register in the buffer ...

Page 82

... Examples: To reset the board and clear the dBUG data structures, the command is: reset 3-32 For More Information On This Product, Reset the Board and dBUG MPC564EVB User’s Manual Go to: www.freescale.com ...

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

... 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 For More Information On This Product, Show Configurations MPC564EVB User’s Manual Go to: www.freescale.com ...

Page 85

... Freescale Semiconductor, Inc. STEP 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. The STEP command can be used to “ ...

Page 86

... 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 -s To display the symbol table, the command is: symbol -l 3-36 For More Information On This Product, Symbol Name Management MPC564EVB User’s Manual Go to: www.freescale.com ...

Page 87

... Freescale Semiconductor, Inc. TRACE 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 For More Information On This Product, Display dBUG Version CPU major board major and minor and minor revision revision MPC564EVB User’s Manual Go to: www.freescale.com ...

Page 89

... Freescale Semiconductor, Inc. 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. This section describes the System Call handler and how it is used ...

Page 90

... 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 sc The character is returned in r3 3-40 For More Information On This Product, The character is returned in r3 r10,r0,0x0001");Select the function Make the call, r3 contains the response (yes/no). r10,r0,0x0040"); MPC564EVB User’s Manual Go to: www.freescale.com ...

Page 91

... Freescale Semiconductor, Inc. C example: int board_isr_remove (void *handler) { asm( "addi 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, ...

Page 92

... Freescale Semiconductor, Inc. System Call Functions 3-42 For More Information On This Product, MPC564EVB User’s Manual Go to: www.freescale.com ...

Page 93

... Freescale Semiconductor, Inc. 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

... MPC500 Core + FPU 32K CALRAM 28 Kbytes 4-Kbyte Overlay QADC64E A-2 For More Information On This Product, 512 Kbytes Flash* U-BUS Nexus L-BUS L2U UIMB QSMCM PPM Tou Tou Tou CAN CAN CAN MPC564EVB User’s Manual Go to: www.freescale.com E-BUS USIU IMB3 MIOS14 ...

Page 95

... 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> For More Information On This Product, MPC564EVB User’s Manual Go to: www.freescale.com B-1 ...

Page 96

... 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 B-2 For More Information On This Product, MPC564EVB User’s Manual Go to: www.freescale.com ...

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. For More Information On This Product, Troubleshooting Network Problems MPC564EVB User’s Manual Go to: www.freescale.com B-3 ...

Page 98

... Freescale Semiconductor, Inc. Troubleshooting Network Problems B-4 For More Information On This Product, MPC564EVB User’s Manual Go to: www.freescale.com ...

Related keywords