Freescale Semiconductor, Inc... Freescale Semiconductor, Inc. MPC564EVB User’s Manual MPC564EVBUM Rev. 1.2, 3/2003 For More Information On This Product, Go to: www.freescale.
Freescale Semiconductor, Inc. Freescale Semiconductor, Inc... Revision History Version Number Revision Date 1.1 11/2002 Initial Version 1.2 3/2003 Fixed typos. Added appendix describing dBUG ethernet configuration. Added appendix for emulating the MPC53X parts. Added 66MHz references. Description of Changes For More Information On This Product, Go to: www.freescale.
Freescale Semiconductor, Inc. DigitalDNA and Mfax are trademarks of Motorola, Inc. IBM PC and IBM AT are registered trademark of IBM Corp. Freescale Semiconductor, Inc... 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.
Freescale Semiconductor, Inc. Freescale Semiconductor, Inc... Cautionary Notes Axiom Manufacturing (http://www.axman.com) reserves the right to make changes without further notice to any products to improve reliability, function or design. Axiom does not assume any liability arising out of the application or use of any product or circuit described herein; neither does it convey any license under patent rights or the rights of others.
Freescale Semiconductor, Inc. WARNING 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.
Freescale Semiconductor, Inc... Freescale Semiconductor, Inc. For More Information On This Product, Go to: www.freescale.
Freescale Semiconductor, Inc. Contents Paragraph Number Title Page Number Freescale Semiconductor, Inc... Chapter 1 MPC564 EVB Board 1.1 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.5.1 1.2.5.2 1.2.5.3 1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.4.1 1.4.4.2 1.5 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.5.1 1.5.5.2 1.5.5.3 1.5.5.4 1.5.5.5 1.5.5.6 1.5.5.7 1.5.5.8 MOTOROLA Processor ........................................................................................................
Freescale Semiconductor, Inc. Contents Paragraph Number 1.6 1.7 Title Page Number Reference Documents ........................................................................................ 1-28 Software Development ...................................................................................... 1-28 Freescale Semiconductor, Inc... Chapter 2 Initialization and Setup 2.1 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.3 2.3.1 2.3.2 2.4 System Configuration ......................................
Freescale Semiconductor, Inc. Contents Paragraph Number Title Page Number Appendix B Configuring dBUG for Network Downloads Required Network Parameters .............................................................................B-1 Configuring dBUG Network Parameters.............................................................B-1 Troubleshooting Network Problems ....................................................................B-2 Freescale Semiconductor, Inc... B.1 B.2 B.
Freescale Semiconductor, Inc. Contents Title Page Number Freescale Semiconductor, Inc... Paragraph Number iv MPC564EVB User’s Manual For More Information On This Product, Go to: www.freescale.
Freescale Semiconductor, Inc. Chapter 1 Freescale Semiconductor, Inc... MPC564 EVB Board The MPC564EVB is an MPC564-based evaluation board that can be used for the development and test of microcontroller systems1 (see Figure 1-1). The MPC564 is a member of the Motorola MPC500 RISC microcontroller family. It is a 32-bit processor with a 32-bit internal address bus and 32 lines of data. The evaluation board is a development and test platform for software and hardware for the MPC5641.
Freescale Semiconductor, Inc... Freescale Semiconductor, Inc. •Memory Devices: 512K Byte (128K x 32) Sync. SRAM, optional additional 512K Byte 2M Byte (512K x 32) Sync. FLASH 512K Byte FLASH internal to MPC564 device 32K Byte SRAM internal to MPC564 device •POWER OAK (PC33394 P2.6) regulated power supply for 5V, 3.3V and 2.6V supplies. •MAP Switch – provides easy assignment of chip selects and memory mapping. •CONFIG Switch – Basic necessary Reset Word Configuration options.
Freescale Semiconductor, Inc. Freescale Semiconductor, Inc... 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.
Freescale Semiconductor, Inc. System Memory Figure 1-2 shows the MPC564 block diagram. 512 Kbytes Flash* JTAG Burst Buffer Controller 2 U-BUS DECRAM (2Kbytes) MPC500 Freescale Semiconductor, Inc... E-BUS USIU Nexus Core + FPU L-BUS L2U 32K CALRAM 28 Kbytes 4-Kbyte Overlay QADC64E QADC64E QSMCM PPM UIMB IMB3 TPU3 8-Kbyte DPTRAM TPU3 Tou CAN Tou CAN Tou CAN MIOS14 Figure 1-2. MPC5641 Block Diagram 1.2 System Memory 1.2.
Freescale Semiconductor, Inc. System Memory may erase or corrupt the debug monitor. If the debug monitor becomes corrupted and it’s operation is desired, the firmware must be programmed into the flash by applying a development port tool such as 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 Freescale Semiconductor, Inc...
Freescale Semiconductor, Inc. System Memory Since the MPC564 chip selects are fully programmable, the memory banks can be located at any location in the MPC5xx memory space. Freescale Semiconductor, Inc... Following is the default memory map for this board as configured by the Debug Monitor located in the external flash bank. The internal memory space of the MPC564 is detailed further in the MPC561/3 Users Manual.
Freescale Semiconductor, Inc. System Memory x x x x x 32KByte Internal SRAM MPC564 512K byte Internal FLASH Memory (U1) 128K x 32bit (512KByte) Synchronous Static RAM (U2), 1M Byte with U3 option. 512K x 32bit (2MByte) Synchronous Flash EEPROM (U4) Peripherals 10/100T Ethernet and LCD Port Freescale Semiconductor, Inc... Each external RAM or Flash memory bank can be configured individually to operate from the MPC564 chip selects.
Freescale Semiconductor, Inc. Support Logic configuration word IP bit is set to 1. This requires the board to have a non-volatile memory device in this range with the correct information stored in it. The MPC564 processor chip-select zero (CS0) responds to any accesses after reset until the OR0 is written. Since CS0 (the global chip select) is connected to the Flash ROM (U6), the Flash ROM initially appears at address 0xFFF0_0000.
Freescale Semiconductor, Inc. Support Logic 1.3.4 Exception Sources Freescale Semiconductor, Inc... The MPC500 family of processors can receive exceptions as a result of external signals, errors, interrupts, or unusual conditions arising in the execution of instructions.
Freescale Semiconductor, Inc. Support Logic having to overwrite the ROM Monitor. The user’s code will boot from internal flash (0x0000_0000) needs to contain the start of the Exception Vector Table). Freescale Semiconductor, Inc... When the switch is ON (IP is set), the behavior of the system is normal, dBUG boots and then runs from 0x0090_0000. Procedure: 1.
Freescale Semiconductor, Inc. Communication Ports Freescale Semiconductor, Inc... Option Designator 1 Power Oak Signal MPC564 signal Default Connection Associated 1 Option S3 REGON MGPIO15 Open S4 CANTXD B_CANTX0 A_CANTX0 Open S5 CANRXD B_CANRX0 A_CANRX0 Open S6 CS QSPI_PCS1 Closed S7 DO QSPI_MISO Closed S8 DI QSPI_MOSI Closed S9 VREF3 BOEPEE S10 Open S10 VREF3 EPEE S9 Open The MPC533/4 has limited or no functionality for this module. See Appendix A 1.
Freescale Semiconductor, Inc. Communication Ports JP1 – COM2 DCE/DTE Option: 1 • • • • COM-2 is optioned as a DCE type RS232 connection by default (same as COM-1). This allows direct connection to a standard 9 pin PC COM serial port. Freescale Semiconductor, Inc... 1 • • • • COM-2 DTE option. This requires a NULL modem adapter to connect to a standard 9 pin PC COM serial port.
Freescale Semiconductor, Inc. Communication Ports The CAN_A channel transceiver is provided by the Power Oak (PC33394). This transceiver has software selectable options via the QSPI 0 channel which may communicate with the Power Oak device. See the PC33394 data sheet for details. A 4.7K ohm pull-up is provided on the CAN_A TX signal. Options S4 and S5 are provided near the Power Oak device to provide both MPC564 CAN_A and CAN_B channels for messaging on the Power Oak transceiver.
Freescale Semiconductor, Inc. Communication Ports 1.4.3 10/100T Ethernet Port The MPC564EVB has an Ethernet controller (SMSC LAN91C111 U20) operating at 10M bits/sec or 100Mbits/sec (see the device data sheet on the support CD forr operation details). The dBUG ROM monitor is programmed to allow a user to download files over a network to memory in different formats. The compiler-formats currently supported are S-Record, COFF, ELF, or Image (raw binary).
Freescale Semiconductor, Inc. Communication Ports The MII connector location is for testing and the connection of an external Ethernet PHY device. This connector is not installed or supported by the EVB application. Freescale Semiconductor, Inc... 1.4.4 BDM and NEXUS Development Ports Both NEXUS (MPC564 Readi Module) and standard BDM (background debug module) development ports are provided on the MPC564EVB for application of integrated software debug tool suites.
Freescale Semiconductor, Inc. Communication Ports VFLS0 GND GND HRESET Power 2.6 or 3.3 V 1 3 5 2 4 6 7 9 8 10 SRESET DSCK VFLS1 DSDI DSO Freescale Semiconductor, Inc... Figure 1-3. The BDM_PORT Connector pin assignment V1, V2, V3, and V4 The V1 – V4 options provide a way to use the alternate VFLS0 and VFLS1 BDM signals from the MPC564. By default, the primary VFLS0 and VFLS1 signals are applied by V1 and V2 default connections.
Freescale Semiconductor, Inc. Communication Ports Freescale Semiconductor, Inc... Table 1-6.
Freescale Semiconductor, Inc. Communication Ports Table 1-7. MPC56x Signal Sharing (Continued) MPC561/562/563/564 Tool Defined Vendor Defined Port Aux Out Port Freescale Semiconductor, Inc...
Freescale Semiconductor, Inc. Connectors and User Components 2 This signal is needed only if control of EPEE or B0EPEE is required by the Nexus tool. 3 This should be a 2.6-volt supply and not the ISRAMSTBY current source. 1.5 Connectors and User Components Freescale Semiconductor, Inc... 1.5.1 Keypad1 The Keypad port provides MPC564 I/O connections for a passive 16 key 4x4 matrix keypad (Axiom HC-KP). The port is applied as 4 column drivers and 4 row inputs.
Freescale Semiconductor, Inc. Connectors and User Components Access cycle 1: Write LCD control bits RS, R/W, LCD data byte. LCD1 and 2 select bits = 0. Access cycle 2: Write LCD control bits LCD1 select, LCD2 select active as required. RS, R/W, LCD data byte values do not change but must be written again. Access cycle 3 = READ: Read LCD Port if a Read access type, determined by R/W = 1 in first access cycles. Access cycle 3 = WRITE: Write LCD control bits LCD1 select, LCD2 select idle.
Freescale Semiconductor, Inc. Connectors and User Components USE CAUTION when connecting your LCD to the LCD-PORT - make sure the power polarity (JP2) and correct placement of the LCD cable so that signals are correctly matched. 1.5.3 User Components The EVB provides a set of user components that maybe applied in user applications or for testing purposes. The components are interfaced via the J2 Socket Header and are not dedicated to any particular MPC564 I/O signal.
Freescale Semiconductor, Inc. Connectors and User Components VRH and VRL QADC Reference Supplies EVB zero ohm resistors R4 and R5 provide connection to MPC564 VDDA and VSSA for VRH and VRL reference signals respectfully. One or both of these resistors can be removed to apply an external reference voltage to the 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.
Freescale Semiconductor, Inc. Connectors and User Components Freescale Semiconductor, Inc...
Freescale Semiconductor, Inc. Connectors and User Components Freescale Semiconductor, Inc... TPU PORT SIGNAL PIN PIN SIGNAL GND 20 19 GND +5V 18 17 T2CLK TPU CH15 16 15 TPU CH14 TPU CH13 14 13 TPU CH12 TPU CH11 12 11 TPU CH10 TPU CH9 10 9 TPU CH8 TPU CH7 8 7 TPU CH6 TPU CH5 6 5 TPU CH4 TPU CH3 4 3 TPU CH2 TPU CH1 2 1 TPU CH0 1.5.5.
Freescale Semiconductor, Inc. Connectors and User Components Freescale Semiconductor, Inc... CONTROL PORT (Continued) SIGNAL PIN PIN SIGNAL GND 14 13 GND OE 12 11 RD_WR WE3 10 9 CS3 WE2 8 7 CS2 WE1 6 5 CS1 WE0 4 3 CS0 3.3V 2 1 3.3V 1.5.5.5 MIOS_PORT The MIOS Port provides access to the MPC564 MIOS14 module Timer and I/O signals on a 34 pin socket header. The port has many multiplexed pins so the auxiliary signal connections are also provided for reference.
Freescale Semiconductor, Inc. Connectors and User Components MIOS PORT (Continued) AUX SIGNAL SIGNAL PIN PIN SIGNAL MDA27 6 5 MDA15 MDA14 4 3 MDA13 MDA12 2 1 MDA11 AUX SIGNAL 1.5.5.6 QADC_PORTs1 Freescale Semiconductor, Inc... The QADC (Qued Analog to Digital Converter) Ports provide access the MPC564 QADC A and B channels on to socket headers, QADC_A and QADC_B.
Freescale Semiconductor, Inc. Connectors and User Components Freescale Semiconductor, Inc... QADC_B (Continued) SIGNAL PIN PIN SIGNAL B_PQB6/AN50 (Keypad) 14 13 B_PQA6/AN58 (Keypad) B_PQB5/AN49 (keypad) 12 11 B_PQA5/AN57 (Keypad) B_PQB4/AN48 (Keypad) 10 9 B_PQA4/AN56 (Keypad) B_PQB3/AN3 8 7 B_PQA3/AN55 B_PQB2/AN2 6 5 B_PQA2/AN54 B_PQB1/AN1 4 3 B_PQA1/AN53 B_PQB0/AN0 2 1 B_PQA0/AN52 1.5.5.
Freescale Semiconductor, Inc. Reference Documents 1.6 Reference Documents The Provided MPC5xx support CD contains many documents that the user will find valuable during development. Following is a partial list: MPC564EVB_C_SCH.PDF - MPC564EVB schematic diagrams PC33394_P24.pdf - Power Oak data sheet LAN91C111.pdf - Ethernet controller data sheet AM28BDD160.pdf - Flash Memory Data sheet and Errata List from AMD CY1338.pdf - SRAM data sheet Freescale Semiconductor, Inc...
Freescale Semiconductor, Inc. Chapter 2 Initialization and Setup Freescale Semiconductor, Inc... 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. • RS232 Communication cable (provided). Figure 2-1 displays the minimum system configuration. Chapter 2.
Freescale Semiconductor, Inc. System Configuration dBUG> 6 - 26 V Input Power Freescale Semiconductor, Inc... RS-232 Terminal Or PC Figure 2-1. Minimum System Configuration 2-2 MPC564EVB User’s Manual For More Information On This Product, Go to: www.freescale.
Freescale Semiconductor, Inc. Installation And Setup 2.2 Installation And Setup The following sections describe all the steps needed to prepare the board for operation. Please read the following sections carefully before using the board. When you are preparing the board for the first time, be sure to check that all jumpers and switches are in the default locations. Default jumper and switch settings are documented on the master jumper table (see Table 1-2).
Freescale Semiconductor, Inc. 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. The Power Oak provides a regulated switch mode power source for the 2.6V, 3.3V, and 5V supplies on the EVB board.
Freescale Semiconductor, Inc. Installation And Setup Power Oak supplies. PWR jack connection provides power input from the supplied wall plug power source. Typical input is +12VDC. The PWR jack provides a center positive terminal and ground outside sleeve. The jack accepts 2.1mm inside x 5.5mm outside power plugs. TB1 Front View PWR Front View 2mm Center Pin, Positive Volt Freescale Semiconductor, Inc... GND +VIN VIGN 5.5mm Outer Ring, Ground 2.2.
Freescale Semiconductor, Inc. MPC564EVB Jumper and Switch Setup described in Section 2.2.6, “Connecting the Terminal.” Once the connection to the PC is made, power may be applied to the PC and the terminal emulation software can be run. In terminal mode, it is neccessary to select the baud rate and character format for the channel. The character format should be 8 bits, no parity, one stop bit. (see Section 2.2.5, “The Terminal Character Format”.
Freescale Semiconductor, Inc. MPC564EVB Jumper and Switch Setup Table 2-2. Jumper Settings (Continued) Jumper Setting B_RX C_TX C_RX Freescale Semiconductor, Inc... 100_IRQ “ON” Function removed SWITCH1 is for user use *insterted CAN: see Section 1.4.2, “CAN PORTs and Options removed CAN: see Section 1.4.2, “CAN PORTs and Options inserted CAN: see Section 1.4.2, “CAN PORTs and Options *removed CAN: see Section 1.4.2, “CAN PORTs and Options inserted CAN: see Section 1.4.
Freescale Semiconductor, Inc. MPC564EVB Jumper and Switch Setup ON 100_IRQ JP1 BRK_EN Freescale Semiconductor, Inc... J12 JP3 JP2 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.
Freescale Semiconductor, Inc. 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. All other RCW options can be located on the RW test pads, see RW options for description of how to apply. The Reset Configuration Word options are all defaulted to logic 0 when the CONFIG Switches are in the OFF position.
Freescale Semiconductor, Inc. System Power-up and Initial Operation 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 – 30 option bits are defaulted to the logic low value during external RCW word operation.
Freescale Semiconductor, Inc. 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. 2. Check that the terminal and board are set for the same character format and baud. 3.
Freescale Semiconductor, Inc. Freescale Semiconductor, Inc... System Power-up and Initial Operation 2-12 MPC564EVB User’s Manual For More Information On This Product, Go to: www.freescale.
Freescale Semiconductor, Inc. D:\TECD-SPO\Documentation\MPC564EVB\mpc564evb_3_Firmware_V1.fm 4/1/03 Freescale Semiconductor, Inc... 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.
Freescale Semiconductor, Inc. Operational Procedure Most commands can be recognized by using an abbreviated name. For instance, entering “h” is the same as entering “help”. Thus, it is not necessary to type the entire command name. The commands DI, GO, MD, STEP and TRACE are used repeatedly when debugging. dBUG recognizes this and allows for repeated execution of these commands with minimal typing. After a command is entered, simply press or to invoke the command again.
Freescale Semiconductor, Inc. Operational Procedure • Freescale Semiconductor, Inc... • 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 For More Information On This Product, Go to: www.freescale.
Freescale Semiconductor, Inc. Operational Procedure Freescale Semiconductor, Inc... Figure 3-1 shows the dUBG operational mode. Figure 3-1. Flow Diagram of dBUG Operational Mode. 3.2.2 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).
Freescale Semiconductor, Inc. Operational Procedure exception vector, the user places the address of the exception handler in the appropriate vector in the vector table located at 0xFFF0_0000. The Software Watchdog Timer is disabled and internal timers are placed in a stop condition. Interrupt controller registers are initialized with unique interrupt level/priority pairs. Please refer to the dBUG source files on the PowerPC website (www.motorola.com/powerpc) for the complete initialization code sequence.
Freescale Semiconductor, Inc. Command Line Usage 3.3 Command Line Usage The user interface to dBUG is the command line. A number of features have been implemented to achieve an easy and intuitive command line interface. dBUG assumes that an 80x24 ASCII character dumb terminal is used to connect to the debugger. For serial communications, dBUG requires eight data bits, no parity, and one stop bit (8N1).
Freescale Semiconductor, Inc. Commands Table 3-1. dBUG Command Summary MNEMONIC Freescale Semiconductor, Inc... FL GO GT HBR HELP IRD IRM LR LW MD MM MMAP RD RM RESET SD SET SHOW STEP SYMBOL TRACE VERSION SYNTAX DESCRIPTION fl dest size Erase/Program External Flash go Execute gt addr Execute To hbr addr <-r> Hardware Breakpoint help Help ird Internal Register Display irm module.
Freescale Semiconductor, Inc. Commands ASM Usage: Assembler ASM < stmt> The ASM command is a primitive assembler. The is assembled and the resulting code placed at . This command has an interactive and non-interactive mode of operation. The value for address may be an absolute address specified as a hexadecimal value, or a symbol name. The value for stmt must be valid assembler mnemonics for the CPU. Freescale Semiconductor, Inc...
Freescale Semiconductor, Inc. Commands BC Usage: Block Compare 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.
Freescale Semiconductor, Inc. Commands BF Block Fill Usage: BF begin end data The BF command fills a contiguous block of memory starting at address begin, stopping at address end, with the value data. modifies the size of the data that is written. If no is specified, the default of word sized data is used. The value for addresses begin and end may be an absolute address specified as a hexadecimal value, or a symbol name.
Freescale Semiconductor, Inc. Commands BM 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. The values for addresses begin, end, and dest may be absolute addresses specified as hexadecimal values, or symbol names.
Freescale Semiconductor, Inc. Commands BR Breakpoints Usage: BR addr <-r> <-c count> <-t trigger> The BR command inserts or removes software breakpoints at address addr. The value for addr may be an absolute address specified as a hexadecimal value, or a symbol name. Count and trigger are numbers converted according to the user-defined radix, normally hexadecimal. If no argument is provided to the BR command, a listing of all defined breakpoints is displayed. Freescale Semiconductor, Inc...
Freescale Semiconductor, Inc. Commands BS Block Search Usage: BS begin end data The BS command searches a contiguous block of memory starting at address begin, stopping at address end, for the value data. modifies the size of the data that is compared during the search. If no is specified, the default of word sized data is used. The values for addresses begin and end may be absolute addresses specified as hexadecimal values, or symbol names.
Freescale Semiconductor, Inc. Commands DC Data Conversion Usage: DC data The DC command displays the hexadecimal or decimal value data in hexadecimal, binary, and decimal notation. The value for data may be a symbol name or an absolute value. If an absolute value passed into the DC command is prefixed by ‘0x’, then data is interpreted as a hexadecimal value. Otherwise data is interpreted as a decimal value. All values are treated as 32-bit quantities. Examples: Freescale Semiconductor, Inc...
Freescale Semiconductor, Inc. Commands DI Disassemble Usage: DI 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. This is especially useful for branch target addresses and subroutine calls. The DI command attempts to track the address of the last disassembled opcode.
Freescale Semiconductor, Inc. Commands DL Download Console Usage: DL The DL command performs an S-record download of data obtained from the console typically through a serial port. The value for offset is converted according to the user-defined radix, normally hexadecimal. If offset is provided, then the destination address of each S-record is adjusted by offset. Freescale Semiconductor, Inc... The DL command checks the destination download address for validity.
Freescale Semiconductor, Inc. Commands DLDBUG Usage: Download dBUG 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.
Freescale Semiconductor, Inc. Commands DN Download Network Usage: DN <-c> <-e> <-i> <-s> <-o offset> 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. Freescale Semiconductor, Inc... In general, the type of file to be downloaded and the name of the file must be specified to the DN command.
Freescale Semiconductor, Inc. Commands FL Usage: Erase/Program Flash FL FL (e)rase addr bytes FL (w)rite dest src bytes Freescale Semiconductor, Inc... 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.
Freescale Semiconductor, Inc. Commands GO Usage: Execute GO The GO command executes target code starting at address addr. The value for addr may be an absolute address specified as a hexadecimal value, or a symbol name. If no argument is provided, the GO command begins executing instructions at the current program counter. Freescale Semiconductor, Inc...
Freescale Semiconductor, Inc. Commands GT 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.
Freescale Semiconductor, Inc. Commands HELP Usage: Help HELP The HELP command displays a brief syntax of the commands available within dBUG. In addition, the address of where user code may start is given. 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: Freescale Semiconductor, Inc...
Freescale Semiconductor, Inc. Commands IRD Usage: Internal Register Display IRD 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.
Freescale Semiconductor, Inc. Commands IRM Usage: Internal Register Modify 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. The registers are organized according to the module to which they belong.
Freescale Semiconductor, Inc. Commands LR Usage: Loop Read LR addr The LR command continually reads the data at addr until a key is pressed. The optional specifies the size of the data to be read. If no is specified, the command defaults to reading word sized data. Example: To continually read the word data from address 0xFFF2_0000, the command is: FFF20000 Freescale Semiconductor, Inc... lr Chapter 3.
Freescale Semiconductor, Inc. Commands LW Loop Write Usage: LW addr data The LW command continually writes data to addr. The optional width specifies the size of the access to memory. 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: FFF20000 12345678 Freescale Semiconductor, Inc... lw.
Freescale Semiconductor, Inc. Commands MD Memory Display Usage: MD 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 is specified, the default of word sized data is used. Freescale Semiconductor, Inc...
Freescale Semiconductor, Inc. Commands MM Memory Modify Usage: MM addr The MM command modifies memory at the address addr. The value for addr may be an absolute address specified as a hexadecimal value, or a symbol name. Width specifies the size of the data that is modified. If no is specified, the default of word sized data is used. The value for data may be a symbol name, or a number converted according to the user-defined radix, normally hexadecimal.
Freescale Semiconductor, Inc. Commands MMAP Usage: Memory Map Display 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. Freescale Semiconductor, Inc...
Freescale Semiconductor, Inc. Commands RD Register Display Usage: RD The RD command displays the register set of the target. If no argument for reg is provided, then all registers are displayed. Otherwise, the value for reg is displayed. dBUG preserves the registers by storing a copy of the register set in a buffer. The RD command displays register values from the register buffer. Examples: To display all the registers and their values, the command is: rd Freescale Semiconductor, Inc...
Freescale Semiconductor, Inc. Commands RM 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. 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.
Freescale Semiconductor, Inc. Commands RESET Usage: Reset the Board and dBUG RESET The RESET command resets dBUG to it’s initial power-on states. 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: Freescale Semiconductor, Inc...
Freescale Semiconductor, Inc. Commands SET Freescale Semiconductor, Inc... Usage: Set Configurations SET
Freescale Semiconductor, Inc. Commands SHOW Usage: Show Configurations SHOW
Freescale Semiconductor, Inc. Commands STEP Usage: Step Over 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 “step over” BSR and JSR instructions. Freescale Semiconductor, Inc...
Freescale Semiconductor, Inc. Commands SYMBOL Usage: Symbol Name Management SYMBOL <-a symb value> <-r symb> <-c|l|s> The SYMBOL command adds or removes symbol names from the symbol table. If only a symbol name is provided to the SYMBOL command, then the symbol table is searched for a match on the symbol name and its information displayed. The -a option adds a symbol name and its value into the symbol table. The -r option removes a symbol name from the table. Freescale Semiconductor, Inc...
Freescale Semiconductor, Inc. Commands TRACE Usage: Trace Into TRACE 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. Control returns to dBUG after a single-instruction execution of the target code.
Freescale Semiconductor, Inc. Commands VERSION Usage: Display dBUG Version 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”. Freescale Semiconductor, Inc... dBUG common major and minor revision { { v 3b . 1a .
Freescale Semiconductor, Inc. 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. This section describes the System Call handler and how it is used. Freescale Semiconductor, Inc... There are 6 System Call functions.
Freescale Semiconductor, Inc. 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. A value of 1 in r3 means a character is present. Freescale Semiconductor, Inc...
Freescale Semiconductor, Inc. System Call Functions C example: int board_isr_remove (void *handler) { asm( "addi asm( "sc"); r10,r0,0x0041"); } Freescale Semiconductor, Inc... 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 asm( "sc"); r10,r0,0x0063"); Chapter 3.
Freescale Semiconductor, Inc. Freescale Semiconductor, Inc... System Call Functions 3-42 MPC564EVB User’s Manual For More Information On This Product, Go to: www.freescale.
Freescale Semiconductor, Inc. Appendix A MPC533/534 Emulation Freescale Semiconductor, Inc... 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. Table A-1 compares the MPC564, MPC533, and MPC534 module lists. Figure A-1shows the block diagram of the MPC533/4. . Table A-1.
Freescale Semiconductor, Inc. Block Diagram Figure A-1. Block Diagram of the MPC533/4 512 Kbytes Flash* JTAG Burst Buffer Controller 2 U-BUS DECRAM (2Kbytes) MPC500 Nexus Core + FPU Freescale Semiconductor, Inc... E-BUS USIU L-BUS L2U 32K CALRAM 28 Kbytes 4-Kbyte Overlay QADC64E QSMCM PPM UIMB IMB3 Tou CAN A-2 Tou CAN Tou CAN MPC564EVB User’s Manual For More Information On This Product, Go to: www.freescale.
Freescale Semiconductor, Inc. Freescale Semiconductor, Inc... Appendix B Configuring dBUG for Network Downloads The dBUG module has the ability to perform downloads over an Ethernet network using the Trivial File Transfer Protocol, TFTP (NOTE: this requires a TFTP server to be running on the host attached to the board). Prior to using this feature, several parameters are required for network downloads to occur. The information that is required and the steps for configuring dBUG are described below. B.
Freescale Semiconductor, Inc. Troubleshooting Network Problems set gateway set netmask set ethaddr For example, the TFTP server is named ‘santafe’ and has IP address 123.45.67.1. The board is assigned the IP address of 123.45.68.15. The gateway IP address is 123.45.68.250, and the netmask is 255.255.255.0. The ethaddr address is chosen arbitrarily and is unique. The commands to dBUG are: Freescale Semiconductor, Inc... set client 123.45.68.15 set server 123.45.67.
Freescale Semiconductor, Inc. Troubleshooting Network Problems fail, and probably other severe network problems. Make certain the client IP address is unique for the board. Check for proper insertion or connection of the network cable. Is the status LED lit indicating that network traffic is present? Check for proper configuration and operation of the TFTP server. Most Unix workstations can execute a command named ‘tftp’ which can be used to connect to the TFTP server as well.
Freescale Semiconductor, Inc. Freescale Semiconductor, Inc... Troubleshooting Network Problems B-4 MPC564EVB User’s Manual For More Information On This Product, Go to: www.freescale.