Page 2
Motorola product could create a situation where personal injury or death may occur. Should Buyer purchase or...
Page 3
EMC Information on M5271EVB 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. This product is designed and intended for use as a development platform for hard- ware or software in an educational or professional laboratory.
Page 4
WARNING This board generates, uses, and can radiate radio frequency energy and, if not installed properly, may cause interference to radio communications. As temporarily permitted by regulation, it has not been tested for compliance with the limits for class a computing devices pursuant to Subpart J of Part 15 of FCC rules, which are designed to provide reasonable protection against such interference.
Chapter 1 M5271EVB Introduction This document details the setup and configuration of the ColdFire M5271EVB evaluation board (hereafter referred to as the EVB). The EVB is intended to provide a mechanism for easy customer evaluation of the MCF5270 and MCF5271 ColdFire microprocessors and to facilitate hardware and software development.
Page 10
• PLL Clocking options - Oscillator, Crystal or SMA for external clocking signals • LEDs for power-up indication, general purpose I/O, and timer output signals • Expansion connectors for daughter card Software • Resident firmware package that provides a self-contained programming and operating environment (dBUG) M5271EVB User’s Manual...
Figure 1-1. M5271EVB block diagram MCF5271 Microprocessor The microprocessor used on the EVB is the highly integrated Motorola MCF5271 32-bit ColdFire variable-length RISC processor. The MCF5271 implements a ColdFire Version 2 core with a maximum core frequency of 100MHz and external bus speed of 50MHz.
Page 12
In JTAG mode it can be used for boundary scan operations. The board is configured to boot up in the normal/BDM mode of operation. The BDM signals are available at the port labeled BDM. Figure 1-2 shows the MCF5271 processor block diagram. M5271EVB User’s Manual...
Semiconductor - CY7C1041CV3310ZC . These memory devices (U1 and U2) may be populated by the user for benchmarking purposes. Also see Section 1.2.5, “M5271EVB Memory Map”. 1.2.4 Internal SRAM The MCF5271 processor has 64-KBytes of internal SRAM memory which may be used as data or instruction memory.
RCON is asserted, Chip functions, including the reset configuration after reset, are configured according to the levels driven onto the external data pins. Table 1-5. SW4-2 JTAG_EN SW4-2 JTAG Enable JTAG interface enabled BDM interface enabled Chapter 1. M5271EVB Introduction...
Support Logic 1.3.2 Clock Circuitry The are three options to provide the clock to the CPU. These options can be configured by setting JP[10:12]. See Table 1-11., “M5271EVB Clock Source Selection” Table 1-11. M5271EVB Clock Source Selection JP10 JP11 JP12...
ROM Monitor to generate TA internally after a pre-programmed number of wait states. In order to support future expansion of the M5271EVB, the TA input of the processor is also connected to the Processor Expansion Bus. This allows any expansion boards to assert this line to provide a TA signal to the processor.
The MCF5271 Ethernet Controller requires an external interface adaptor and transceiver function to complete the interface to the ethernet media. The MCF5271 Ethernet module also features an integrated fast (100baseT) Ethernet media access controller (MAC). Chapter 1. M5271EVB Introduction 1-13...
The MCF5271 processor has a Background Debug Mode (BDM) port, which supports Real-Time Trace and Real-Time Debug. The signals which are necessary for debug are available at connector (J1). Figure 1-4., “J1- BDM Connector pin assignment” shows the (J1) Connector pin assignment. 1-14 M5271EVB User’s Manual...
• Repeated start signal generation • Acknowledge bit generation and detection • Bus busy detection Please see the MCF5271 User’s Manual for more detail. The I C signals from the MCF5271 device are brought out to expansion connector (J9). Chapter 1. M5271EVB Introduction 1-15...
These connectors are ideal for interfacing to a custom daughter card or for simple probing of processor signals. Below is a pinout description of these connectors. Table 1-12. J3 Signal Signal +3.3V +3.3V +3.3V +3.3V ERXD0 ETXD1 ETXD2 1-16 M5271EVB User’s Manual...
OR’ed with other reset signals from additional peripherals. On the EVB, RESET is wire OR’d with the BDM reset signal and there is a reset signal brought out to the expansion connectors for use with user hardware. 1-20 M5271EVB User’s Manual...
JP19 DTIN3 JP20 1.5.4 Other LEDs There are several other LED’s on the M5271EVB to signal to the user various board/processor/component state. Below is a list of those LEDs and their functions: Table 1-17. LED Functions Function D1-D4 Ethernet Phy functionality +3.3V Power Good...
Page 30
Connectors and User Components Table 1-17. LED Functions Function Reset (RSTI) asserted D17-D24 User LEDs (See Table 1-16., “User LEDs”) 1-22 M5271EVB User’s Manual...
Chapter 2 Initialization and Setup System Configuration The M5271EVB board requires the following items for minimum system configuration: • The M5271EVB board (provided). • Power supply, +6V to 14V DC with minimum of 300 mA. • RS232C compatible terminal or a PC with terminal emulation software.
Page 32
System Configuration RS-232 Terminal Or PC dBUG> +7 to +14VDC Input Power Figure 2-1. Minimum System Configuration M5271EVB User’s Manual...
Refer to the following list and verify that all the items are present. You should have received: • M5271EVB Single Board Computer • M5271EVB User's Manual (this document) • One RS232 communication cable • One BDM (Background Debug Mode) “wiggler” cable •...
Slide switch SW1 can be used to isolate the power supply input from the EVB voltage regulators if required. Moving the slide switch to the left (towards connector P2) will turn the EVB ON. Moving the slide switch to the right (away from connector P2) will turn the EVB OFF. M5271EVB User’s Manual...
The board is now ready to be connected to a PC/terminal. Use the RS-232 serial cable to connect the PC/terminal to the M5271EVB PCB. 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 P3 on the M5271EVB board.
Signal Ground Data Set Ready, Output (shorted to pins 1 and 4) Request to Send, Input Clear to send, Output Not connected Figure 2-5., “Jumper Locations” on the next page shows the jumper locations for the board. M5271EVB User’s Manual...
Page 37
Installation and Setup Figure 2-5. Jumper Locations Chapter 2. Initialization and Setup...
Monitor initializes the board and then displays a power-up message on the terminal, which includes the amount of memory present on the board. Hard Reset DRAM Size: 16M Copyright 1995-2004 Motorola, Inc. All Rights Reserved. ColdFire MCF5271 EVS Firmware v2e.1a.xx (Build XXX on XXX XX 20XX xx:xx:xx) Enter 'help' for help.
Chapter 3 Using the Monitor/Debug Firmware The M5271EVB 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 40
User code may change these registers, but caution must be exercised as changes may render dBUG inoperable. A reference to “SP” (stack pointer) actually refers to general purpose address register seven, “A7.” M5271EVB User’s Manual...
Operational Procedure Operational Procedure System power-up and initial operation are described in detail in Chapter 2. This information is repeated here for convenience and to prevent possible damage. 3.2.1 System Power-up • Be sure the power supply is connected properly prior to power-up. •...
Copyright 1995-2004 Motorola, Inc. All Rights Reserved. Enter 'help' for help. dBUG> Other means can be used to re-initialize the M5271EVB firmware. These means are discussed in the following paragraphs. 3.2.2.1 External RESET Button External RESET (SW3) is the red button. Depressing this button causes all processes to terminate, resets the MCF5271 processor and board logic and restarts the dBUG firmware.
Command Line Usage 3.2.2.3 Software Reset Command dBUG does have a command that causes the dBUG to restart as if a hardware reset was invoked. The command is “RESET”. 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.
Page 44
SHOW show <option> Show Configurations STEP step Step (Over) SYMBOL symbol <symb> <-a symb value> <-r symb> -C|l|s> Symbol Management TRACE trace <num> Trace (Into) up begin end filename Upload Memory to File VERSION version Show Version M5271EVB User’s Manual...
Page 45
Commands Assembler 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, or a symbol name.
Page 46
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 0x20000 and ending at 0x30000 is identical to the data starting at 0x80000, the command is: 20000 80000 10000 M5271EVB User’s Manual...
Page 47
Commands Block Fill 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. If no <width>...
Page 48
40000 80000 200000 To copy the target code’s data section (defined by the symbols data_start and data_end) to 0x00200000, the command is: data_start data_end 200000 NOTE Refer to “upuser” command for copying code/data into Flash memory. 3-10 M5271EVB User’s Manual...
Page 49
Commands Breakpoints Usage:BR addr <-r> <-c count> <-t trigger> The BR command inserts or removes 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.
Page 50
This reads the 32-bit word located at 0x00040000 and compares it against the 32-bit value 0x0000ABCD. If no match is found, then the address is incremented to 0x00040004 and the next 32-bit value is read and compared. 3-12 M5271EVB User’s Manual...
Page 51
Commands 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.
Page 52
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 at 0x00040000, the command is: 40000 To disassemble code of the C function main(), the command is: _main 3-14 M5271EVB User’s Manual...
Page 53
Commands Download Console Usage:DL <offset> The DL command performs an S-record download of data obtained from the console, typically a serial port. The value for offset is converted according to the user-defined radix, normally hexadecimal. Please reference the ColdFire Microprocessor Family Programmer’s Reference Manual for details on the S-Record format.
Page 54
S-record file. The file should be sent as a text file with no special transfer protocol. Use this command with extreme caution, as any error can render dBUG useless! 3-16 M5271EVB User’s Manual...
Page 55
Commands Download Network Usage:DN <-c> <-e> <-i> <-s> <-o offset> <filename> The DN command downloads code from the network. The DN command handle files which are either S-record, COFF, ELF or Image formats. The DN command uses Trivial File Transfer Protocol (TFTP) to transfer files from a network host. In general, the type of file to be downloaded and the name of the file must be specified to the DN command.
Page 56
The specified range is also checked to insure that the entire destination range is valid within the same Flash device and that the src and dest are not within the same device. 3-18 M5271EVB User’s Manual...
Page 57
Commands Execute 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, or a symbol name. If no argument is provided, the GO command begins executing instructions at the current program counter.
Page 58
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 function bench(), the command is: gt _bench 3-20 M5271EVB User’s Manual...
Page 59
Commands Internal Register Display Usage:IRD <module.register> This command displays the internal registers of different modules inside the MCF5271. 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.
Page 60
The data parameter specifies the new value to be written into the register. Example: To modify the TMR register of the first Timer module to the value 0x0021, the command is: timer1.tmr 0021 3-22 M5271EVB User’s Manual...
Page 61
Commands HELP 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: help...
Page 62
<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 longword data from address 0x20000, the command is: lr.l 20000 3-24 M5271EVB User’s Manual...
Page 63
Commands Loop Write 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 longword data 0x12345678 to address 0x20000, the command is: lw.l 20000 12345678 Note that the following command writes 0x78 into memory:...
Page 64
To display a range of bytes from 0x00040000 to 0x00050000, the command is: md.b 40000 50000 To display a range of 32-bit values starting at 0x00040000 and ending at 0x00050000: md.l 40000 50000 3-26 M5271EVB User’s Manual...
Page 65
Commands Memory Modify 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, or a symbol name. Width specifies the size of the data that is modified. If no <width> is specified, the default of word sized data is used.
Page 66
Usage:mmap This command displays the memory map information for the M5271EVB 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 and which regions of memory are reserved for dBUG use (protected).
Page 67
Commands Register Display Usage:RD <reg> 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.
Page 68
The actual value will not be written to the register until target code is executed. Examples: To change register D0 on MC68000 and ColdFire to contain the value 0x1234, the command is: D0 1234 3-30 M5271EVB User’s Manual...
Page 69
Commands RESET Reset the Board and dBUG Usage:RESET The RESET command resets the board and dBUG to their 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 board adequately, cycle the power or press the reset button.
Page 70
The SD command displays a back trace of stack frames. This command is useful after some user code has executed that creates stack frames (i.e. nested function calls). After control is returned to dBUG, the SD command will decode the stack frames and display a trace of the function calls. 3-32 M5271EVB User’s Manual...
Page 71
Commands Set Configurations Usage:SET <option value> The SET command allows the setting of user-configurable options within dBUG. With no arguments, SET displays the options and values available. The SHOW command displays the settings in the appropriate format. The standard set of options is listed below. baud - This is the baud rate for the first serial port on the board.
Page 72
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: 0.0.0.0 client: 0.0.0.0 gateway: 0.0.0.0 netmask: 255.255.255.0 filename: test.s19 filetype: S-Record ethaddr: 00:CF:52:82:CF:01 3-34 M5271EVB User’s Manual...
Page 73
Commands STEP Step Over Usage:STEP The STEP command can be used to “step over” a subroutine call, rather than tracing every instruction in the subroutine. The ST command sets a temporary breakpoint one instruction beyond the current program counter and then executes the target code. The STEP command can be used to “step over”...
Page 74
-a main 40000 To remove the symbol “junk” from the table, the command is: symbol -r junk To see how full the symbol table is, the command is: symbol To display the symbol table, the command is: symbol 3-36 M5271EVB User’s Manual...
Page 75
Commands TRACE Trace Into Usage:TRACE <num> The TRACE command allows single-instruction execution. If num is provided, then num instructions are executed before control is handed back to dBUG. The value for num is a decimal number. The TRACE command sets bits in the processors’ supervisor registers to achieve single-instruction execution, and the target code executed.
Page 76
(specified by filename) over the network. The file created contains the raw binary data from the specified memory region. The UP command uses the Trivial File Transfer Protocol (TFTP) to transfer files to a network host. 3-38 M5271EVB User’s Manual...
Page 77
Commands VERSION Display dBUG Ver- sion Usage:VERSION The VERSION command displays the version information for dBUG. The dBUG version, build number and build date are all given. The version number is separated by a decimal, for example, “v 2b.1c.1a”. In this example, v 2b . 1c . 1a dBUG common CPU major board major...
-- produced by C compiler */ #else If C compiler does not produce a LINK/UNLK pair, the use the following code. asm (“ move.l4(sp),d1”); /* put ‘ch’into d1 */ asm (“ move.l#0x0013,d0”); /* select the function */ 3-40 M5271EVB User’s Manual...
TRAP #15 Functions asm (“ trap#15”); /* make the call */ #endif 3.5.2 IN_CHAR This function (function code 0x0010) returns an input character (from terminal) to the caller. The returned character is in D1. Assembly example: move.l #$0010,d0 Select the function trap Make the call, the input character is in d1.
Assembly example: move.l #$0000,d0 Select the function trap Make the call, exit to dBUG. C example: void board_exit_to_dbug (void) asm (“ move.l#0x0000,d0”); /* select the function */ asm (“ trap#15”); /* exit and transfer to dBUG */ 3-42 M5271EVB User’s Manual...
Client IP: ___.___.___.___ (IP address of the board) Server IP: ___.___.___.___ (IP address of the TFTP server) Gateway: ___.___.___.___ (IP address of the gateway) Netmask: ___.___.___.___ (Network netmask) MOTOROLA Appendix A. Configuring dBUG for Network Downloads...
Continuing with the above example, the compiler produces an executable COFF file, ‘a.out’. This file is copied to the /tftp_boot directory on the server with the command: rcp a.out santafe:/tftp_boot/a.out Change the default filename and filetype with the commands: set filename a.out set filetype coff M5271EVB User’s Manual MOTOROLA...
Reset the board, and wait one minute for the TFTP server to time out and terminate any open connections. Verify that the IP addresses for the server and gateway are correct. Also verify that a TFTP server is running on the server. MOTOROLA Appendix A. Configuring dBUG for Network Downloads...
Page 102
M5271EVB BOM Table C-1. M5271EVB BOM (continued) Item Reference Part Function D5,D7,D8,D12,D14 MBRS340T3 On Semi SMC Schottky Rectifier D10,D11 MRA4003T3 On Semi SMA Power Rectifier D15,D16 AA3528SRC Kingbright Red SMT LEDs D17,D18,D19,D20,D21,D22,D23, AA3528MBC Kingbright SMT LEDs Blue LED FB1,FB2,FB3,FB4 HI1206T500R-00...