NXP Semiconductors M5253EVBE User Manual Download Page 33

M5253EVBE Users Manual, Rev. 1

Freescale Semiconductor

2-15

 

To display memory in the data section (defined by the symbols data_start and data_end), the command is:

md data_start

To display a range of bytes from 0x0004_0000 to 0x0005_0000, the command is:

md.b 40000 50000

To display a range of 32-bit values starting at 0x0004_0000 and ending at 0x0005_0000:

md.l 40000 50000

2.4.19

MM (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. The value for data may be a symbol name, 
or a number converted according to the user-defined radix, normally hexadecimal.

If a value for data is provided, then the MM command immediately 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 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 set the byte at location 0x0001_0000 to be 0xFF, the command is:

mm.b 10000 FF

To interactively modify memory beginning at 0x0001_0000, the command is:

mm 10000

2.4.20

MMAP (Memory Map Display)

Usage: mmap

This command displays the memory map information for the M5253EVBE 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.

Here is an example of the output from this command:

      Type           Start         End      Port Size

---------------------------------------------------

SDRAM            0x00000000   0x003FFFFF   32-bit

Vector Table     0x00000000   0x000003FF   32-bit

USER SPACE       0x00020000   0x003FFFFF   32-bit

MBAR             0x10000000   0x100003FF   32-bit

Summary of Contents for M5253EVBE

Page 1: ...Document Number M5253EVBUM Rev 1 03 2007 M5253 Evaluation Board Users Manual...

Page 2: ...ducts 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...

Page 3: ...up and Initial Operation 1 10 1 8 M5253EVBE Jumper Setup 1 10 1 9 Using the BDM Port 1 11 Chapter 2 Using the Monitor Debug Firmware 2 1 What Is dBUG 2 1 2 2 Operational Procedure 2 2 2 2 1 System Po...

Page 4: ...4 29 UPDBUG Update dBUG 2 20 2 4 30 UPUSER Update User Flash 2 20 2 4 31 VERSION Display dBUG Version 2 20 2 5 TRAP 15 Functions 2 21 2 5 1 OUT_CHAR 2 21 2 5 2 IN_CHAR 2 21 2 5 3 CHAR_PRESENT 2 22 2...

Page 5: ...2 0 OTG Module 3 7 3 3 General Purpose I O Pins 3 8 3 4 Audio Module 3 8 3 5 Analog to Digital Converter ADC Module 3 8 3 6 Flash Memory Card IDE Interface Module 3 8 3 7 ATA Interface Module 3 9 3 8...

Page 6: ...M5253EVBE Users Guide Rev 1 vi Freescale Semiconductor...

Page 7: ...the MCF5253 device for programming and evaluating the attributes of the microprocessor In addition there is an IDE and ATA interface for connection to things like an external HDD There is also an SD c...

Page 8: ...illators 32 768 KHz 11 2896 MHz 24 MHz 8MB Transceiver CAN Transceiver DB 9 Connector DB 9 Connector Dedicated ATA I F Supports DMA GPIO Connectors Audio ADC I2S3 Headphone Socket RCA Phono plugs Audi...

Page 9: ...re programmed into the Flash during factory testing The MCF5253 processor has 128 Kbytes of internal SRAM organized as 2 banks of 64 Kbytes The SRAM can be used for either data or instruction space RS...

Page 10: ...232 serial cable with DB9 connectors is included with the board UART0 channel is the TERMINAL channel used by dBUG for communication with an external terminal PC The TERMINAL baud rate defaults to 11...

Page 11: ...5253EVBE Users Manual Rev 1 Freescale Semiconductor 1 5 Figure 1 2 displays the minimum system configuration Figure 1 2 Minimum System Configuration dBUG RS 232 Terminal or PC 7 0 to 14 VDC Input Powe...

Page 12: ...e M5253 Evaluation Board Users Manual this document CAUTION Avoid touching the MOS devices Static discharge can and will damage these devices Once you have verified that all the items are present remo...

Page 13: ...the RS232 serial cable to connect the PC terminal to the M5253EVBE 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...

Page 14: ...ud rate and character format The character format should be 8 bits no parity one stop bit See Section 1 6 5 Terminal Character Format The baud rate should be set to 115200 Power can now be applied to...

Page 15: ...M5253EVBE Users Manual Rev 1 Freescale Semiconductor 1 9 Figure 1 4 shows the default jumper locations for the board Figure 1 4 Default Jumper Locations...

Page 16: ...ted 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...

Page 17: ...on from BDM interface JP22 JP26 JP30 Not fitted Internal boot ROM mode select JP24 1 2 UART0 RS232 transceiver RX select JP25 1 2 SPI EEPROM M25P40 U14 write protected WP 2 3 SPI EEPROM M25P40 U14 wri...

Page 18: ...miconductor P E BDM wiggler cable provided in the kit No special setting is needed Refer to the MCF5253 Reference Manual BDM section for additional instructions NOTE BDM functionality and use are supp...

Page 19: ...OM device provides a self contained programming and operating environment dBUG interacts with the user through pre defined commands that are entered via the terminal These commands are defined in Sect...

Page 20: ...der control of the dBUG firmware and after command completion the system returns to command entry mode During command execution additional user input may be required depending on the command function...

Page 21: ...iate vector in the vector table located at 0x0000_0000 and then points the VBR to 0x0000_0000 The Software Watchdog Timer is disabled and internal timers are placed in a stop condition Interrupt contr...

Page 22: ...is being debugged The user can interrupt the processor without destroying the present state of the system This is accomplished by forcing a non maskable interrupt that will call a dBUG routine that w...

Page 23: ...ntered press the Return or Enter key to invoke the command again The command is executed as if no command line parameters were provided 2 4 Commands This section lists the commands that are available...

Page 24: ...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 instructi...

Page 25: ...ck 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 is specified the default of word sized data is used T...

Page 26: ...data_end to 0x0020_0000 the command is bm data_start data_end 200000 NOTE Refer to upuser command for copying code data into Flash memory 2 4 5 BR Breakpoints Usage BR addr r c count t trigger The BR...

Page 27: ...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 If no width is specified the default of word...

Page 28: ...y equivalent of 0x1234 the command is dc 0x1234 To display the hexadecimal and binary equivalent of 1234 the command is dc 1234 2 4 8 DI Disassemble Usage DI addr The DI command disassembles target co...

Page 29: ...sfer 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 The c option indicates a COFF download the e option indicates a...

Page 30: ...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 repeata...

Page 31: ...nal registers of different modules inside the MCF5xxx 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...

Page 32: ...and writes 0x78 into memory lw b 20000 12345678 2 4 18 MD Memory Display Usage MD width begin end The MD command displays a contiguous block of memory starting at address begin and stopping at address...

Page 33: ...tains 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 en...

Page 34: ...isplay 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 D...

Page 35: ...ase 2 octal base 8 and decimal base 10 client This is the network Internet Protocol IP address of the board For network communications the client IP is required to be set to a unique value usually ass...

Page 36: ...ample 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 52 49 C3 01...

Page 37: ...ups 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...

Page 38: ...cated 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 u...

Page 39: ...he 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 compile...

Page 40: ...on zero value in D0 means a character is present Assembly example move l 0014 d0 Select the function trap 15 Make the call d0 contains the response yes no C example int board_char_present void asm mov...

Page 41: ...ystem integration module SIM All of the core processor registers are 32 bits wide except for the status register SR which is 16 bits wide This processor communicates with external devices over a 16 bi...

Page 42: ...io clock source 3 1 5 Watchdog Timer The duration of the watchdog is selected by the SWT 1 0 bits in the system protection and control register SYPCR SWT 1 0 11 gives a maximum timeout period of 228 s...

Page 43: ...priority can result in undefined operation The M5253EVBE hardware uses INT1 to support the ABORT function using the ABORT switch S2 This switch is used to force an interrupt level 7 priority 3 if the...

Page 44: ...ion of the SDRAM on the board The dBUG ROM monitor is programmed in one AMD AM29LV160DB 90 flash ROM which occupies 2 Mbytes of the address space The first 256 Kbytes i e the first sector are used by...

Page 45: ...generate TA internally after a pre programmed number of wait states 3 1 11 Wait State Generator The Flash ROM and SDRAM on the board may require some adjustments to the cycle time of the processor to...

Page 46: ...er sizes of 8 to 16 bits in 1 bit increments Four peripheral chip select lines for control of up to 15 devices Baud rates from 274 5 Kbps to 17 5 Mbps at 140 MHz Programmable delays before and after t...

Page 47: ...ssage Programmable I O modes Maskable interrupts Independent of the transmission medium an external transceiver assumed Open network architecture Multimaster bus High immunity to EMI Short latency tim...

Page 48: ...to 4 functions including GPIO 3 4 Audio Module The MCF5253 processor s audio module includes the following features Support for reception and transmission of digital audio over serial interfaces IIS...

Page 49: ...ck of at least 80 MHz 128 byte FIFO part of interface FIFO receive alarm and FIFO transmit alarm to DMA unit Zero wait cycles transfer between DMA bus and FIFO which allows fast FIFO reading and writi...

Page 50: ...signment 1 3 5 7 9 11 13 15 17 19 21 23 25 2 4 6 8 10 12 14 16 18 20 22 24 26 BKPT DSCLK Developer Reserved DSI DSO PST3 PST1 DDATA3 DDATA1 GND Freescale Reserved PSTCLK TA GND GND RESET GND PST2 PST0...

Page 51: ...337X9010E2TE3 or F931A337KNC Sprauge AVX Cap 330uF 10v C case tant C11 C22 C43 7 2 UWX1E4R7MCL2GB Nichicon Cap 4 7uF 25V SMT Electrolytics C73 C88 9 4 C0603C224Z4VACTU Kemet Cap 0 22uF 0603 16V C91 C9...

Page 52: ...shrouded header J10 J11 37 1 TSS 113 01 G D N2526 6002RB Samtec or 3M Conn 2x13 0 1 pitch connector shrouded header J12 38 1 CON10A 0 1 pitch 2x5 Header NO PART J13 39 2 RAPC722X Switchcraft Conn Swi...

Page 53: ...23 R29 R31 R78 60 1 RK73B1JTTD274J KOA 270K 200ppm SM RES THICK FILM 0603 5 1 10W R8 61 1 RK73B1JTTD560J KOA 56 200ppm SM RES THICK FILM 0603 5 1 10W R14 62 12 RK73B1JTTD103J KOA 10K 200ppm SM RES THI...

Page 54: ...LK C and K Swith blk reset button t h S2 82 8 SDTX 620K Amp Switch reset button t h SW1 SW2 SW3 SW4 SW5 SW6 SW7 SW8 83 8 TEST POINT NO PART TP1 TP2 TP3 TP4 TP5 TP6 84 1 LM2596S 5 0 NOPB National Semi...

Page 55: ...tal 11 2896 MHz 2 PIN T H HC49US X1 X2 105 1 CFS206 32 768KDZF UB Citizens Xtal 32 768 KHz 2 dip T H cyl X3 106 1 HC49US24 000MABJ UB Citizens Xtal 24 MHz HC49U X4 109 50 382575 2 Amp Shunt Jumpers 2m...

Page 56: ...M5253EVBE Users Manual Rev 1 A 6 Freescale Semiconductor...

Reviews: