background image

Chapter 2.  Initialization and Setup  

2-7

MPC564EVB Jumper and Switch Setup

Figure 2-3 on the next page shows the jumper locations for the board.

removed

SWITCH1 is for user use

B_RX

*insterted

CAN: see Section 1.4.2, “CAN PORTs and Options

removed

CAN: see Section 1.4.2, “CAN PORTs and Options

C_TX

inserted

CAN: see Section 1.4.2, “CAN PORTs and Options

*removed

CAN: see Section 1.4.2, “CAN PORTs and Options

C_RX

inserted

CAN: see Section 1.4.2, “CAN PORTs and Options

*removed

CAN: see Section 1.4.2, “CAN PORTs and Options

100_IRQ

*inserted

Ties the interrupt line from the Ethernet chip to 
the interrupt line of the processor

removed

Disconnects the interrupt line from the ethernet chip to the 
interrupt line of the processor

“ON”

* insterted

Allows the board to have power.

removed

Power to the board should be controlled by an ignition switch 
connected to the IGN input on the Power Clamp, TB1.

Table 2-2. Jumper Settings (Continued)

Jumper Setting 

Function

Summary of Contents for MPC564EVB

Page 1: ...MPC564EVBUM Rev 1 2 3 2003 MPC564EVB User s Manual ...

Page 2: ...ion Number Revision Date Description of Changes 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 ...

Page 3: ...ed for use as components in systems intended for surgical implant into the body or other applications intended to support or sustain life or for any other application in which the failure of the Motorola product could create a situation where personal injury or death may occur Should Buyer purchase or use Motorola products for any such unintended or unauthorized application Buyer shall indemnify a...

Page 4: ...s and expenses and reason able attorney fees arising out of directly or indirectly any claim of personal injury or death associated with such unintended or unauthorized use even if such claim alleges that 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 ...

Page 5: ...ation 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 Operation of this product in a residential area is likely to cause interference in which case the user at his her own expense will be required to correct the interference ...

Page 6: ......

Page 7: ... Exception Sources 1 9 1 3 5 TA Generation 1 9 1 3 6 User s Program 1 9 1 3 7 Power Oak K I S Hardware Options 1 10 1 4 Communication Ports 1 11 1 4 1 COM1 and COM2 1 11 1 4 2 CAN PORTs and Options 1 12 1 4 3 10 100T Ethernet Port 1 14 1 4 4 BDM and NEXUS Development Ports 1 15 1 4 4 1 BDM Port Options 1 15 1 4 4 2 Nexus Connector 1 16 1 5 Connectors and User Components 1 19 1 5 1 Keypad 1 19 1 5 ...

Page 8: ...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 Chapter 3 Using the Monitor Debug Firmware 3 1 What Is dBUG 3 1 3 2 Operational Procedure 3 2 3 2 1 System Power up 3 2 3 2 2 System Initialization 3 4 3 2 2 1 Hard RESET Button 3 5 3 2 2 2 Non Maskab...

Page 9: ... Title Page Number MOTOROLA MPC564EVB User s Manual iii Appendix B 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 ...

Page 10: ...Contents Paragraph Number Title Page Number iv MPC564EVB User s Manual MOTOROLA ...

Page 11: ...in addition to the built in I O functions of the MPC5641 device for programming and evaluating the attributes of the micropro cessor 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 Fl...

Page 12: ...pin header QSM Port Serial I O port with 16 pin socket header MIOS Port MDA PWM and MGPIO ports with 34 pin socket header TPU Ports1 2 Timing Processor I O ports with 20 pin socket headers QADC Ports1 2 Analog I O ports one 20 pin and one 24 pin socket header IRQ Port Interrupt or MPC564 port I O with 10 pin socket header POWER Port Primary and standby power supply access port no header I O Connec...

Page 13: ...hip selects to allow the full 32 bit address range to be selected There are regions that can be decoded to allow superviser user instruction and data each to have the 32 bit address range All the processor s signals are available through the expansion connector BUS_PORT Refer to the schematic for their pin assignments The MPC564 processor has the capability to support both an IEEE ISTO 5001 1999 N...

Page 14: ...lf words or words Wait states are required to access in asynchronous mode and the same wait state delay is required during the first cycle of a burst type access Refer to the specific device data sheet for configuring the flash memory User should note that the debug monitor firmware is installed in this flash device Development tools or user application programs 1See Appendix A for block diagram o...

Page 15: ...pped to 0x003F_8000 and configured as data space but is not used by the dBUG monitor except during system initialization After system initialization is complete the internal memory is available to the user The memory is relocatable to any 32 KByte boundary 1 2 4 Internal Flash The MPC564 has a U bus CDR3 flash EEPROM module UC3F The primary function of the UC3F flash EEPROM module is to serve as e...

Page 16: ...fect mem ory map of chip selects The MPC564EVB Default Memory Map shows the MPC564EVB memory map 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 Table 1 1 The MPC564EVB Default Memory Map Address Range Signal and Device 0x0000_0000 0x0007_FFFF 512KByte UC3F Flash 0x0008_0000...

Page 17: ...ration Chip Select Memory Options shows the default memory settings programmed by the dBUG ROM monitor and may be applied for most user applications Table 1 2 Chip Select Memory Options 1 2 5 3 Reset Vector Mapping After reset the processor attempts to execute at physical address 0x0000_0100 if the hard reset configuration word IP bit is cleared to 0 or physical address 0xFFF0_0100 if the hard res...

Page 18: ...timers are placed in a stop condition A memory map for the entire board can be seen in Table 1 1 The MPC564EVB Default Memory Map RW0 30 External Reset Configuration Word RCW Options 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 effected when ...

Page 19: ...er supports up to 8 external interrups 0 7 eight levels for all internal USIU interrupt sources and 32 levels for internal peripheral modules It has an enhanced mode of operation which simplifies the MPC564 interrupt structure and speeds up interrupt processing NOTE No interrupt sources should have the same level and priority as another Programming two interrupt sources with the same level and pri...

Page 20: ...un 4 In the ROM Monitor execute the upuser command 5 Turn off IP bit Switch 5 OFF User code should now be running from reset POR 1 3 7 Power Oak K I S Hardware Options Several hardware options surround the Power Oak supply to allow the user access to many of the features The options are sorted by leading character to indicate functionality K designated options refer to VKAM and MPC564 back up supp...

Page 21: ...ation of the serial connection Each connection pad is numbered for the associated serial connector pin Each connection pad can be isolated from the others if grouped above by cutting the associated trace to the pad on the bottom side of the board See the MPC564EVB schematic 2 COM 2 has the JP1 DCE DTE option see below 3 RS232 translators available to COM3 and COM4 that are not required by user app...

Page 22: ...M port operation Note 2mm header maybe installed after cutaways are cut to allow jumper option Table 1 4 Serial Port Configuration 1 4 2 CAN PORTs and Options1 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 MPC56...

Page 23: ...ovide minimum slew rate fast edge and to be constantly enabled for output The configuration of the transceivers maybe modified for slew rate or output control or both Signaling CAN bus slew rate can be modified by increasing the value of R66 and R67 for CAN_B and CAN_C respectfully Opening the CN1 and CN2 away options for CAN_B and CAN_C respectfully allows a MPC564 I O port to be applied to the B...

Page 24: ...evice data sheet in detail for operation notes The debug monitor applies the Ethernet for file downloads only no high level stacks are applied in the sample source code 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 ...

Page 25: ...e 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 Following are the I O effected MGPIO 0 1 2 3 5 6 MPWM 0 1 17 19 IRQ0 NOTE BDM functionality and use is supported via third party develop...

Page 26: ...at release The new connectors come in both a robust and a non robust configuration In addition each connector has 2 definitions depending upon whether the connection is an Auxiliary only Auxiliary In and Auxiliary Out connection or a JTAG IEEE 1149 1 port with an Auxiliary Output port NOTE The MPC56x parts do not support the JTAG IEEE 1149 1 configuration Table 1 6 MPC56x Nexus 50 Pin Definition F...

Page 27: ...6 OUT 41 42 GND GND MDO 7 MDO7 OUT 43 44 GND GND MDI2 IN2 45 46 GND GND MDI3 IN2 47 48 GND GND EPEE B0EPEE3 VENDOR_IO1 IN or OUT 49 50 GND GND 1 The Nexus specification labels active low signals with a forward slash before the signal name 2 The Nexus standard recommends that inputs should have 10K pull up resistors to VREF 2 6 volts Exception The RSTI input should have a 10K pull down resistor Thi...

Page 28: ...MPWM 17 MDO 3 H23 MDO4 IRQ 0 SGPIO 0 MDO 4 P3 MDO5 MPIO32B 5 MDO 5 H26 MDO6 MPIO32B 6 MPWM 4 MDO 6 1 J23 MDO7 MPWM 19 MDO 7 H25 EVTO BG VF 0 LWP 1 R3 Port PORT0 1 Vendor Defined VENDOR_IO0 SGPIOC 7 IRQOUT LWP 0 R1 VENDOR_IO1 EPEE B0EPEE2 T23 T24 Tool Defined TOOL_IO0 TOOL_IO1 TOOL_IO2 VREF VDD2 6 VDD VALTREF VSTBY VSTBY2 63 1 Pin MPWM 18 MDO 6 H24 could also be used but is not enabled at reset and...

Page 29: ...ile connector to attach 80 or 160 character display modules and some graphics display modules with embedded controllers Most LCD modules operate very slowly compared to the MPC564 bus operation speeds so the LCD port provides a 16 bit wide register port for access The registered port allows writing the LCD module control signals and full Read and Write capability for LCD module command and data by...

Page 30: ... 6 Memory map offset for the LCD Port CS3 base 0x0010 LCD Display CONTRAST The CONTRAST adjustment allows a contrast Vee voltage to be presented to the LCD_PORT of 5V to 5V DC JP2 LCD_PORT Power Polarity Select JP2 determines the display power pin polarity on the LCD_PORT Depending on the type and location of the IDC connector on your display module the power connections may need to be reversed Ca...

Page 31: ... being pressed This feature is provided to support the Monitor ABORT operation to stop user code execution and return to the 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...

Page 32: ... cause the CONFIG_SW position 7 or 8 to 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 1 5 5 Signals Available on Board 1 5 5 1 IRQ PORT The IRQ Port provides access to the MPC564 Port C I O or IRQ inputs on a 10 pin socket header 1 5 5 2 BUS_PORT The BUS Port provides the data and address line access to the MPC564 me...

Page 33: ... A19 46 45 A18 A17 44 43 A16 A15 42 41 A14 A13 40 39 A12 A11 38 37 A10 A9 36 35 A8 D31 34 33 D30 D29 32 31 D28 D27 30 29 D26 D25 28 27 D24 D23 26 25 D22 D21 24 23 D20 D19 22 21 D18 D17 20 19 D16 D15 18 17 D14 D13 16 15 D12 D11 14 13 D10 D9 12 11 D8 D7 10 9 D6 D5 8 7 D4 D3 6 5 D2 D1 4 3 D0 GND 2 1 2 6V 1 The MPC533 4 has limited or no functionality for this module See Appendix A BUS PORT Continued ...

Page 34: ...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 CONTROL PORT SIGNAL PIN PIN SIGNAL ALTREF 40 39 BOEPEE 38 37 EPEE BR 36 35 TMS TSIZ1 34 33 BB TSIZ0 32 31 BG TA 30 29 TEA BI 28 27 TS BURST 26 25 BDIP PULL_SEL 24 23 RSTCONF SRESET 22 21 EXTCLK 20 19 HR...

Page 35: ...0 3 3V 2 1 3 3V MIOS PORT AUX SIGNAL SIGNAL PIN PIN SIGNAL AUX SIGNAL MGPIO15 34 33 MGPIO14 MGPIO13 32 31 MGPIO12 CAN_C TX CAN_C RX MGPIO11 30 29 MGPIO10 MGPIO9 28 27 MGPIO8 MGPIO7 26 25 MGPIO6 NEXUS MDO_6 NEXUS MDO_5 MGPIO5 24 23 MGPIO4 BDM VFLS0 V4 option NEXUS MSEO BDM VFLS1 V3 option MGPIO3 22 21 MGPIO2 NEXUS MSEI NEXUS MCKO MGPIO1 20 19 MGPIO0 NEXUS MDO_1 NEXUS MDO_7 MPWM19 18 17 MPWM18 NEXUS...

Page 36: ...his module See Appendix A QADC_A SIGNAL PIN PIN SIGNAL VRL 20 19 VRH ETRIG2 18 17 ETRIG1 A_PQB7 AN51 16 15 A_PQA7 AN59 A_PQB6 AN50 14 13 A_PQA6 AN58 A_PQB5 AN49 12 11 A_PQA5 AN57 A_PQB4 AN48 10 9 A_PQA4 AN56 A_PQB3 AN3 8 7 A_PQA3 AN55 A_PQB2 AN2 6 5 A_PQA2 AN54 A_PQB1 AN1 4 3 A_PQA1 AN53 A_PQB0 AN0 2 1 A_PQA0 AN52 QADC_B SIGNAL PIN PIN SIGNAL AN87 24 23 AN86 AN85 22 21 AN84 AN83 20 19 AN82 AN81 18...

Page 37: ...y the HP logic analysis system The Mictor 1 3 positions provide address and data bus connections for the HP system See schematic sheet 3 for details of the connections 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_PQA...

Page 38: ...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 Development tool software provides high level C C source code debugging The Monitor installed will provide Assembly or Object ...

Page 39: ...uration 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 ...

Page 40: ...2 2 MPC564EVB User s Manual System Configuration Figure 2 1 Minimum System Configuration 6 26 V Input Power dBUG RS 232 Terminal Or PC ...

Page 41: ...ort CD with all documents drawings source codes examples AxIDE software and GNU compiler 25 pin parallel cable DB32 M F for BDM A selection of demo Third Party Developer Tools and Literature NOTE Avoid touching the MOS devices Static discharge can and will damage these devices Once you have verified that all the items are present remove the board from its protective jacket and anti static bag Chec...

Page 42: ...ion The Power Port provides tap points for the power supplies and switched power outputs from the Power Oak Following is the Power Port pin assignment Table 2 1 Power Port Connections Refer to Power Oak document for application of the provided power sources TB1 ON Option and PWR TB1 Provides main input power source access and the Power Oak VIGN input signal The VIN and ground sources may be applie...

Page 43: ...o this format 2 2 6 Connecting the Terminal 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 Connect the 9 pin female conne...

Page 44: ...trol null back to host Pin 2 TXD output RS232 level Pin 3 RXD input RS232 level 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 Table 2 2 Jumper Settings Jumper Setting...

Page 45: ...n 1 4 2 CAN PORTs and Options C_RX inserted CAN see Section 1 4 2 CAN PORTs and Options removed CAN see Section 1 4 2 CAN PORTs and Options 100_IRQ inserted Ties the interrupt line from the Ethernet chip to the interrupt line of the processor removed Disconnects the interrupt line from the ethernet chip to the interrupt line of the processor ON insterted Allows the board to have power removed Powe...

Page 46: ...d 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 The RCW ON J12 JP1 JP3 BRK_EN 100_IRQ JP2 ...

Page 47: ...ons Table 2 3 CONFIG_SW Switch Name MPC563 564 Function Function 1 CFG_EN RST_CONF Enable External Config This bit enables the external reset config 0 Internal Reset Config Word se lected 1 External Reset Config Word se lected default 2 CFG1 BDIS Data Bus 3 Boot Dis This bit en ables booting from external flash memory 0 Boot from internal memory de fault 1 Boot from external flash 3 CFG2 ETRE This...

Page 48: ...he MPC564 chip selects to the different external memories and whether the internal flash is enabled I 2 4 System Power up and Initial Operation When all of the cables are connected to the board power may be applied The dBUG ROM Monitor initializes the board and then displays a power up message on the terminal Part Number 0xXX MaskNum 0xXX Copyright 1995 2002 Motorola Inc All Rights Reserved MPC564...

Page 49: ...or 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 Check that your switches are set to their default settings 4 Press the RESET button to insure that the board has been initialized properly If you still are not receiving the proper response your board may have been damaged Contact...

Page 50: ...2 12 MPC564EVB User s Manual System Power up and Initial Operation ...

Page 51: ...e provides a self contained programming and operating environment dBUG interacts with the user through pre defined commands that are entered via the terminal These commands are defined in Section 3 4 Commands 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 character dumb ter...

Page 52: ...program For the alternate case the command will be executed under control of the dBUG firmware and after command completion the system returns to command entry mode During command execution additional user input may be required depending on the command function For commands that accept an optional width to modify the memory access size the valid values are B 8 bit byte access H 16 bit half word ac...

Page 53: ...g the Monitor Debug Firmware 3 3 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 ...

Page 54: ...tional 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 To take over an ...

Page 55: ...e MPC564 processor and board logic and restarts the dBUG firmware Pressing the RESET button would be the appropriate action if all else fails 3 2 2 2 Non Maskable Interrupt Button SWITCH1 can be used as a non maskable interrupt button It is available for the user to use in their code as an input if the jumper BRK_EN is removed The NMI function causes an interrupt of the present processing a level ...

Page 56: ...he last command line In general dBUG is not case sensitive Commands may be entered either in uppercase or lowercase depending upon the user s equipment and preference Only symbol names require that the exact case be used 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 comm...

Page 57: ...width addr Loop Read LW lw width addr data Loop Write MD md width begin end Memory Display MM mm width addr data Memory Modify MMAP mmap Memory Map Display RD rd reg Register Display RM rm reg data Register Modify RESET reset Reset SD sd Stack Dump SET set option value Set Configurations SHOW show option Show Configurations STEP step Step Over SYMBOL symbol symb a symb value r symb C l s Symbol Ma...

Page 58: ...user prompted for the new assembly If valid the new assembly is placed into memory and the address incremented accordingly If the assembly is not valid then memory is not modified and an error message produced In either case memory is disassembled and the process repeats The user may press the Enter or Return key to accept the current memory contents and skip to the next instruction or a enter per...

Page 59: ...he 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 The value for length may be a symbol name or a number converted according to the user defined radix hexadecimal by default Example To verify that the data starting at 0xFFF2_0000 and ending at 0xFFF3_0000 is ...

Page 60: ...lue during the fill This command first aligns the starting address for the data access size and then increments the address accordingly during the operation Thus for the duration of the operation this command performs properly aligned memory accesses Examples To fill a memory block starting at 0xFFF2_0000 and ending at 0xFFF4_0000 with the value 0x1234 the command is bf FFF20000 FFF40000 1234 To f...

Page 61: ...absolute addresses specified as hexadecimal values or symbol names If the destination address overlaps the block defined by begin and end an error message is produced and the command exits Examples To copy a block of memory starting at 0xFFF4_0000 and ending at 0xFFF7_0000 to the location 0xFFF0_0000 the command is bm FFF40000 FFF70000 FFF00000 To copy the target code s data section defined by the...

Page 62: ... the breakpoint Each time a breakpoint is encountered during the execution of target code the count value is compared against the trigger value If the count value is equal to or greater than the trigger value a breakpoint is encountered and control returned to dBUG By default the initial trigger value for a breakpoint is one but the t option allows setting the initial trigger for the breakpoint If...

Page 63: ...en increments the address accordingly during the operation Thus for the duration of the operation this command performs properly aligned memory accesses Examples To search for the 32 bit value 0x1234_5678 in the memory block starting at 0xFFF4_0000 and ending at 0xFFF7_0000 bs FFF40000 FFF70000 12345678 This reads the 32 bit word located at 0x0004_0000 and compares it against the 32 bit value 0x12...

Page 64: ...ymbol 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 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 ...

Page 65: ... 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 If no address is provided to the DI command then the DI command uses the address of the last opcode that was disassembled The DI command is repeatable Examples To disassemble code that starts a...

Page 66: ...ks the destination download address for validity If the destination is an address outside the defined user space then an error message is displayed and downloading aborted DL can be used for downloading to internal flash external flash internal SRAM and external SRAM If the S record file contains the entry point address then the program counter is set to reflect this address Examples To download a...

Page 67: ...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 Xon Xoff flow control needs to be turned on in the terminal window to download data To download the dBUG monitor to the board the command is ...

Page 68: ...iletype will be used Default filename and filetype parameters are manipulated using the SET and SHOW commands The DN command checks the destination download address for validity If the destination is an address outside the defined user space then an error message is displayed and downloading aborted For ELF and COFF files which contain symbolic debug information the symbol tables are extracted fro...

Page 69: ...s 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 To download a s19 file straight to flash please see the DL command Examples To view the flash device information the command is fl To erase 0x10000 bytes of flash starting at 0x00800000 the command is fl erase 800000 10000 To copy 0x40 ...

Page 70: ... the GO command is executed all user defined breakpoints are inserted into the target code and the context is switched to the target program Control is only regained when the target code encounters a breakpoint illegal instruction or other exception which causes control to be handed back to dBUG The GO command is repeatable Examples To execute code at the current program counter the command is go ...

Page 71: ...ay 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 Control is only regained when the target code encounters a breakpoint illegal instruction or other exception which causes control to be handed back to dBUG Examples To execute code up to the C...

Page 72: ...lable 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 help br ...

Page 73: ...ine 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 s manual for more information on these modules and the registers they contain Example i...

Page 74: ...ter 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 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 s manual for more information on these modules and the registers they contain Example To ...

Page 75: ...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 Example To continually read the word data from address 0xFFF2_0000 the command is lr FFF20000 ...

Page 76: ... 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 lw b FFF20000 12345678 ...

Page 77: ...ess that was displayed If no ending address is provided then MD will display memory up to an address that is 128 beyond the starting address This command first aligns the starting address for the data access size and then increments the address accordingly during the operation Thus for the duration of the operation this command performs properly aligned memory accesses Examples To display memory a...

Page 78: ...he contents of addr to data If no value for data is provided then the MM command enters into a loop The loop obtains a value for data sets the contents of the current address to data increments the address according to the data size and repeats The loop terminates when an invalid entry for the data value is entered i e a period This command first aligns the starting address for the data access siz...

Page 79: ...s 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 Here is an example of the output from this command Type Start End ISB 0x00000000 0x003FFFFF Internal SRAM 0x003F8000 0x003FFFFF Flash 0x00800000 0x009FFFFF User Flash 0x00800000 0x008FFFFF dBUG Flash 0x00900000 0x009FFFFF Ethernet 0x01000000 0x01008000 External SRAM 0...

Page 80: ...uffer Examples To display all the registers and their values the command is rd To display only the program counter rd pc Here is an example of the output from this command pc FFF08000 msr 00009042 EE ME IP RI cr 00000000 xer 00000000 lr 00000000 ctr 00000000 r00 07 00000000 003FFF00 00000000 00000000 00000000 00000000 00000000 00000000 r08 15 00000000 00000000 00000000 00000000 00000000 00000000 0...

Page 81: ...r 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 The actual value will not be written to the register until target code is executed Examples To change program counter to contain the value 0x003f_8000 the ...

Page 82: ...sets 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 reset ...

Page 83: ...ions the client IP is required to be set to a unique value usually assigned by your local network administrator server This is the network IP address of the machine which contains files accessible via TFTP Your local network administrator will have this information and can assist in properly configuring a TFTP server if one does not exist gateway This is the network IP address of the gateway for y...

Page 84: ...W displays all options and values Examples To display all options and settings the command is show To display the current baud rate of the board the command is show baud Here is an example of the output from a show command dBUG show base 16 baud 19200 server 192 0 0 1 client 192 0 0 2 gateway 0 0 0 0 netmask 255 255 255 0 filename test srec filetype S Record mac 00 CF 52 49 C3 01 speed 56000000 ...

Page 85: ...he 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 The STEP command will work for other instructions as well but note that if the STEP command is used with an instruction that will not return i e BRA then the temporary breakpoint may never be encountered and dBUG may nev...

Page 86: ...contents of the symbol table and the s option displays usage information for the symbol table Symbol names contained in the symbol table are truncated to 31 characters Any symbol table lookups either by the SYMBOL command or by the disassembler will only use the first 31 characters Symbol names are case sensitive Symbols can also be added to the symbol table via in line assembly labels and etherne...

Page 87: ... 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 This command is repeatable Examples To trace one instruction at the program counter the command is tr To trace 20 instructions from the prog...

Page 88: ...ld date are all given The version number is separated by a decimal for example v 2b 1c 1a 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 In this example v 3b 1a 1a dBUG common major and minor revision CPU major and minor revision board major and minor revision ...

Page 89: ...s are invoked the following is true sprg0 contains r31 and sprg1 contains LR 3 5 1 OUT_CHAR This function function code 0x0020 sends a character which is in r3 to terminal The system call interface accepts an opcode in r10 to indicate which operation is to be performed Assembly example assume r3 contains the character addi r10 r0 0x0020 Selects the function sc The character in r3 is sent to termin...

Page 90: ...Make the call r3 contains the response yes no 3 5 4 ISR_REGISTER This function s code is 0x0040 For ISR_REGISTER the vector handler device ptr and arg ptr are in r3 r4 r5 and r6 respectively C example int board_isr_register int vector void handler void device void arg Vector will normally be 0x0500 for IRQ Handler should be address of your routine Device and Arg are both used as arguments to Handl...

Page 91: ...id handler asm addi r10 r0 0x0041 asm sc 3 5 6 EXIT_TO_dBUG This function transfers the control back to the dBUG by terminating the user code The register context is preserved C example see scif s file anything in R10 besides 0x0000 0x0001 0x0020 0x0030 0x0031 0x0040 0x0041 asm addi r10 r0 0x0063 asm sc ...

Page 92: ...3 42 MPC564EVB User s Manual System Call Functions ...

Page 93: ... Table A 1 compares the MPC564 MPC533 and MPC534 module lists Figure A 1shows the block diagram of the MPC533 4 Table A 1 Module Differences of MPC564 MPC533 and MPC534 Module MPC564 MPC533 MPC534 Core Speed 40 or 56 or 66MHz 40MHz 40MHz Termperature Range 40oC to 85oC and 40o C to 125o C 40oC to 85oC 40oC to 85oC Code Compression available N A available FLASH 512K 512K 512K Static RAM 32K 32K 32K...

Page 94: ...gure A 1 Block Diagram of the MPC533 4 E BUS MPC500 Core L BUS U BUS IMB3 FPU USIU Buffer Burst L2U UIMB QSMCM MIOS14 Nexus JTAG QADC64E Tou CAN Tou CAN PPM Tou CAN Controller 2 512 Kbytes Flash DECRAM 2Kbytes 32K CALRAM 4 Kbyte Overlay 28 Kbytes ...

Page 95: ... address for the computer client IP IP address of the Gateway for non local traffic gateway IP and Network netmask for flagging traffic as local or non local netmask In addition the dBUG network download command requires the following three parameters IP address of the TFTP server server IP Name of the file to download filename Type of the file to download filetype of S record COFF ELF or Image Yo...

Page 96: ...y the file to download into the directory used by the TFTP server A default filename for network downloads is maintained by dBUG To change the default filename use the command set filename filename When using the Ethernet network for download either S record COFF ELF or Image files may be downloaded A default filetype for network downloads is maintained by dBUG as well To change the default filety...

Page 97: ... 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 Is the default TFTP root directory present and readable If ICMP_DESTINATION_UNREACHABLE or similar ICMP message appears then a serious error has occurred Reset the board and wait one minute for the TFTP server to time out and terminate any open connectio...

Page 98: ...B 4 MPC564EVB User s Manual Troubleshooting Network Problems ...

Reviews: