MPC566EVB Freescale Semiconductor, MPC566EVB Datasheet

KIT EVALUATION FOR MPC565/566

MPC566EVB

Manufacturer Part Number
MPC566EVB
Description
KIT EVALUATION FOR MPC565/566
Manufacturer
Freescale Semiconductor
Datasheets

Specifications of MPC566EVB

Processor To Be Evaluated
MPC56x
Data Bus Width
32 bit
Interface Type
RS-232, Ethernet
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Freescale Semiconductor, Inc.
MPC566EVB User's Manual
MPC566EVBUM
Rev. 1.2, 3/2003
For More Information On This Product,
Go to: www.freescale.com

Related parts for MPC566EVB

MPC566EVB Summary of contents

Page 1

... Freescale Semiconductor, Inc. MPC566EVB User's Manual For More Information On This Product, Go to: www.freescale.com MPC566EVBUM 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. For More Information On This Product, Description of Changes Go to: www.freescale.com ...

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

... Nexus Connector ....................................................................................... 1-16 1.5 Connectors and User Components..................................................................... 1-19 1.5.1 Keypad ........................................................................................................... 1-19 1.5.2 LCD Port........................................................................................................ 1-19 1.5.3 User Components........................................................................................... 1-21 1.5.4 MPC566EVB Hardware Options................................................................... 1-22 1.5.5 Signals Available on Board............................................................................ 1-22 1.5.5.1 IRQ PORT ................................................................................................. 1-22 1.5.5.2 BUS_PORT................................................................................................ 1-22 1.5.5.3 TPU_PORTs .............................................................................................. 1-24 1.5.5.4 CONTROL_PORT ...

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-6 2.3 MPC566EVB 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

... Freescale Semiconductor, Inc. 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 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 MPC566EVB 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 MPC535/6 has limited or no functionality for this module. See Appendix A 1-2 For More Information On This Product, MPC566EVB User’s Manual Go to: www.freescale.com ...

Page 13

... Freescale Semiconductor, Inc. Figure 1-1. MPC566 EVB top view 1.1 Processor The microprocessor used on the MPC566EVB is the highly integrated Motorola PowerPC MPC566 32-bit microcontroller. The MPC566 implements a PPC ISA core with 1MByte UC3F flash, four UART channels, three Timing Processor Units (TPUs) ...

Page 14

... For More Information On This Product, 512 Kbytes 512 Kbytes Flash Flash U-BUS Nexus L2U L-BUS UIMB QSMCM QSMCM I/F 4 Kbytes Tou Tou TPU3 CAN DPTRAM CAN 1 Block Diagram MPC566EVB User’s Manual Go to: www.freescale.com E-BUS USIU J1850 IMB3 Tou MIOS14 CAN ...

Page 15

... BDM or Nexus. User should use caution to avoid this situation. The upper 1 MByte is used to store the MPC566EVB dBUG debugger/monitor firmware (0x0090_0000 to 0x009F_FFFF). 1.2.2 SRAM The MPC566EVB has two 512 KByte device on the board (U2). It’s starting address is 0xFFF0_0000. The synchronous SRAM Memory Bank is composed of two128K x 32 memory devices. These ...

Page 16

... Memory Device / Bank Selection and Configuration. The MPC566EVB board has one internal memory bank, two external memory banks and a Peripheral memory bank that provide: 36KByte Internal SRAM MPC566 512K byte Internal FLASH Memory (U1) 256K x 32bit (1MByte) Synchronous Static RAM (U2/3) ...

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. MPC566EVB 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 MPC566EVB board uses a 4MHz crystal (Y1 on the schematics) to provide the clock to the on-chip oscillator of the MPC566. 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 MPC566EVB 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 MPC566 User’ ...

Page 20

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

Page 21

... The MPC535/6 has limited or no functionality for this module. See Appendix A 1.4 Communication Ports The MPC566EVB provides external interfaces for 4 SCI serial ports, 3 CAN ports and a 10/100T ethernet port. 1.4.1 COM1 - COM4 The MPC566 processor has two queued serial multi-channel modules (QSMCM_A and QSMCM_B) which provides four serial communications interfaces (SCI/UART) ...

Page 22

... BR2 SCI_B_ RXD2 1-12 For More Information On This Product, RS232 COM Port Connection COM-1 COM-1 COM-2 COM-2 COM-3 COM-3 COM-4 COM-4 MPC566EVB User’s Manual Go to: www.freescale.com COM_PORT Signal Direction to RS232 interface translator Output Input Output Input Output Input Output Input ...

Page 23

... Freescale Semiconductor, Inc. 1.4.2 CAN PORTs and Options The MPC566EVB 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 MPC566 CAN_A port is directly interfaced to the Power Oak transceiver and can not be isolated easily ...

Page 24

... RJ45 jack J3 of the Ethernet port provides a direct to HUB type connection. The Ethernet cable provided with the MPC566EVB 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 MPC566. The option is set for 3.3V interface from the factory. The following JP3 reference is with the MPC566EVB setting with the COM ports facing left. For More Information On This Product, NOTE: MPC566EVB User’ ...

Page 26

... Auxiliary only (Auxiliary In and Auxiliary Out) connection or a JTAG IEEE 1149.1 port with an Auxiliary Output port. The MPC56x parts do not support the JTAG IEEE 1149.1 configuration. 1-16 For More Information On This Product NOTE MPC566EVB User’s Manual Go to: www.freescale.com SRESET DSCK VFLS1 DSDI DSO ...

Page 27

... — — — OUT pull-up resistors to VREF (2.6 volts). pull-down resistor. This is in line with the proposed new MPC566EVB User’s Manual Go to: www.freescale.com Communication Ports MPC56x Signal Signal UBATT — TOOL_IO0 — TOOL_IO2 — VREF VDD2.6 GND GND GND GND ...

Page 28

... MDO[0] P4 MDO[1] R1 MDO[2] R3 MDO[3] T1 MDO[4]/ N2 MPIO32B[10] MDO[5]/ N4 MPIO32B[9] MDO[6]/ N3 MPIO32B[8] MDO[7]/ P1 MPIO32B[7] BG/VF0/LWP1 AF14 1 — — SGPIOC[7]/ AC14 IRQOUT/LWP[0] 2 EPEE & B0EPEE AF21 & AD20 3 — — — — — — VDD2.6 VDD 4 VSTBY2.6 — MPC566EVB User’s Manual Go to: www.freescale.com ...

Page 29

... Connectors and User Components Table 1-8. Keypad PIN MPC566 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 MPC566EVB User’s Manual Go to: www.freescale.com 1-19 ...

Page 30

... Care should be used to verify proper connection and signal matching at the IDC Cable Connector and LCD_PORT. See the schematic to match this jumper setting to your LCD device connector. Contact support@axman.com for assistance applying a LCD module. 1-20 For More Information On This Product, MPC566EVB User’s Manual Go to: www.freescale.com ...

Page 31

... SW2 Active high, +5V SW3 Active high, +5V SW4 Active high, +5V LED1 Active High LED2 Active High LED3 Active High LED4 Active High 0 – 5V +5V, open O4 option to change Ground, open O5 option to change Meter or probe ground / common MPC566EVB User’s Manual Go to: www.freescale.com 1-21 ...

Page 32

... QADC_A Port. EPEE and BOEPEE CUTAWAY E0 The MPC566EVB board has the EPEE and BOEPEE signals connected by CUT_AWAY pad E0. This connection is for NEXUS port programming of the MPC566 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

... D13 16 15 D11 GND 2 1 MPC566EVB User’s Manual For More Information On This Product, Go to: www.freescale.com Connectors and User Components SIGNAL A26 A24 A22 A20 A18 A16 A14 A12 A10 A8 D30 D28 D26 D24 D22 D20 D18 D16 D14 D12 D10 ...

Page 34

... TPU CH14 14 13 TPU CH12 12 11 TPU CH10 TPU CH8 10 9 TPU CH6 TPU CH4 4 3 TPU CH2 2 1 TPU CH0 PIN PIN SIGNAL TRST EPEE BR TMS 36 35 TSIZ1 TSIZ0 TEA BDIP 26 25 RSTCONF MPC566EVB User’s Manual Go to: www.freescale.com ...

Page 35

... WE0 4 3 CS0 3. 3.3V PIN PIN SIGNAL MGPIO14 MGPIO12 30 29 MGPIO10 MGPIO8 MGPIO6 24 23 MGPIO4 22 21 MGPIO2 MGPIO0 20 19 MPWM18 MPWM16 14 13 MPWM2 MPC566EVB User’s Manual Go to: www.freescale.com AUX SIGNAL CAN_C RX NEXUS MDO_4 NEXUS MDO_6 BDM VFLS0 (V4 option) 1-25 ...

Page 36

... MDA27 6 5 MDA15 MDA14 MDA13 4 3 MDA12 2 1 MDA11 PIN PIN SIGNAL VRH ETRIG1 16 15 A_PQA7/AN59 A_PQA6/AN58 14 13 A_PQA5/AN57 A_PQA4/AN56 8 7 A_PQA3/AN55 6 5 A_PQA2/AN54 A_PQA1/AN53 4 3 A_PQA0/AN52 2 1 PIN PIN MPC566EVB User’s Manual Go to: www.freescale.com AUX SIGNAL SIGNAL AN86 AN84 . ...

Page 37

... PIN PIN SIGNAL GND A_CANTX 12 11 A_RXD1 A_TXD1 10 9 A_SCK A_MISO A_PCS2 A_PCS0 / SS PIN PIN SIGNAL GND 16 15 +5V MPC566EVB User’s Manual Go to: www.freescale.com SIGNAL AN82 AN80 EVB USE CAN_A COM1 COM1 POWER OAK POWER OAK EVB USE 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 MPC566 in software. Software development on the MPC566EVB 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. debugging. User should review the demonstration and sample software tools provided separately in the MPC566EVB kit for high level debug capability. The development environment and procedure for best success is to place software to be tested into RAM memory. Execute software to be tested under Monitor or development tool control, then program into FLASH memory to execute new application when power is applied ...

Page 40

... Freescale Semiconductor, Inc. Software Development 1-30 For More Information On This Product, MPC566EVB User’s Manual Go to: www.freescale.com ...

Page 41

... Freescale Semiconductor, Inc. Chapter 2 Initialization and Setup 2.1 System Configuration The MPC566 board requires the following items for minimum system configuration: • The MPC566EVB board (provided). • Power supply (provided). • RS232 compatible terminal with terminal emulation software. • RS232 Communication cable (provided). ...

Page 42

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

Page 43

... 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: • MPC566EVB Single Board Computer • MPC566EVB User's Manual (this document) • One RS232 9-pin Serial Cable • One CAT5E Ethernet cable, crossover type • ...

Page 44

... TB1 Provides main input power source access and the Power Oak VIGN input signal. The +VIN and ground sources may be applied or tapped from the TB1 pin 2 and 3 connections respectfully. TB1 pin 1 provides access the VIGN signal to the Power Oak, user should note ON jumper oper- 2-4 For More Information On This Product, MPC566EVB User’s Manual Go to: www.freescale.com ...

Page 45

... The board is now ready to be connected to a PC/terminal. Use the RS232 serial cable to connect the PC/terminal to the MPC566EVB 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 MPC566EVB board ...

Page 46

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

... 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, MPC566EVB Jumper and Switch Setup Function BDM being used runs at 2.6 volts. SWITCH1 will act as a debounced Non-Maskable Interrupt ...

Page 48

... Freescale Semiconductor, Inc. MPC566EVB 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 MPC566 internal flash memory. These switches provide a logic 0 or low level when off and a logic 1 or high level when on ...

Page 49

... 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, MPC566EVB Jumper and Switch Setup Table 2-3. CONFIG_SW Function 0 = Internal Reset Config Word se- ...

Page 50

... RW0, RW2, RW4 – 18, RW23 – 30 provide the user access to external Reset Configuration Word (RCW) bits not normally required for default MPC566EVB operation. The RW0 – 30 designations reflect the data bus D0 – D30 bit affected when the RCW word is enabled externally. All RW0 – ...

Page 51

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

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

Page 53

... Freescale Semiconductor, Inc. Chapter 3 Using the Monitor/Debug Firmware The MPC566EVB 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 54

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

Page 55

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

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

Page 57

... 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 MPC566EVB 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 MPC566 processor and board logic and restarts the dBUG firmware ...

Page 58

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

Page 59

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

... Freescale Semiconductor, Inc. Commands ASM Usage: ASM <<addr> stmt> The ASM command is a primitive assembler. The <stmt> is assembled and the resulting code placed at <addr>. This command has an interactive and non-interactive mode of operation. The value for address <addr> may be an absolute address specified as a hexadecimal value symbol name. The value for stmt must be valid assembler mnemonics for the CPU. For the interactive mode, the user enters the command and the optional < ...

Page 61

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

... Freescale Semiconductor, Inc. Commands BF Usage: BF<width> begin end data <inc> The BF command fills a contiguous block of memory starting at address begin, stopping at address end, with the value data. <Width> modifies the size of the data that is written <width> is specified, the default of word sized data is used. ...

Page 63

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

... Freescale Semiconductor, Inc. Commands BR 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 symbol name. Count and trigger are numbers converted according to the user-defined radix, normally hexadecimal. ...

Page 65

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

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

Page 67

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

... Freescale Semiconductor, Inc. Commands DL Usage: DL <offset> 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. ...

Page 69

... Usage: DLDBUG The DLDBUG command will download the dBUG monitor to the MPC566EVB 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 70

... Freescale Semiconductor, Inc. Commands DN Usage: DN <-c> <-e> <-i> <-s> <-o offset> <filename> The DN command downloads code from the network. The DN command handle files which are either S-record, COFF, ELF or Image formats. The DN command uses Trivial File Transfer Protocol (TFTP) to transfer files from a network host. ...

Page 71

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

... Freescale Semiconductor, Inc. Commands GO Usage: GO <addr> The GO command executes target code starting at address addr. The value for addr may be an absolute address specified as a hexadecimal value symbol name argument is provided, the GO command begins executing instructions at the current program counter. When the GO command is executed, all user-defined breakpoints are inserted into the target code, and the context is switched to the target program ...

Page 73

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

... Freescale Semiconductor, Inc. Commands HELP Usage: HELP <command> 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: ...

Page 75

... 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 MPC566 user’ ...

Page 76

... Freescale Semiconductor, Inc. Commands IRM Usage: IRM module.register data This command modifies the contents of the internal registers of different modules inside the MPC500. In the command line, module refers to the module name where the register is located and register refers to the specific register to modify. The data parameter specifies the new value to be written into the register ...

Page 77

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

... Freescale Semiconductor, Inc. Commands LW Usage: LW<width> 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: lw ...

Page 79

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

... Freescale Semiconductor, Inc. Commands MM Usage: MM<width> addr <data> The MM command modifies memory at the address addr. The value for addr may be an absolute address specified as a hexadecimal value symbol name. Width specifies the size of the data that is modified <width> is specified, the default of word sized data is used. The value for data may be a symbol name number converted according to the user-defined radix, normally hexadecimal ...

Page 81

... Freescale Semiconductor, Inc. MMAP Usage: mmap This command displays the memory map information for the MPC566 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 82

... Freescale Semiconductor, Inc. Commands RD Usage: RD <reg> The RD command displays the register set of the target 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 ...

Page 83

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

... Freescale Semiconductor, Inc. Commands RESET Usage: 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. ...

Page 85

... Freescale Semiconductor, Inc. SET Usage: SET <option value> The SET command allows the setting of user-configurable options within dBUG. With no arguments, SET displays the options and values available. The SHOW command displays the settings in the appropriate format. The standard set of options is listed below. ...

Page 86

... Freescale Semiconductor, Inc. Commands SHOW Usage: SHOW <option> The SHOW command displays the settings of the user-configurable options within dBUG. When no option is provided, SHOW 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: ...

Page 87

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

... Freescale Semiconductor, Inc. Commands SYMBOL Usage: SYMBOL <symb> <-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. ...

Page 89

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

... Freescale Semiconductor, Inc. Commands VERSION Usage: VERSION The VERSION command displays the version information for dBUG. The dBUG version, build number and build date are all given. The version number is separated by a decimal, for example, “v 2b.1c.1a”. In this example, dBUG common ...

Page 91

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

... Freescale Semiconductor, Inc. System Call Functions { /* assume r3 contains the character */ asm(“ addi r10, r0, 0x0000”); Selects the function asm(“ sc”); } 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 means a character is present. ...

Page 93

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

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

Page 95

... Freescale Semiconductor, Inc. Appendix A MPC535/536 Emulation The MPC5646EVB can be used to emulate the MPC535 and MPC536 processors. This appendix will highlight the differences between the processors. Several modules present in the MPC566 are not available in the MPC535/6, so the user should not reference those modules. ...

Page 96

... QADC64E w/AMUX w/AMUX A-2 For More Information On This Product, Figure A-1. 5/6 512 Kbytes 512 Kbytes Flash Flash U-BUS Nexus L2U L-BUS UIMB QSMCM QSMCM I/F Tou CAN MPC566EVB User’s Manual Go to: www.freescale.com E-BUS USIU J1850 IMB3 Tou MIOS14 CAN ...

Page 97

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

Page 98

... Freescale Semiconductor, Inc. Troubleshooting Network Problems set gateway <gateway IP> set netmask <netmask> set ethaddr <addr> 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: set client 123 ...

Page 99

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

Page 100

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