background image

Chapter 1.  M5271EVB Introduction

  

1-13

Communication Ports

1.3.6

User’s Program

JP6 on the 16Mbit FLASH (U10) or JP7 if using 32Mbit FLASH (U11) allows users to test
code from boot/POR without having to overwrite the ROM Monitor.

When the jumper is set between pins 1 and 2, the behavior of the system is normal, dBUG
boots and then runs from 0xFFE00000 (0xFFC00000). When the jumper is set between
pins 2 and 3, the board boots from the top half of the FLASH (0xFFF00000).

Procedure:

1. Compile and link as though the code was to be placed at the base of the flash.

2. Set up the jumper JP6 (JP7 for U11) for Normal operation, pin1 connected to pin 2. 

3. Download to SDRAM (If using serial or ethernet, start the ROM Monitor first. If 

using BDM via a wiggler cable, download first, then start ROM Monitor by 
pointing the program counter (PC) to 0xFFE00400(0xFFC00400) and run.)

4. In the ROM Monitor, execute the 'FL write <dest> <src> <bytes>' command.

5. Move jumper JP6 (JP7 for U11) to pin 2 connected to pin 3 and push the reset 

button (SW3). User code should now be running from reset/POR.

1.4

Communication Ports

The EVB provides external communication interfaces for three UART serial ports, QSPI,
I

2

C port, 10/100T ethernet port, and BDM/JTAG port.

1.4.1

UART0, UART1, UART2 Ports

The MCF5271 device has three built in UARTs, each with its own software programmable
baud rate generator. These UART interfaces are brought out to RS232 transceivers. One
channel is the ROM Monitor to Terminal output and the other two are available to the user.
The ROM Monitor programs the interrupt level for UART0 to Level 3, priority 2 and
autovector mode of operation. 

Refer to the MCF5271 User’s Manual for programming the UART’s and their register
maps. 

1.4.2

10/100T Ethernet Port

The MCF5271 device performs the full set of IEEE 802.3/Ethernet CSMA/CD media
access control and channel interface functions. 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).

Содержание M5271EVB

Страница 1: ...M5271EVBUM Rev 1 0 6 2004 M5271EVB User s Manual Supports Devices MCF5271 MCF5270 ...

Страница 2: ...intended or authorized 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 Buy...

Страница 3: ...fessional laboratory 3 In a domestic environment this product may cause radio interference in which case the user may be required to take adequate measures 4 Anti static precautions must be adhered to when using this product 5 Attaching additional cables or wiring to this product or modifying the products oper ation from the factory default as shipped may effect its performance and also cause inte...

Страница 4: ...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 ...

Страница 5: ... 1 3 2 Clock Circuitry 1 11 1 3 3 Watchdog Timer 1 11 1 3 4 Exception Sources 1 11 1 3 5 TA Generation 1 12 1 3 6 User s Program 1 13 1 4 Communication Ports 1 13 1 4 1 UART0 UART1 UART2 Ports 1 13 1 4 2 10 100T Ethernet Port 1 13 1 4 3 BDM JTAG Port 1 14 1 4 4 I2C 1 15 1 4 5 QSPI 1 16 1 5 Connectors and User Components 1 16 1 5 1 Daughter Card Expansion Connectors 1 16 1 5 2 Reset Switch SW3 1 20...

Страница 6: ... 4 Using The BDM Port 2 8 Chapter 3 Using the Monitor Debug Firmware 3 1 What Is dBUG 3 1 3 2 Operational Procedure 3 3 3 2 1 System Power up 3 3 3 2 2 System Initialization 3 4 3 2 2 1 External RESET Button 3 4 3 2 2 2 ABORT Button 3 4 3 2 2 3 Software Reset Command 3 5 3 3 Command Line Usage 3 5 3 4 Commands 3 5 3 5 TRAP 15 Functions 3 40 3 5 1 OUT_CHAR 3 40 3 5 2 IN_CHAR 3 41 3 5 3 CHAR_PRESENT...

Страница 7: ...CONTENTS Paragraph Number Title Page Number MOTOROLA Contents 7 Appendix C M5271EVB BOM C 1 M5271EVB BOM C 1 ...

Страница 8: ...8 M5271EVB User s Manual MOTOROLA CONTENTS Paragraph Number Title Page Number ...

Страница 9: ...e MCF5271 specification and can therefore be fully emulated using the MCF5271 device Table 1 1 M5270 71 Product Family below details the two devices All of the devices in the same package are pin compatible The EVB provides for low cost software testing with the use of a ROM resident debug mon itor dBUG programmed into the external Flash device Operation allows the user to load code in the on boar...

Страница 10: ...nsceiver with MII UART0 RS 232 serial port for dBUG firmware UART1 auxiliary RS 232 serial port UART2 auxiliary RS 232 serial port I2C interface QSPI interface to ADC BDM JTAG interface User Interface Reset logic switch debounced Boot logic selectable dip switch Abort IRQ7 logic switch debounced PLL Clocking options Oscillator Crystal or SMA for external clocking signals LEDs for power up indicati...

Страница 11: ...271 include V2 ColdFire core with enhanced multiply accumulate unit EMAC providing 96 Dhrystone 2 1MIPS 100MHz 64 Kbytes of internal SRAM External bus speed of one half the CPU operating frequency 50MHz bus 100Mhz core 10 100 Mbps bus mastering Ethernet controller 8 Kbytes of configurable instruction data cache ColdFire MCF5271 4 60 pin Daughter Card Expansion Connectors Peripheral Signals Data 31...

Страница 12: ...ort page mode FLASH memories The MCF5271 communicates with external devices over a 32 bit wide data bus D 31 0 The MCF5271 can address a 32 bit address range However only 24 bits are available on the external bus A 23 0 There are internally generated chip selects to allow the full 32 bit address range to be selected There are regions that can be decoded to allow supervisor user instruction and dat...

Страница 13: ...IT1 PIT2 PIT3 4 CH DMA UART 0 UART 1 I2C QSPI DTIM 0 DTIM 1 DTIM 2 DTIM 3 Timer PADI Pin Muxing PLL CLKGEN UART 2 8 Kbytes Edge Port SDRAMC CHIP EBI SELECTS To From PADI To From FAST CONTROLLER FEC FEC TnIN QSPI PORTS CIM GPIO R W TA TEA DIV EMAC DREQ 2 0 INTC1 Arbiter To From SRAM backdoor To From Arbiter SKHA RNGA MDHA To From PADI Cryptography DACK 2 0 BDM To From INTC MUX PADI JTAG_EN ...

Страница 14: ...r to up grade this device to a 512K x 32 page mode FLASH memory U11 doubling the memory size to 4Mbytes Either U10 OR U11 should be fitted on the board both devices cannot be populated at the same time Refer to the specific device data sheet and sample software pro vided for configuring the FLASH memory Users should note that the debug monitor firmware is installed on this flash device Devel opmen...

Страница 15: ...M memory which may be used as data or instruction memory This memory is mapped to 0x2000_0000 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 within the processor s four gigabyte address space 1 2 5 M5271EVB Mem...

Страница 16: ...riority mask in the SR to the highest level level 7 Next the VBR is initialized to zero 0x00000000 The control registers specifying the operation of any memories e g cache and or RAM modules connected directly to the processor are disabled Once the processor is granted the bus it then performs two longword read bus cycles The first longword at address 0 is loaded into the stack pointer and the sec...

Страница 17: ...nfiguration pin functions after reset are configured according to the levels driven onto the external data pins See tables below on settings for reset configurations If the RCON pin is not asserted SW4 1 OFF during reset the chip configuration and the reset configuration pin functions after reset are determined by the RCON register or fixed defaults regardless of the states of the external data pi...

Страница 18: ... X OFF Master Table 1 8 SW4 7 6 Boot Device SW4 6 SW4 7 RCON SW4 1 Boot Device OFF OFF ON External 32 bit OFF ON ON External 8 bit ON OFF ON External 16 bit ON ON ON External 32 bit X X OFF External 32 bit Table 1 9 SW4 8 Bus Drive Strength SW4 8 RCON SW4 1 Drive Strength OFF ON Partial Bus Drive ON ON Full Bus Drive X OFF Partial Bus Drive Table 1 10 SW4 10 9 Address Chip Select Mode SW4 9 SW4 10...

Страница 19: ...he source of interrupt is not capable of providing a vector its interrupt should be set up as an autovector interrupt which directs the processor to a predefined entry in the exception table refer to the MCF5271 User s Manual The processor goes to an exception routine via the exception table This table is stored in the Flash EEPROM The address of the table location is stored in the VBR The dBUG RO...

Страница 20: ...bout the interrupt controller 1 3 5 TA Generation The processor starts a bus cycle by asserting CSx with the other control signals The processor then waits for a transfer acknowledgment TA either from within Auto acknowledge AA mode or from the externally addressed device before it can complete the bus cycle TA is used to indicate the completion of the bus cycle It also allows devices with differe...

Страница 21: ...in 2 connected to pin 3 and push the reset button SW3 User code should now be running from reset POR 1 4 Communication Ports The EVB provides external communication interfaces for three UART serial ports QSPI I2C port 10 100T ethernet port and BDM JTAG port 1 4 1 UART0 UART1 UART2 Ports The MCF5271 device has three built in UARTs each with its own software programmable baud rate generator These UA...

Страница 22: ...ive FIFO for runts collision fragments and address recognition rejects no processor bus utilization Address recognition Frames with broadcast address may be always accepted or always rejected Exact match for single 48 bit individual unicast address Hash 64 bit hash check of individual unicast addresses Hash 64 bit hash check of group multicast addresses Promiscuous mode For more details see the MC...

Страница 23: ...it Interrupt driven byte by byte data transfer Arbitration lost interrupt with automatic mode switching from master to slave Calling address identification interrupt Start and stop signal generation and detection Repeated start signal generation Acknowledge bit generation and detection Bus busy detection Please see the MCF5271 User s Manual for more detail The I2C signals from the MCF5271 device a...

Страница 24: ...ents Four peripheral chip select lines for control of up to 15 devices Baud rates from 147 1 Kbps to 18 75 Mbps at 75MHz Programmable delays before and after transfers Programmable QSPI clock phase and polarity Supports wrap around mode for continuous transfers Please see the MCF5271 User s Manual for more detail The QSPI signals from the MCF5271 device are brought out to expansion connector J8 1 ...

Страница 25: ...PI_SCK 32 QSPI_DIN 33 BS3 34 QSPI_DOUT 35 BS2 36 QSPI_CS0 37 BS1 38 SD_SCKE 39 BS0 40 NC 41 U2RTS 42 U2RXD 43 QSPI_PCS1 44 U1CTS 45 U1RTS 46 NC 47 U1RXD 48 U2TXD 49 U1TXD 50 CS2 51 CS3 52 CS7 53 CS6 54 CS5 55 CS1 56 CS0 57 CS4 58 A23 59 GND 60 GND Table 1 13 J4 Pin Signal Pin Signal 1 5V 2 1 5V 3 3 3V 4 3 3V 5 NC 6 NC 7 NC 8 NC 9 ERXD1 10 NC 11 ERXD3 12 NC 13 ERXD2 14 NC Table 1 12 J3 Pin Signal P...

Страница 26: ...9 U0RTS 30 GND 31 CLKMOD0 32 3 3V 33 CLKMOD1 34 GND 35 GND 36 D28 37 D30 38 D29 39 D31 40 D24 41 D26 42 D25 43 D27 44 D21 45 D23 46 D22 47 EXT_RSTIN 48 D19 49 GND 50 GND 51 D13 52 D20 53 D9 54 D17 55 D12 56 D18 57 D15 58 D16 59 GND 60 GND Pin Signal Pin Signal 1 5V 2 1 5V 3 3 3V 4 3 3V 5 3 3V 6 3 3V 7 GND 8 GND 9 A21 10 A22 11 A19 12 A20 13 A17 14 A18 Table 1 13 J4 Pin Signal Pin Signal ...

Страница 27: ...A5 30 GND 31 A2 32 A0 33 A3 34 A1 35 GND 36 GND 37 DTIN3 38 NC 39 DTOUT3 40 NC 41 TIP 42 TEA 43 TS 44 TA 45 NC 46 SD_WE 47 R W 48 NC 49 SD_CAS 50 SD_CS0 51 CLKOUT 52 SD_RAS 53 SD_CS1 54 DDATA3 55 XTAL 56 EXTAL 57 GND 58 GND 59 GND 60 GND Pin Signal Pin Signal 1 5V 2 1 5V 3 3 3V 4 3 3V 5 D14 6 D10 7 D11 8 D6 9 D7 10 D8 11 D5 12 D4 13 GND 14 GND 15 D1 16 D2 Pin Signal Pin Signal ...

Страница 28: ...is fed to the MCF5271 reset RESET The RESET signal is an open collector signal and so can be wire 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 17 D3 18 OE 19 D0 20 DTOUT1 21 DTIN1 22 3 3V 23 3 3V 24 IRQ6 25 IRQ7 26 TSIZ0 27 TSIZ1 28 IR...

Страница 29: ...LEDs are pulled to 3 3V through a 10 ohm resistor and can be illuminated by driving a logic 0 on the appropriate signal to sink the current Each of these signals can be disconnected from it s associated LED with a jumper The table below details which MCF5271 signal is associated with which LED 1 5 4 Other LEDs There are several other LED s on the M5271EVB to signal to the user various board proces...

Страница 30: ...1 22 M5271EVB User s Manual Connectors and User Components D16 Reset RSTI asserted D17 D24 User LEDs See Table 1 16 User LEDs Table 1 17 LED Functions LED Function ...

Страница 31: ...quires 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 RS232 Communication cable provided Figure 2 1 Minimum System Configuration displays the minimum system configuration ...

Страница 32: ...2 2 M5271EVB User s Manual System Configuration Figure 2 1 Minimum System Configuration 7 to 14VDC Input Power RS 232 Terminal Or PC dBUG ...

Страница 33: ...le Board Computer M5271EVB User s Manual this document One RS232 communication cable One BDM Background Debug Mode wiggler cable MCF5271UM ColdFire Integrated Microprocessor User Manual ColdFire Programmers Reference Manual A selection of 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...

Страница 34: ...e EVB Connector P1 is a 2 1mm power jack Figure 2 2 2 1mm Power Connector P3 a lever actuated connector Figure 2 3 2 Lever Power Connector Figure 2 2 2 1mm Power Connector Figure 2 3 2 Lever Power Connector 2 2 4 Power Switch SW1 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 t...

Страница 35: ...cter Format The character format of the communication channel is fixed at power up or RESET The default character format is 8 bits per character no parity and one stop bit with no flow control It is necessary to ensure that the terminal or PC is set to this format 2 2 8 Connecting the Terminal The board is now ready to be connected to a PC terminal Use the RS 232 serial cable to connect the PC ter...

Страница 36: ... press the p key while pressing the Alt key to choose the baud rate and character format The character format should be 8 bits no parity one stop bit see section 1 9 5 The Terminal Character Format The baud rate should be set to 19200 Power can now be applied to the board Figure 2 4 Pin Assignment for Female Terminal Connector Pin assignments are as follows Figure 2 5 Jumper Locations on the next ...

Страница 37: ...Chapter 2 Initialization and Setup 2 7 Installation and Setup Figure 2 5 Jumper Locations ...

Страница 38: ...olarity voltage level and current capability 1A and is connected to the board 2 Check that the terminal and board are set for the same character format and baud 3 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 Freescale Semiconductor for further instructions please see the beg...

Страница 39: ...onment 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 terminal is utilized to connect to the debugger For serial com...

Страница 40: ...ed the operation continues in one of the two basic modes If the command causes execution of the user program the dBUG firmware may or may not be re entered at the discretion of the user s 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 ...

Страница 41: ... damage 3 2 1 System Power up Be sure the power supply is connected properly prior to power up Make sure the terminal is connected to TERMINAL P3 connector Turn power on to the board Figure 3 1 shows the dBUG operational mode Figure 3 1 Flow Diagram of dBUG Operational Mode COMMAND LINE INPUT FROM TERMINAL DOES COMMAND LINE CAUSE USER PROGRAM EXECUTION NO YES YES EXECUTE COMMAND FUNCTION INITIALIZ...

Страница 42: ...2 2 ABORT Button ABORT SW2 is the button located next to the RESET button The abort function causes an interrupt of the present processing a level 7 interrupt on MCF5271 and gives control to the dBUG firmware This action differs from RESET in that no processor register or memory contents are changed the processor and peripherals are not reset and dBUG is not restarted Also in response to depressin...

Страница 43: ...al side The Backspace and Delete keys are recognized as rub out keys for correcting typographical mistakes Command lines may be recalled using the Control U Control D and Control R key sequences Control U and Control D cycle up and down through previous command lines Control R recalls and executes the last command line In general dBUG is not case sensitive Commands may be entered either in upperca...

Страница 44: ...rc bytes Flash Utilities GO go addr Execute GT gt addr Execute To HELP help command Help IRD ird module register Internal Register Display IRM irm module register data Internal Register Modify LR lr 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 Reg...

Страница 45: ...d and the 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...

Страница 46: ...e 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 0x20000 and ending at 0x30000 is identical...

Страница 47: ...decrement the data value 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 0x00020000 and ending at 0x00040000 with the value 0x1234 the command is bf 20000 40...

Страница 48: ...olute 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 0x00040000 and ending at 0x00080000 to the location 0x00200000 the command is bm 40000 80000 200000 To copy the target code s data section defined by the symbols data_...

Страница 49: ...t for 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 breakpoi...

Страница 50: ...nd then 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 16 bit value 0x1234 in the memory block starting at 0x00040000 and ending at 0x00080000 bs 40000 80000 1234 This reads the 16 bit word located at 0x00040000 and compares it against the 16 bit value 0x1234 If no matc...

Страница 51: ...ay be a symbol name or an absolute value If an absolute value passed into the DC command is prefixed by 0x then data is interpreted as a hexadecimal value Otherwise data is interpreted as a decimal value All values are treated as 32 bit quantities Examples To display the decimal and binary equivalent of 0x1234 the command is dc 0x1234 To display the hexadecimal and binary equivalent of 1234 the co...

Страница 52: ...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 at 0x0004...

Страница 53: ...at If offset is provided then the destination address of each S record is adjusted by offset The DL 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 If the S record file contains the entry point address then the program counter is set to reflect this address Exampl...

Страница 54: ...ained from the console and programs the new dBUG image into Flash When the DLDBUG command is issued dBUG will prompt the user for verification before any actions are taken If the the command is affirmed the Flash is erased and the user is prompted to begin sending the new dBUG S record file The file should be sent as a text file with no special transfer protocol Use this command with extreme cauti...

Страница 55: ...ame and filetype 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 extr...

Страница 56: ...FL command will attempt to erase the number of bytes specified on the command line beginning at addr If this range doesn t start and end on Flash sector boundaries the range will be adjusted automatically and the user will be prompted for verification before proceeding When the write command is given the FL command will program the number of bytes specified from src to dest An erase of this region...

Страница 57: ...n 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 trap 15 exception 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...

Страница 58: ...te 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 function bench...

Страница 59: ...mmand 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 Use the IRD command without any parameters to get a list of all the valid modules Refer to the MCF5271 user s manual for more information on these modules and the registers they contain Example ird...

Страница 60: ...ifferent 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 modify 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 irm timer1 tmr 0021 ...

Страница 61: ...ands available within dBUG In addition the address of where user code may start is given If command is provided then a brief listing of the syntax of the specified command is displayed Examples To obtain a listing of all the commands available within dBUG the command is help To obtain help on the breakpoint command the command is help br ...

Страница 62: ... 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 longword data from address 0x20000 the command is lr l 20000 ...

Страница 63: ...ntinually 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 lw b 20000 12345678 ...

Страница 64: ...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 at address...

Страница 65: ...diately sets the 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 d...

Страница 66: ...information on how the Chip selects are used on the board and which regions of memory are reserved for dBUG use protected Here is an example of the output from this command Type Start End Port Size SDRAM 0x00000000 0x00FFFFFF 32 bit SRAM Int 0x20000000 0x2000FFFF 32 bit ASRAM Ext 0x30000000 0x3007FFFF 32 bit IPSBAR 0x40000000 0x7FFFFFFF 32 bit Flash Ext 0xFFE00000 0xFFFFFFFF 16 bit Protected Start...

Страница 67: ...registers by storing a copy of the register set in a buffer The RD command displays register values from the register buffer Examples To display all the registers and their values the command is rd To display only the program counter rd pc Here is an example of the output from this command PC 00000000 SR 2000 t Sm 000 xnzvc An 00000000 00000000 00000000 00000000 00000000 00000000 00000000 01000000...

Страница 68: ...ymbol 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 register D0 on MC68000 and ColdFire to contain the value 0x1234 the co...

Страница 69: ... 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 Examples To reset the board and clear the dBUG data structures the command is reset ...

Страница 70: ...mand 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 ...

Страница 71: ...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 your local subnetwork If the client IP address and server IP address are not on the same subnetwork then this option must be properly set Your local netwo...

Страница 72: ...ided 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 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 ...

Страница 73: ... instruction beyond the current program counter and then executes the target code 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 never regain control Examples To p...

Страница 74: ... 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 ethern...

Страница 75: ... 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...

Страница 76: ...and uploads the data from a memory region specified by begin and end to a file 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 ...

Страница 77: ...er and build 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 2b 1c 1a dBUG common major and minor revision CPU major and minor revision board major and minor revision ...

Страница 78: ...on code 0x0013 sends a character which is in the lower 8 bits of D1 to the terminal Assembly example assume d1 contains the character move l 0013 d0 Selects the function TRAP 15 The character in d1 is sent to terminal C example void board_out_char int ch If your C compiler produces a LINK UNLK pair for this routine then use the following code which takes this into account if l LINK a6 0 produced b...

Страница 79: ...ard_in_char void asm move l 0x0010 d0 select the function asm trap 15 make the call asm move ld1 d0 put the character in d0 3 5 3 CHAR_PRESENT This function function code 0x0014 checks if an input character is present to receive A value of zero is returned in D0 when no character is present A non zero value in D0 means a character is present Assembly example move l 0014 d0 Select the function trap...

Страница 80: ...nsfers the control back to the dBUG by terminating the user code The register context are preserved Assembly example move l 0000 d0 Select the function trap 15 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 ...

Страница 81: ...rs connected to an Ethernet network running the IP protocol need 3 network specific parameters These parameters are Internet Protocol IP 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 o...

Страница 82: ... servers will only permit access to files starting at a particular sub directory This is a security feature which prevents reading of arbitrary files by unknown persons For example SunOS uses the directory tftp_boot as the default TFTP directory When specifying a filename to a SunOS TFTP server all filenames are relative to tftp_boot As a result you normally will be required to copy the file to do...

Страница 83: ...etwork download to fail and probably other severe network problems Make certain the client IP address is unique for the board Check for proper insertion or connection of the network cable Is the status LED lit indicating that network traffic is present Check for proper configuration and operation of the TFTP server Most Unix workstations can execute a command named tftp which can be used to connec...

Страница 84: ...A 4 M5271EVB User s Manual MOTOROLA Troubleshooting Network Problems ...

Страница 85: ...MOTOROLA Appendix B Schematics B 1 Appendix B Schematics B 1 M5271EVB Schematics ...

Страница 86: ...B 2 M5271EVB User s Manual MOTOROLA M5271EVB Schematics ...

Страница 87: ...ss otherwise stated Date SHEET 11 FLASH MEMORY Rev SHEET 12 Revision Information SHEET 6 SHEET 13 Designer SHEET 2 Notes All test points are denoted TPx 1 0 SHEET 4 4 Mar 04 RESET CONFIGURATION AND CLOCKING CIRCUITRY SHEET 8 ADDRESS AND DATA BUS BUFFERS All decoupling caps greater than 0 1uF are X7R SMD 0805 unless otherwise stated Provisional release M5271EVB Evaluation Board All Switches are den...

Страница 88: ... 23 0 B_D 31 0 CS 7 0 OE R W Sheet 12 SDRAM BS 3 0 SD_CS0 SD_WE SD_SCKE D 31 0 SD_RAS A 23 0 CLKOUT SD_CAS Sheet 8 Expansion Connectors U0CTS U0RXD DTOUT0 DTIN0 U0TXD U0RTS CLKMOD 1 0 D 31 0 EXT_RSTIN OE DTOUT1 DTIN1 IRQ 7 1 TSIZ0 TCLK PSTCLK DTOUT2 DTIN2 TDI DSI TDO DSO TMS BKPT TRST DSCLK PST 3 0 DDATA 3 0 JTAG_EN RCON RSTOUT RESET EXTAL XTAL SD_CS1 CLKOUT SD_CAS SD_CS0 SD_RAS R W SD_WE TS TIP T...

Страница 89: ...M Lower 16 bit word TSOP II TSOP II Each ASRAM is 256K x 16bit 512KB Total ASRAM available 1MB NOTE Alternative ASRAM s with the same PCB footprint and functionality are Renesas HM62W16255HCJP 12 NOTE Place the SMT footprints for both these ASRAM s on the underside of the PCB close to the CPU Motorola SPS TSPG TECD ColdFire Group A0 1 A1 2 A2 3 A3 4 A4 5 CE 6 I 00 7 I 01 8 I 02 9 I 03 10 VCC 11 VS...

Страница 90: ...5 19 2B6 20 2B7 22 2B8 23 1DIR 1 1OE 48 2OE 25 2DIR 24 GND 4 GND 10 GND 15 GND 21 GND 28 GND 34 GND 39 GND 45 1A1 47 1A2 46 1A3 44 1A4 43 1A5 41 1A6 40 1A7 38 1A8 37 2A1 36 2A2 35 2A3 33 2A4 32 2A5 30 2A6 29 2A7 27 2A8 26 VCC 7 VCC 18 VCC 31 VCC 42 U3 MC74LCX16245DT U3 MC74LCX16245DT C9 0 1uF C9 0 1uF 1B1 2 1B2 3 1B3 5 1B4 6 1B5 8 1B6 9 1B7 11 1B8 12 2B1 13 2B2 14 2B3 16 2B4 17 2B5 19 2B6 20 2B7 2...

Страница 91: ...C D4 ECRS E1 ECOL E2 NC E3 DTIN0 E4 VDD E5 U0TXD F1 U0RXD F2 U0CTS F3 DTOUT0 F4 TEST F5 VSS F6 D31 G1 D30 G2 U0RTS G3 Core VDD G4 CLKMOD1 G5 VDD G6 D29 H1 D28 H2 D27 H3 D26 H4 CLKMOD0 H5 VSS H6 D25 J1 D24 J2 D23 J3 D22 J4 VSS J5 VDD J6 D21 K1 D20 K2 D19 K3 D18 K4 D17 L1 D16 L2 D10 L3 Core VDD L4 D15 M1 D13 M2 D9 M3 D14 N1 D12 N2 VSS P1 D11 P2 D7 P3 D8 N3 D4 P4 D5 N4 D6 M4 D0 P5 D1 N5 D2 M5 D3 L5 V...

Страница 92: ...1 3 M5271EVB A 6 13 Wednesday April 21 2004 Default setting for JP3 is fitted NOTE JP3 is required for some of the legacy BDM cables that connect pins 9 25 of the BDM interface internally More recent cables support both core I O voltages Please check with your BDM cable supplier Core Voltage IMPORTANT NOTE ONLY 3 3V BDM debugging cables can be used with the MCF5271 processor I O Voltage NOTE 4 7K ...

Страница 93: ... R4 49 9 1 R4 49 9 1 D3 D3 C53 0 1uF C53 0 1uF R8 4 7K R8 4 7K C54 47uF C54 47uF C55 0 1uF C55 0 1uF C57 0 1uF C57 0 1uF C51 0 1uF C51 0 1uF 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 RP6 4x 51 RP6 4x 51 MDIO 1 MDC 2 RXD3 PHYAD1 3 RXD2 PHYAD2 4 RXD1 PHYAD3 5 RXD0 PHYAD4 6 VDDIO 7 GND 8 RXDV PCS_LPBK 9 RXC 10 RXER ISO 11 GND 12 VDDC 13 TXER 14 TXC REFCLK 15 TXEN 16 TXD0 17 TXD1 18 TXD2 19 TXD3 20 COL RMII 21 ...

Страница 94: ...Document Number Rev Date Sheet of Expansion Connectors 1 3 M5271EVB C 8 13 Wednesday April 21 2004 Title Size Document Number Rev Date Sheet of Expansion Connectors 1 3 M5271EVB C 8 13 Wednesday April 21 2004 NOTE if designing a daughter card to fit these expansion connectors please ensure all signals are buffered on the daughter card Motorola SPS TSPG TECD ColdFire Group C62 10nF C62 10nF C63 470...

Страница 95: ...the top bottom boot sector set JP5 between pins 2 3 To disable hardware protect set between pins 1 2 default 16 Mbit Flash boot Default setting JP26 fitted across pins 1 2 Memory Size 1M x 16 2MB Motorola SPS TSPG TECD ColdFire Group R15 4 7K R15 4 7K C84 0 1uF C84 0 1uF CE A8 VSS B8 NC A7 WORD B7 OE C7 WE A6 NC B6 NC C6 NC A5 ACC B5 WP C5 NC D5 NC E5 A1 A4 A2 B4 A3 C4 A0 D4 A4 A3 A5 B3 VCC B2 DQ3...

Страница 96: ...ound for plane for ethernet RJ45 connector Motorola SPS TSPG TECD ColdFire Group 1 2 P2 P2 2 1 D7 MBRS340T3 D7 MBRS340T3 1 2 FB3 FB3 C97 0 1uF C97 0 1uF VIN 3 ADJ 1 VOUT 2 U14 LT1086CM U14 LT1086CM D9 5V GREEN POWER LED D9 5V GREEN POWER LED 2 1 D12 MBRS340T3 D12 MBRS340T3 R22 120 R22 120 R20 560 R20 560 R23 22 R23 22 C88 330uF C88 330uF L2 25uH L2 25uH C89 0 1uF C89 0 1uF C93 330uF C93 330uF 1 2 ...

Страница 97: ...d pull down resistor pack connections on all schematics pages need to be connected to an unmasked via NOTE Place TP8 TP9 TP10 TP11 at the corners of the PCB to allow easy connection of scope probe ground leads NOTE Please place D17 through D24 together in a line DTIN0 LED DTIN1 LED DTIN2 LED DTIN3 LED DTOUT0 LED DTOUT1 LED DTOUT2 LED DTOUT3 LED Crystal Enable Default setting for JP13 through JP20 ...

Страница 98: ...o the MCF5271 U8 as possible to minimise track lengths Particularly in relation to the SDRAM control signals clocks where if possible these tracks should be a similar length i e within 5mm Motorola SPS TSPG TECD ColdFire Group C100 1nF C100 1nF C101 1nF C101 1nF C102 1nF C102 1nF C103 1nF C103 1nF VDD 1 DQ0 2 VDDQ 3 DQ1 4 DQ2 5 VSSQ 6 DQ3 7 DQ4 8 VDDQ 9 DQ5 10 DQ6 11 VSSQ 12 DQ7 13 VDD 14 DQML 15 ...

Страница 99: ...ng for JP23 to JP24 is fitted Default setting for JP21 to JP22 is fitted Motorola SPS TSPG TECD ColdFire Group C115 0 1uF C115 0 1uF C111 0 1uF C111 0 1uF 5 9 4 8 3 7 2 6 1 P5 P5 C119 0 1uF C119 0 1uF C108 0 1uF C108 0 1uF 1 2 JP25 JP25 C112 0 1uF C112 0 1uF 1 2 3 4 5 6 7 8 9 10 J8 J8 C124 1nF C124 1nF 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 RP23 4x 4 7K RP23 4x 4 7K 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 RP24 4...

Страница 100: ...B 16 M5271EVB User s Manual MOTOROLA M5271EVB Schematics ...

Страница 101: ...C90 C94 C97 C104 C10 5 C106 C107 C108 C109 C110 C111 C112 C113 C114 C115 C11 6 C117 C118 C119 C121 C123 C1 25 0 1uF SMT Decoupling Capacitors 3 8 C19 C20 C28 C29 C35 C36 C37 C38 100pF SMT Capacitors 4 2 C25 C95 10uF TANT SMT Capacitors 5 2 C50 C54 47uF TANT SMT Capacitors 6 7 C59 C61 C62 C69 C70 C71 C72 10nF SMT Capacitors 7 1 C60 10uF AVX SMT Capacitors 8 6 C63 C64 C73 C74 C75 C76 470pF SMT Capac...

Страница 102: ...Connector w mag 24 4 J3 J4 J5 J6 AMP 177983 2 60 SMT Recpetacle 25 1 J7 AMP 1053378 1 RF SMB V External Clock conn 26 1 J8 Molex 22 10 2101 Conn 1x10 1 male header 27 1 J9 Molex 22 10 2041 Conn 1x4 1 male header 28 1 L1 1210 103J API Delevan External 10uH inductor 29 2 L2 L3 SIEMENS B82111 B C24 25uH Inductors 30 1 P1 Switchcraft RAPC722 power jack 2 1mm 31 4 P2 Augat 25V 02 2 way bare wire power ...

Страница 103: ...KS11R23CQD Hard reset push button switch 54 1 SW4 Grayhill 78RB12 Configuration DIP switch 55 11 TP1 TP2 TP3 TP4 TP5 TP6 TP7 T P8 TP9 TP10 TP11 Keystone 5015 Test points 56 2 U1 U2 CY7C1041CV3310ZC ASRAM Not populated 57 3 U3 U4 U6 MC74LCX16245DT Bus transceiver 58 2 U5 U18 SN74LVC1G11 3 input positive AND gate 59 1 U7 MC74LCX245DT Bus transceiver 60 1 U8 MCF5271CVM100 Motorola MCF5271 microproces...

Страница 104: ...5271EVB User s Manual MOTOROLA M5271EVB BOM 71 2 U20 U21 MT48LC4M16A2TG TSOP II 400 mil SDRAM 72 3 U22 U23 U24 MAX3225CAP RS232 Transceivers Table C 1 M5271EVB BOM continued Item Qty Reference Part Function ...

Отзывы: