Freescale Semiconductor M5213EVB Hardware User Manual

Freescale Semiconductor M5213EVB Hardware User Manual

Development board for freescale mcf5213 mcu
Table of Contents

Advertisement

Quick Links

Freescale Semiconductor
Development Board for Freescale MCF5213 MCU
Information in this document is provided solely to enable system and software
implementers to use Freescale Semiconductor products. There are no express or
implied copyright licenses granted hereunder to design or fabricate any integrated
circuits or integrated circuits based on the information in this document.
Freescale Semiconductor reserves the right to make changes without further notice to
any products herein. Freescale Semiconductor makes no warranty, representation or
guarantee regarding the suitability of its products for any particular purpose, nor does
Freescale Semiconductor assume any liability arising out of the application or use of
any product or circuit, and specifically disclaims any and all liability, including without
limitation consequential or incidental damages. "Typical" parameters which may be
provided in Freescale Semiconductor data sheets and/or specifications can and do
vary in different applications and actual performance may vary over time. All operating
parameters, including "Typicals" must be validated for each customer application by
customer's technical experts. Freescale Semiconductor does not convey any license
under its patent rights nor the rights of others. Freescale Semiconductor products are
not designed, 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 Freescale Semiconductor product
could create a situation where personal injury or death may occur. Should Buyer
purchase or use Freescale Semiconductor products for any such unintended or
unauthorized application, Buyer shall indemnify and hold Freescale Semiconductor
and its officers, employees, subsidiaries, affiliates, and distributors harmless against all
claims, costs, damages, and expenses, and reasonable attorney fees arising out of,
directly or indirectly, any claim of personal injury or death associated with such
unintended or unauthorized use, even if such claim alleges that Freescale
Semiconductor was negligent regarding the design or manufacture of the part.
Reconfigured with permission of Axiom Manufacturing
© Freescale Semiconductor, Inc., 2004. All rights reserved.
implementers to use Freescale Semiconductor products. There are no express or
Freescale Semiconductor assume any liability arising out of the application or use of
any products herein. Freescale Semiconductor makes no warranty, representation or
guarantee regarding the suitability of its products for any particular purpose, nor does
Freescale Semiconductor reserves the right to make changes without further notice to
circuits or integrated circuits based on the information in this document.
implied copyright licenses granted hereunder to design or fabricate any integrated
Information in this document is provided solely to enable system and software
under its patent rights nor the rights of others. Freescale Semiconductor products are
parameters, including "Typicals" must be validated for each customer application by
vary in different applications and actual performance may vary over time. All operating
provided in Freescale Semiconductor data sheets and/or specifications can and do
limitation consequential or incidental damages. "Typical" parameters which may be
or for any other application in which the failure of the Freescale Semiconductor product
not designed, 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,
any product or circuit, and specifically disclaims any and all liability, including without
customer's technical experts. Freescale Semiconductor does not convey any license
Semiconductor was negligent regarding the design or manufacture of the part.
directly or indirectly, any claim of personal injury or death associated with such
unintended or unauthorized use, even if such claim alleges that Freescale
claims, costs, damages, and expenses, and reasonable attorney fees arising out of,
and its officers, employees, subsidiaries, affiliates, and distributors harmless against all
unauthorized application, Buyer shall indemnify and hold Freescale Semiconductor
purchase or use Freescale Semiconductor products for any such unintended or
could create a situation where personal injury or death may occur. Should Buyer
D O C - 0 3 6 7 - 0 1 0 ,
M5213EVB
Hardware User Manual
R E V .
C

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Summary of Contents for Freescale Semiconductor M5213EVB

  • Page 1 Freescale Semiconductor product could create a situation where personal injury or death may occur. Should Buyer...
  • Page 2: Table Of Contents

    EVELOPMENT ......................... 5 EFERENCE OCUMENTATION M5213EVB S ..........................6 TARTUP M5213EVB HARDWARE CONFIGURATION AND OPTIONS............6 MEMORY ............................... 6 POWER SUPPLY ........................... 7 Power Jack ............................7 TB1 Power connection ......................... 7 ON_OFF Switch........................... 7 FUSE – F1............................7 3.3V_EN Option ........................... 8 3.3V Indicator ............................
  • Page 3 ..................34 YMBOL ANAGEMENT TRACE - T ........................... 35 RACE VERSION - D BUG V ....................35 ISPLAY D ERSION TRAP #15 F ........................... 36 UNCTIONS OUT_CHAR ............................36 IN_CHAR ............................36 CHAR_PRESENT..........................37 EXIT_TO_dBUG ..........................37 Freescale Semiconductor, Inc.
  • Page 4: Cautionary Notes

    3) EMC Information on the M5213EVB board: a) This device complies with Part 15 of the FCC Rules. Operation is subject to the following...
  • Page 5: Features

    0 8 / 0 8 / 0 5 FEATURES M5213EVB is a low cost development system for the Freescale MCF5213 ColdFire® microcontroller. Application development is quick and easy with the included DB9 serial cable and dBUG firmware monitor. The BDM port is compatible with standard ColdFire BDM / JTAG interface cables and hosting software, allowing easy application debugging and development with a variety of hardware and software tools.
  • Page 6: Getting Started

    0 8 / 0 8 / 0 5 GETTING STARTED The M5213EVB single board computer is a fully assembled, fully functional development board for the Freescale MCF5213 microcontroller. It is provided with a wall plug power supply, P&E BDM interface cable, and a serial cable. Provided support software for this development board is for Windows 95/98/NT/2000/XP operating systems.
  • Page 7: M5213Evb Startup

    2) Configure a virtual terminal program (such as HyperTerminal or Tera Term) for a direct connection to the PC COM port to be applied for serial communication with the M5213EVB. Set the baud rate to 19.2K baud, 8 data bits, 1 stop bit, and no parity. Software XON / XOFF flow control should be enabled for Flash memory support operations.
  • Page 8: Power Supply

    FUSE – F1 Fuse F1 provides over current protection from PWR Jack or TB1 input to the EVB board. The fuse will open if current over 500mA is sustained or reaches 1 Amp. To reset the fuse, turn the Freescale Semiconductor, Inc.
  • Page 9: 3.3V_En Option

    MCU Port VSSA (ground) to MCF5213 VRL analog VRL Pin 58, VSSA pin reference pin VX_EN MCU Port pin 1 connection to +3.3V supply, Pin 1 input or output. For input, see +3.3V_EN option also. Freescale Semiconductor, Inc.
  • Page 10: Vx_En Option

    SW1 applies the MCF5213 IRQ4 signal and SW2 applies the MCF5213 IRQ5 signal. LED[4:1] User Indicators Four user indicators are provided for application on the MCF5213 DTIN[3:0] signals (configurable as GPIO). Indicators are buffered so they do not load the MCF5213 I/O port. Freescale Semiconductor, Inc.
  • Page 11: Led_En Option

    MCF5213 UART signals to operate the RS232 ports. A straight through DB9 Male / Female type serial cable can be applied to connect the ports to a standard PC COM port. Following is the DB9S connection reference. Freescale Semiconductor, Inc.
  • Page 12: Uart0_En And Uart1_En Options

    1, 6 tie 8 8 RTS Do not connect COM_SEL Option Selects UART2_CAN Port connector type of interface between UART2 RS232 operation and CAN operation. All 3 positions should be set for the same selection, UART or CAN. Freescale Semiconductor, Inc.
  • Page 13: Uart2_En Option

    Bias options RCAN1 and RCAN2 (SMT 0805 size, not populated) provide idle bias connections for the CAN network if required by the user. CAN_TERM Installs a 62 ohm termination between the CAN_HI and CAN LO signals. Each end of a CAN network must be terminated for proper operation. Freescale Semiconductor, Inc.
  • Page 14: Can_En Option

    CANRX / I2C_SDA (I2C Primary) MC13192 ZIGBEE™ TRANSCEIVER MC13192 peripheral is operated by the M5213EVB SMAC software package, M5213TestApp. The example software and documentation maybe downloaded from Freescale at www.freescale.com/zigbee. The M5213TestApp is configured to provide power output at 0dB.
  • Page 15: Tx Power

    Z_CLKOUT TP This test pad provides access to the MC13192 Clock output signal. M5213EVB I/O Ports BDM_PORT The BDM PORT provides a standard ColdFire BDM / JTAG development port. The BDM_EN option provides for the development port mode selection between BDM or JTAG. Option JP2 provides for a special JTAG mode port configuration that is applied to defeat the MCF5213 flash security (if enabled) for bulk erasing.
  • Page 16: Jp2 Option

    9 10 DSO GND 11 12 PST3 PST2 13 14 PST1 PST0 15 16 DDATA3 DDATA2 17 18 DDATA1 DDATA0 19 20 GND 21 22 GND 23 24 TCLK and CLKOUT Test Pad +3.3V 25 26 TA* Test Pad Freescale Semiconductor, Inc.
  • Page 17: Mcu_Port

    UTXD0 41 42 URTS0* URXD0 43 44 UCTS0* UTXD2 45 46 URTS2* URXD2 47 48 UCTS2* GPT0 49 50 GPT1 GPT2 51 52 GPT3 RCON* 53 54 GND VDDA 55 56 VSSA VRH 57 58 VRL +3.3V 59 60 VSTDBY Freescale Semiconductor, Inc.
  • Page 18: Troubleshooting

    0 8 / 0 8 / 0 5 TROUBLESHOOTING The M5213EVB is fully tested and operational before shipping. If it fails to function properly, inspect the board for obvious physical damage first. Verify the communications setup as described under GETTING STARTED.
  • Page 19: Dbug Monitor Operation

    SRAM. To take over an exception vector, the user places the address of the exception handler in the appropriate vector in the vector table. dBUG Memory Map The following table shows the dBUG memory map. This information is also provided via the ‘mmap’ dBUG command. Freescale Semiconductor, Inc.
  • Page 20: Dbug Commands

    <addr> Disassemble dl <offset> Download Serial DLDBUG dldbug Download dBUG Update fl <command> dest <src> size Flash write or erase go <addr> Execute gt addr Execute To HELP help <command> Help ird <module.register> Internal Internal Register Display Freescale Semiconductor, Inc.
  • Page 21 The command is executed as if no command line parameters were provided. User programs are provided access to various dBUG routines by the “Trap 15 Functions". These functions are discussed at the end of this chapter. Freescale Semiconductor, Inc.
  • Page 22: Appendix 1: Dbug Command Set

    If the blocks are not identical, the address of the first mismatch is displayed. The value for addresses addr1 and addr2 may be an absolute address specified as a hexadecimal value or Freescale Semiconductor, Inc.
  • Page 23: Bf - Block Fill

    0 To fill a block of memory starting at 0x2_0000 and ending at 0x4_0000 with data that increments by 2 for each <width>, the command is: bf 20000 40000 0 2 Freescale Semiconductor, Inc.
  • Page 24: Bm - Block Move

    -t option allows setting the initial trigger for the breakpoint. If no address is specified in conjunction with the -c or -t options, then all breakpoints are initialized to the values specified by the -c or -t option. Freescale Semiconductor, Inc.
  • Page 25: Bs - Block Search

    0x1234_5678. If no match is found, then the address is incremented to 0x0004_0004 and the next 32-bit value is read and compared. To search for the 16-bit value 0x1234 in the memory block starting at 0x0004_0000 and ending at 0x0007_0000: bs 40000 70000 1234 Freescale Semiconductor, Inc.
  • Page 26: Dc - Data Conversion

    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_0000, the command is: 40000 To disassemble code of the C function main(), the command is: Freescale Semiconductor, Inc.
  • Page 27: Dl - Download Console

    The dldbug command is used to update the dBUG image in Flash memory. When updates to the M5213EVB dBUG are available, the update S-record may be downloaded into the Flash from the console or serial port similar to the DL command.
  • Page 28: Fl - Flash Load Or Erase

    Control is only regained when the target code encounters a breakpoint, illegal instruction, or other exception that causes control to be handed back to dBUG. The GO command is repeatable. Examples: To execute code at the current program counter, the command is: Freescale Semiconductor, Inc.
  • Page 29: Gt - Execute To Address

    The registers are organized according to the module to which they belong. Refer to the MCF5213 user’s manual for information on these modules and the registers they contain. Example: ird uart0.umr1 ird uart0 IRM - Internal Register Modify Usage: IRM module.register data Freescale Semiconductor, Inc.
  • Page 30: Help - Help

    The LW command continually writes data to addr. The optional width specifies the size of the access to memory. The default access size is a word. Examples: To continually write the data 0x1234_5678 to address 0x0002_0000, the command is: Freescale Semiconductor, Inc.
  • Page 31: Md - Memory Display

    If no <width> is specified, the default of word sized data is used. The value for data may be a symbol name, or a number converted according to the user-defined radix, normally hexadecimal. Freescale Semiconductor, Inc.
  • Page 32: Mmap - Memory Map Display

    0x20001FFF RD - 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. Freescale Semiconductor, Inc.
  • Page 33: Rm - Register Modify

    The RESET command executes the same sequence of code that occurs at power-on. If the RESET command fails to reset the board properly, cycle the power or press the RESET button. Examples: To reset the board and clear the dBUG data structures, the command is: Freescale Semiconductor, Inc.
  • Page 34: Set - Set Configurations

    To display the current baud rate of the board, the command is: show baud To display all options and settings, the command is: show Here is an example of the output from a show command: dBUG> show base: 16 baud: 19200 Freescale Semiconductor, Inc.
  • Page 35: Step - Step Over

    Symbols can also be added to the symbol table via in-line assembly labels and Ethernet downloads of ELF formatted files. Examples: To define the symbol “main” to have the value 0x0004_0000, the command is: symbol -a main 40000 To remove the symbol “junk” from the table, the command is: Freescale Semiconductor, Inc.
  • Page 36: Trace - Trace Into

    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: Freescale Semiconductor, Inc.
  • Page 37: Trap #15 Functions

    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. C example: Freescale Semiconductor, Inc.
  • Page 38: Char_Present

    #$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 */ Freescale Semiconductor, Inc.

Table of Contents