Table of Contents

Advertisement

Quick Links

Freescale Semiconductor, Inc.
M5407C3 User's Manual
M5407C3UM/D
Rev. 1.1, 8/2000

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the M5407C3 and is the answer not in the manual?

Questions and answers

Summary of Contents for Freescale Semiconductor M5407C3

  • Page 1 Freescale Semiconductor, Inc. M5407C3 User's Manual M5407C3UM/D Rev. 1.1, 8/2000...
  • Page 2 Freescale Semiconductor product For Literature Requests Only: could create a situation where personal injury or death may occur. Should Buyer...
  • Page 3: Limited Warranty

    Freescale Semiconductor, Inc. LIMITED WARRANTY Matrix Design warrants this product against defects in material and workmanship for a period of sixty (60) days from the original date of purchase. This warranty extends to the original customer only and is in lieu of all other warrants, including implied warranties of merchantability and fitness.
  • Page 4 Freescale Semiconductor, Inc. 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.
  • Page 5: Table Of Contents

    Connecting the Terminal ................1-8 1.9.7 Using a Personal Computer as a Terminal............1-8 1.10 System Power-up and Initial Operation............1-11 1.11 M5407C3 Jumper Setup ................... 1-11 1.12 Using The BDM Port ..................1-13 Chapter 2 Using the Monitor/Debug Firmware What Is dBUG?....................2-1 Operational Procedure ..................
  • Page 6 Connectors and Expansion Bus ................ 3-11 3.6.1 Expansion Connectors - J1 and J2 ..............3-11 3.6.2 The Debug Connector J5 ................3-13 Appendix A Configuring dBUG for Network Downloads Appendix B ColdFire to ISA, IRQ7 and Reset Logic Abel Code Appendix C M5407C3 User’s Manual...
  • Page 7 Freescale Semiconductor, Inc. CONTENTS Paragraph Page Title Number Number SDRAM MUX PAL Equation Appendix D Evaluation Board BOM Appendix E Schematics Appendix F Errata Contents PRELIMINAR WITHOUT NOTICE...
  • Page 8 Freescale Semiconductor, Inc. CONTENTS Paragraph Page Title Number Number viii M5407C3 User’s Manual PRELIMINAR WITHOUT NOTICE...
  • Page 9 Freescale Semiconductor, Inc. apps docs:ColdFire:5407:Eval Board UM NEW:5407C3UMLOF.fm 8/14/00 ILLUSTRATIONS Figure Page Title Number Number 5407 Block Diagram ..................... 1-3 Minimum System Configuration .................. 1-6 Pin assignment for female P4 (Terminal) connector............ 1-9 Jumper Locations ......................1-10 Flow Diagram of dBUG Operational Mode..............2-4 The J5 Connector pin assignment ................
  • Page 10 Freescale Semiconductor, Inc. ILLUSTRATIONS Figure Page Title Number Number BookTitle PRELIMINAR WITHOUT NOTICE...
  • Page 11 Power Supply Connections ................... 1-8 Jumper Settings......................1-11 Jumper Settings......................1-13 Jumper Settings......................1-13 dBUG Command Summary..................2-7 The M5407C3 Memory Map ..................3-5 J1 Connector Pin Assignment..................3-11 J2 Connector pin assignment ..................3-12 MCF5407EVM_BOM ....................D-1 Tables PRELIMINAR...
  • Page 12 Freescale Semiconductor, Inc. TABLES Table Page Title Number Number M5407C3 User’s Manual PRELIMINAR WITHOUT NOTICE...
  • Page 13: M5407C3 Board

    (refer to MCF5407 User's Manual by Freescale for detailed information about the SIM.). The M5407C3 uses four (CS[3:0]) of the eight chip selects to access the Flash ROM’s (CS0), PCI bridge chip (CS1), SRAM...
  • Page 14 Since DIMMs are manufactured primarily for use in PCs the DQM signals on some DIMMS are routed so that the SDRAM can only be accessed correctly as a 64-bit port so the M5407C3 will not be able to access the SDRAM correctly.
  • Page 15 FSRAM 32 bit 3.3V (not populated) Osc. Control Signals PCI Interface EEPROM Flash 16 bit 1MB minimum Davicom Osc. 10 Mb/sec Real TIme External Clock External Address Data RJ45 Connector Osc. Figure 1-1. 5407 Block Diagram Chapter 1. M5407C3 Board...
  • Page 16: System Memory

    16-byte line size. The ROM Monitor currently does not utilize the caches, but programs downloaded with the ROM Monitor can use the cache. The M5407C3 evaluation board has a foot print for 512 KByte SRAM but is unpopulated. 1.3 Serial Communication Channels The MCF5407 has 2 built-in UART’s (UART0 and UART1) with independent baud rate...
  • Page 17: Programmable Timer/Counter

    (www.mot.com/coldfire). 1.7 On Board Ethernet The M5407C3 has an on board Ethernet (NE2000 compatible controller) operating at 10M bits/sec. The on board dBUG ROM monitor is programmed to allow a user to download files from a network to memory in different formats. The current compiler formats supported are S-Record, COFF, ELF, or Image.
  • Page 18 Freescale Semiconductor, Inc. System Configuration Figure 1-2 displays minimum system configuration. dBUG> +7.0 to +14VDC Input Power RS-232 Terminal Or PC Connector Figure 1-2. Minimum System Configuration M5407C3 User’s Manual...
  • Page 19: Installation And Setup

    Refer to the following list and verify that all the items are present. You should have received: • M5407C3 Single Board Computer • M5407C3 User's Manual, this documentation • One RS-232 communication cable • One debug wiggler cable • Programmers Reference Manual •...
  • Page 20: Providing Power To The Board

    The board is now ready to be connected to a terminal. Use the RS-232 male/female DB-9 serial cable to connect the PC to the M5407C3. 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 P4 connector on M5407C3.
  • Page 21 4. Data Terminal Ready, input (shorted to pin 1 and 6). 5. Signal Ground. 6. Data Set Ready, Output (shorted to pins 1 and 4). 7. Request to Send, input. 8. Clear to send, output. 9. Not connected. Figure 1-4 shows jumper locations. Chapter 1. M5407C3 Board...
  • Page 22 Freescale Semiconductor, Inc. Installation And Setup Figure 1-4. Jumper Locations 1-10 M5407C3 User’s Manual...
  • Page 23: System Power-Up And Initial Operation

    If you still are not receiving the proper response, your board may have been damaged in shipping. Contact Matrix Design for further instructions. 1.11 M5407C3 Jumper Setup Jumper settings are as follows: Note ‘*’ is used to indicate that default setting.
  • Page 24: Jumper Settings

    Freescale Semiconductor, Inc. M5407C3 Jumper Setup Table 1-2. Jumper Settings (Continued) Jumper Function On/On/x Reserved On/Off/On Reserved On/Off/Off *1/3 40.0–54.0/120.0–162 MHz Off/On/On 25.0–40.5/100.0–162 MHz Off/On/Off 25.0–32.4/125.0–162 MHz Off/Off/On 25.0–27.0/150.0–162 MHz Off/Off/Off Reserved JP6/D[3]/ ON / 0 BE[3:0] is enabled as byte write enables only...
  • Page 25: Using The Bdm Port

    1.12 Using The BDM Port The MCF5407 has a built in debug mechanism referred to as BDM (background debug module). The M5407C3 has the Freescale defined debug module connector, J5, to facilitate this connection. Chapter 1. M5407C3 Board...
  • Page 26 Freescale from P&E Microcomputer Systems to the J5 connector. No special setting is needed. Refer to the ColdFire® User's Manual BDM Section for additional instructions. NOTE: BDM functionality and use is supported via third party developer software and hardware tools. 1-14 M5407C3 User’s Manual...
  • Page 27: Using The Monitor/Debug Firmware

    Freescale Semiconductor, Inc. Chapter 2 Using the Monitor/Debug Firmware The M5407C3 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.
  • Page 28 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." M5407C3 User’s Manual...
  • Page 29: Operational Procedure

    Freescale Semiconductor, Inc. Operational Procedure 2.2 Operational Procedure System power-up and initial operation are described in detail in Chapter 1. This information is repeated here for convenience and to prevent possible damage. 2.2.1 System Power-up • Be sure the power supply is connected properly prior to power-up.
  • Page 30: System Initialization

    Figure 2-1. Flow Diagram of dBUG Operational Mode. 2.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. M5407C3 User’s Manual...
  • Page 31: Hard Reset Button

    If you did not get this response check the setup. Refer to Section 1.10 System Power-Up and Initial Operation. Note the date ‘xxx 199x xx:xx:xx’ may vary in different revisions. Other means can be used to re-initialize the M5407C3 Computer Board firmware. These means are discussed in the following paragraphs.
  • Page 32: Command Line Usage

    The command is executed as if no command line parameters were provided. 2.4 Commands This section lists the commands that are available with all versions of dBUG. Some board or CPU combinations may use additional commands not listed below. M5407C3 User’s Manual...
  • Page 33: Dbug Command Summary

    Freescale Semiconductor, Inc. Commands Table 2-1. dBUG Command Summary MNEMONIC DESCRIPTION SYNTAX asm <<addr> stmt> Assemble bc addr1 addr2 length Block Compare bf <width> begin end data <inc> Block Fill bm begin end dest Block Move br addr <-r> <-c count> <-t trigger>...
  • Page 34 The statement is the assembled, and if valid, placed into memory, otherwise an error message is produced. Examples: To place a NOP instruction at address 0x00010000, the command is: 10000 nop To interactively assembly memory at address 0x00400000, the command is: 400000 M5407C3 User’s Manual...
  • Page 35 Freescale Semiconductor, Inc. Commands Block Compare 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.
  • Page 36 0 To fill a block of memory starting at 0x00020000 and ending at 0x00040000 with data that increments by 2 for each <width>, the command is: 20000 40000 0 2 2-10 M5407C3 User’s Manual...
  • Page 37 Freescale Semiconductor, Inc. Commands Block Move Usage: BM begin end dest The BM command moves a contiguous block of memory starting at address begin and stopping at address end to the new address dest. The BM command copies memory as a series of bytes, and does not alter the original block.
  • Page 38 To set a breakpoint at the C function bench() and set its trigger value to 3, the command is: _bench -t 3 When the target code is executed, the processor must attempt to execute the function bench() a third time before returning control back to dBUG. To remove all breakpoints, the command is: 2-12 M5407C3 User’s Manual...
  • Page 39 Freescale Semiconductor, Inc. Commands Block Search 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.
  • Page 40 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: 0x1234 To display the hexadecimal and binary equivalent of 1234, the command is: 1234 2-14 M5407C3 User’s Manual...
  • Page 41 Freescale Semiconductor, Inc. Commands Disassemble 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, or a symbol name. Wherever possible, the disassembler will use information from the symbol table to produce a more meaningful disassembly.
  • Page 42 Examples: To download an S-record file through the serial port, the command is: To download an S-record file through the serial port, and add an offset to the destination address of 0x40, the command is: 0x40 2-16 M5407C3 User’s Manual...
  • Page 43 Freescale Semiconductor, Inc. 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.
  • Page 44 To execute code at the current program counter, the command is: To execute code at the C function main(), the command is: go _main To execute code at the address 0x00040000, the command is: go 40000 2-18 M5407C3 User’s Manual...
  • Page 45 Freescale Semiconductor, Inc. Commands Execute To Usage: GT addr The GT command inserts a temporary breakpoint at addr and then executes target code starting at the current program counter. The value for addr may be an absolute address specified as a hexadecimal value, or a symbol name.
  • Page 46 MCF5407 are CS, DMA0, DMA1, DMA2, DMA3, DRAMC, PP, MBUS, SIM, TIMER1, TIMER2, UART0 and UART1. Refer to the MCF5407 user’s manual for more information on these modules and the registers they contain. Example: sim.rsr 2-20 M5407C3 User’s Manual...
  • Page 47 Freescale Semiconductor, Inc. Commands Internal Register Modify Usage: IRM module.register data This command modifies the contents of the internal registers of different modules inside the MCF5407. In the command line, module refers to the module name where the register is located and register refers to the specific register to modify.
  • Page 48 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 2-22 M5407C3 User’s Manual...
  • Page 49 Freescale Semiconductor, Inc. Commands Loop Read 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. If no <width> is specified, the command defaults to reading word sized data.
  • Page 50 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 2-24 M5407C3 User’s Manual...
  • Page 51 Freescale Semiconductor, Inc. Commands Memory Display 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 52 Thus, for the duration of the operation, this command performs properly-aligned memory accesses. Examples: To set the byte at location 0x00010000 to be 0xFF, the command is: mm.b 10000 FF To interactively modify memory beginning at 0x00010000, the command is: 10000 2-26 M5407C3 User’s Manual...
  • Page 53 Usage: mmap This command displays the memory map information for the M5407C3 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 54 To display only the program counter: 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 Dn: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 2-28 M5407C3 User’s Manual...
  • Page 55 Freescale Semiconductor, Inc. Commands Register Modify Usage: RM reg data The RM command modifies the contents of the register reg to data. The value for reg is the name of the register, and the value for data may be a symbol name, or it is converted according to the user-defined radix, normally hexadecimal.
  • Page 56 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 2-30 M5407C3 User’s Manual...
  • Page 57 Freescale Semiconductor, Inc. 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.
  • Page 58 To display the current baud rate of the board, the command is: show baud Here is an example of the output from a show command: dBUG> show base: 16 baud: 19200 server: 192.0.0.1 client: 192.0.0.2 gateway: 0.0.0.0 netmask: 255.255.255.0 filename: test.srec filetype: S-Record mac: 00:CF:54:07:C3:01 2-32 M5407C3 User’s Manual...
  • Page 59 Freescale Semiconductor, Inc. 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.
  • Page 60 -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 2-34 M5407C3 User’s Manual...
  • Page 61 Freescale Semiconductor, Inc. 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.
  • Page 62 The updbug command is used to update the dBUG image in Flash. When updates to the M5407C3 dBUG are available, the updated image is downloaded to address 0x00020000. The new image is placed into Flash using the UPDBUG command. The user is prompted for verification before performing the operation.
  • Page 63 Freescale Semiconductor, Inc. Commands UPUSER Update User Flash Usage: UPUSER <bytes> The UPUSER command places user code and data into space allocated for the user in Flash. The optional parameter bytes specifies the number of bytes to copy into the user portion of Flash.If the bytes parameter is omitted, then this command writes to the entire user space.
  • Page 64 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 2-38 M5407C3 User’s Manual...
  • Page 65: Trap #15 Functions

    Freescale Semiconductor, Inc. TRAP #15 Functions 2.5 TRAP #15 Functions An additional utility within the dBUG firmware is a function called the TRAP 15 handler. This function can be called by the user program to utilize various routines within the dBUG, to perform a special task, and to return control to the dBUG.
  • Page 66: Char_Present

    The register context are preserved. 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 */ 2-40 M5407C3 User’s Manual...
  • Page 67 Freescale Semiconductor, Inc. TRAP #15 Functions asm (“ trap#15”); /* exit and transfer to dBUG */ Chapter 2. Using the Monitor/Debug Firmware 2-41...
  • Page 68 Freescale Semiconductor, Inc. TRAP #15 Functions 2-42 M5407C3 User’s Manual...
  • Page 69: Hardware Description And Reconfiguration

    "-" preceding the signal name in this text and a bar over the signal name in the schematics. 3.1 The Processor and Support Logic This part of the Chapter discusses the CPU and general supporting logic on the M5407C3 board.
  • Page 70: Hiz Signal

    3.1.4 Clock Circuitry The M5407C3 uses a 50MHZ oscillator (U21) to provide the clock to CLKIN pin of the processor. In addition to U21, there also exist a 20MHz oscillator (U10) which feeds into the Ethernet chip, a PCI bus master 33MHZ oscillator (U30) and a 32.768 KHZ crystal...
  • Page 71: Internal Sram

    The MCF5407 has four external interrupt request lines. You can program the external interrupt request pins to level 1, 3, 5, and 7 or levels 2, 4, 6, and 7. The M5407C3 configures these lines as level 1, 3, 5, and 7. There are also six internal interrupt requests from Timer0, Timer1, Software watchdog timer, UART0, UART1, and MBUS.
  • Page 72: The Mcf5407 Registers And Memory Map

    It is mapped to 0x10000000 by dBUG. For complete map of these registers refer to the MCF5407 User's Manual. The M5407C3 board can have up to 512 MBytes of SDRAM installed. The first 16 MBytes of memory space are reserved for this memory. Refer to Section 3.2 for a discussion of RAM.
  • Page 73: Reset Vector Mapping

    Freescale Semiconductor, Inc. The Processor and Support Logic Table 3-1 shows the M5407C3 memory maps. Table 3-1. The M5407C3 Memory Map Address Range Signal and Device Memory Access Time $00000000-$00020000 SDRAM space for dBug ROM monitor use refer to manufacturer spec...
  • Page 74: Wait State Generator

    Flash ROM respectively. 3.1.12 SDRAM DIMM The M5407C3 has one 168-pin DIMM socket (U26) for a SDRAM DIMM. The M5407C3 will work with most PC100 SDRAM DIMMs with a few exceptions. The 5407 supports up to two banks of SDRAM, but double-sided DIMMs require 4 bank selects to access all of the chips.
  • Page 75: Flash Rom

    5. Move jumper (JP15) to pin 2 connected to pin 3 and push the reset button (S1). User code should be running. 3.2 Serial Communication Channels The M5407C3 offers a number of serial communications. They are discussed in this section. 3.2.1 MCF5407 UARTs The MCF5407 has two built in UARTs, each with its own software programmable baud rate generators;...
  • Page 76: I2C Module

    56 bytes of RAM is available for use as battery backed storage - if the battery site on the M5407C3 is populated. Addresses and data are transferred via the I2C bus to the M41T11M within which an address register is incremented after each read or write of data.
  • Page 77 Freescale Semiconductor, Inc. On-Board Ethernet Logic our system as mentioned earlier is 0x40000000. Which brings the address of chip to 0x40000300. Note that all registers should be addressed as WORD accesses (even though the registers are bytes). Note that the even address registers are addressed as they are (no change), the read word will have the byte of the data in the lower byte of the word.
  • Page 78 The Ethernet Bus interrupt request line is connected via the 2032V PLD to IRQ3. The on board ROM MONITOR is programmed to allow a user to download files from a network to memory in different formats. The current compiler formats supported are S-Record, COFF, ELF, or Image. 3-10 M5407C3 User’s Manual...
  • Page 79: Connectors And Expansion Bus

    Connectors and Expansion Bus 3.6 Connectors and Expansion Bus There are 2 expansion connectors on the M5407C3 (J1 and J2) which are used to connect the board to external I/O devices and/or expansion boards. 3.6.1 Expansion Connectors - J1 and J2 Table 3-2 shows pin assignments for the J1 connector.
  • Page 80: J2 Connector Pin Assignment

    3.3V -RSTO -CS7 -R_CAS3/DQM 1.8V -RDRAMW BCLKO -R_SRAS R/-W EDGESEL 1.8V -R_SCAS 3.3V 3.3V PSTDDATA7 R_SCKE TXD0 PSTDDATA6 -BWE0 RXD0 -CF_RSTI* 3.3V -RTS0 -IRQ7 PSTDDATA5 -BWE1 -CTS0 PSTDDATA4 -BWE2 -IRQ5 3.3V -BWE3 TXD1 -IRQ3 PSTDDATA3 RXD1 3-12 M5407C3 User’s Manual...
  • Page 81: The Debug Connector J5

    Freescale Semiconductor, Inc. Connectors and Expansion Bus Table 3-3. J2 Connector pin assignment (Continued) Signal Signal Signal Signal -IRQ1 PSTDDATA2 -RTS1 1.8V -CTS1 PSTDDATA1 1.8V PSTDDATA0 1.8V 1.8V 1.8V 3.3V 3.3V PSTCLK -A31 -CS_FPCIBD* TOUT1 TOUT0 MTMOD3 TIN0 MTMOD2 3.3V 1.8V...
  • Page 82 Connectors and Expansion Bus -BKPT DEVELOPER RESERVED DSCLK DEVELOPER RESERVED -RST_IN I/O PAD VOLTAGE PSTDDATA7 PSTDDATA6 PSTDDATA5 PSTDDATA4 PSTDDATA3 PSTDDATA2 PSTDDATA1 PSTDDATA0 FREESCALE RESERVED FREESCALE RESERVED PST_CLK CORE VOLTAGE Figure 3-1. The J5 Connector pin assignment 3-14 M5407C3 User’s Manual...
  • Page 83: Appendix A Configuring Dbug For Network Downloads

    Freescale Semiconductor, Inc. Appendix A 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. Prior to using this feature, several parameters are required for network downloads to occur. The information that is required and the steps for configuring dBUG are described below.
  • Page 84 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 M5407C3 User’s Manual...
  • Page 85 Freescale Semiconductor, Inc. Troubleshooting Network Problems set filetype coff Finally, perform the network download with the ‘dn’ command. The network download process uses the configured IP addresses and the default filename and filetype for initiating a TFTP download from the TFTP server.
  • Page 86 Freescale Semiconductor, Inc. Troubleshooting Network Problems M5407C3 User’s Manual...
  • Page 87: Appendix B Coldfire To Isa, Irq7 And Reset Logic Abel Code

    Freescale Semiconductor, Inc. Appendix B ColdFire to ISA, IRQ7 and Reset Logic Abel Code module isa2 title 'isa controller' "June 18 '00 version v4 of the 5407 "isa2 device 'ispLSI'; ;"*****************************************************" ;"This abel file contains the code for a NE2000 compatible ethernet"...
  • Page 88 32; "Output - to ColdFire *HIZ IORL pin 37; "Input - read signal from ethernet pin 38; "Input - A31 signal for CS to PCI controller pin 39; pin 40; "Input / Output - Transfer acknowledge M5407C3 User’s Manual...
  • Page 89 Freescale Semiconductor, Inc. REQANC_L pin 41; "Input - request from the PCI controller NOT_A31 pin 42; "Output - Inverted A31 for CS to PCI controller SIZ0 pin 43; BDM_RST_L pin 44; "Input - BDM reset input ; "********************************" ; " Lattice attributes "...
  • Page 90 " Grant PCI bus if not in use by the PCI " controller. !GNTANC_L = !REQANC_L & GNTPCI_L; " Grant PCI controller the bus if not " already granted to the PCI connector. RST_H = !PORIN_L # !BDM_RST_L; HIZ_L = 1; M5407C3 User’s Manual...
  • Page 91 Freescale Semiconductor, Inc. DAOE := !CS3_L # DA; DAOE.clk = XCLK0 ; A0 = !SIZ1 & SIZ0 & !A0IN # A16 ; SBHE = STARTISA & !SIZ1 & SIZ0 & !A0IN # STARTISA & SIZ1 & !SIZ0 & !A0IN # STARTISA &...
  • Page 92 END16 = !BCLK2 & BCLK1 & !BCLK0 & !CLK8MHZ# END16 & STARTISA ; END8 = BCLK2 & !BCLK1 & BCLK0 & !CLK8MHZ # END8 & STARTISA ; ENDIT = END16 & !IOCS16L & IOCHRDY & DLYIOCHRDY0 & DLYIOCHRDY & SBHE & STARTISA# M5407C3 User’s Manual...
  • Page 93 Freescale Semiconductor, Inc. END8 & IOCS16L & IOCHRDY & DLYIOCHRDY0 & DLYIOCHRDY & STARTISA # END8 & !SBHE & IOCHRDY & DLYIOCHRDY0 & DLYIOCHRDY & STARTISA ; DLYIOCHRDY0:= IOCHRDY; DLYIOCHRDY0.clk = CLK8MHZ ; DLYIOCHRDY = IOCHRDY & CLK8MHZ # DLYIOCHRDY & !CLK8MHZ ;...
  • Page 94 Freescale Semiconductor, Inc. [C,0,1,1,]->[X]; [C,0,1,1,]->[X]; [C,1,1,1,]->[X]; [C,1,1,1,]->[X]; [C,1,1,1,]->[X]; [C,1,1,1,]->[X]; [C,1,1,0,]->[X]; [C,1,1,1,]->[X]; [C,1,1,1,]->[X]; [C,1,1,1,]->[X]; M5407C3 User’s Manual...
  • Page 95 Freescale Semiconductor, Inc. apps docs:ColdFire:5407:Eval Board UM NEW:5407_C_SDRAM_Equations.fm 8/11/00 Appendix C SDRAM MUX PAL Equation module SDRAMmux title 'SDRAM Mux Controller for the MCF5407EVM' "MAR 16 '99 First revision of the code based on Bill Benners application note" "5307mux device 'ispLSI22LV10';...
  • Page 96 Freescale Semiconductor, Inc. CA23 "Input - ColdFire driven address (23) CA24 "Input - ColdFire driven address (24) CA25 "Input - ColdFire driven address (25) CA26 "Input - ColdFire driven address (26) CA27 "Input - ColdFire driven address (27) "Output - SDRAM input address (A8) "Output - SDRAM input address (A9)
  • Page 97 Freescale Semiconductor, Inc. BA1=CA22; when (select == 1) then { SA8=CA19; SA9=CA20; SA10=CA21; BA0=CA22; BA1=CA23; when (select == 2) then { SA8=CA19; SA9=CA21; SA10=CA22; BA0=CA23; BA1=CA24; when (select == 3) then { SA8=CA18; SA9=CA19; SA10=CA20; SA11=CA21; BA0=CA22; BA1=CA23; when (select == 4) then { SA8=CA19;...
  • Page 98 Freescale Semiconductor, Inc. SA9=CA21; SA10=CA22; SA11=CA23; BA0=CA24; BA1=CA25; when (select == 6) then { SA8=CA19; SA9=CA21; SA10=CA23; SA11=CA24; BA0=CA25; BA1=CA26; when (select == 7) then { SA8=CA18; SA9=CA19; SA10=CA20; SA11=CA21; SA12=CA22; BA0=CA23; BA1=CA24; when (select == 8) then { SA8=CA19;...
  • Page 99 Freescale Semiconductor, Inc. SA10=CA22; SA11=CA23; SA12=CA24; BA0=CA25; BA1=CA26; when (select == ^h0A) then { SA8=CA19; SA9=CA21; SA10=CA23; SA11=CA24; SA12=CA25; BA0=CA26; BA1=CA27; "****************************************************" " Test Vector Section" "****************************************************" test_vectors 'M0, M1, M2, M3 Test Vector' ([M3, M2, M1, M0, CA18, CA19, CA20, CA21, CA22, CA23, CA24, CA25, CA26, CA27]->[SA8, SA9, SA10, SA11, SA12, BA0, BA1])
  • Page 100 Freescale Semiconductor, Inc. BookTitle...
  • Page 101 Freescale Semiconductor, Inc. apps docs:ColdFire:5407:Eval Board UM NEW:5407_D_EvalBdBOM.fm 8/11/00 Appendix D Evaluation Board BOM Table D-1. MCF5407EVM_BOM Item Reference Part Function VARTA CR2032PCB Battery for RTC (not populated) C1,C2,C3,C4,C13,C14,C15,C16 0.1 UF SMT Capacitor ,C17,C18,C37,C38,C40,C41,C4 2,C43,C44,C62,C63,C64,C65,C 66,C67,C79,C80,C82,C83,C86, C89,C90,C96,C99,C103,C104,C 105,C106,C107,C108,C109,C11 0,C125 C5,C6,C7,C8,C9,C10,C19,C20,...
  • Page 102: Mcf5407Evm_Bom

    Freescale Semiconductor, Inc. Table D-1. MCF5407EVM_BOM (Continued) Item Reference Part Function D14,D15 MRA4003T3 SMT Power Diode D16,D18,D19,D20,D21 MBRS340T3 SMT Schottky Power Diode MULTICOMP Fuse MCHTE-15M JP1,JP2,JP3,JP4,JP5,JP6,JP7,J 2-way Jumpers P8,JP9,JP10,JP11,JP12,JP13,J P14,JP19,JP25,JP29 JP15,JP16,JP17,JP18,JP20,JP2 3-way Jumpers 1,JP22,JP23,JP24,JP26,JP27,J P28,JP30 J1,J2 AMP 177983-5 120-way SMT Receptacle...
  • Page 103 Freescale Semiconductor, Inc. Table D-1. MCF5407EVM_BOM (Continued) Item Reference Part Function R1,R2,R23 SMT 4K7 resistors SMT 10 resistor SMT 22 resistor R5,R6 R7,R10,R11 SMT 270 resistors SMT 1K resistor SMT 3K resistor SMT 4.7K resistor R13,R16,R17,R18 SMT 10K resistors SMT 120 resistor...
  • Page 104 Freescale Semiconductor, Inc. Table D-1. MCF5407EVM_BOM (Continued) Item Reference Part Function LT1086CM 3.3V to 1.8V regulator LM2596S-3.3 5V to 3.3V regulator CDC351DB Clock driver IC 1 to 10 way LM2596S-5 +6.5V to +14V I/P to 5V regulator PC100 Unbuffered 1 Bank...
  • Page 105 Freescale Semiconductor, Inc. Appendix E Schematics Appendix E . Schematics...
  • Page 106 Freescale Semiconductor, Inc. M5407C3 User’s Manual PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE...
  • Page 108 Freescale Semiconductor, Inc. M5407C3 User’s Manual...
  • Page 109 Freescale Semiconductor, Inc. Appendix E . Schematics...
  • Page 110 Freescale Semiconductor, Inc. M5407C3 User’s Manual...
  • Page 111 Freescale Semiconductor, Inc. Appendix E . Schematics...
  • Page 112 Freescale Semiconductor, Inc. M5407C3 User’s Manual...
  • Page 113 Appendix E . Schematics...
  • Page 114 Freescale Semiconductor, Inc. M5407C3 User’s Manual...
  • Page 115 Freescale Semiconductor, Inc. Appendix E . Schematics...
  • Page 116 Freescale Semiconductor, Inc. M5407C3 User’s Manual...
  • Page 117 Freescale Semiconductor, Inc. apps docs:ColdFire:5407:Eval Board UM NEW:5407_F_Errata.fm 8/11/00 Appendix F Errata 1. The descriptions of the JP29 and JP25 on the back of the silkscreen table are wrong. Table 1-4 lists the correct functions. 2. The descriptions of the JP16 functionality on the back of the silkscreen are wrong.
  • Page 118 Freescale Semiconductor product could create a situation where personal injury or death may occur. Should Buyer...

Table of Contents