Freescale Semiconductor, Inc. MMDS0508 Target Interface Revised 2002/04/30 For More Information: www.freescale.
Freescale Semiconductor, Inc. Metrowerks, the Metrowerks logo, and CodeWarrior are registered trademarks of Metrowerks Corp. in the US and/or other countries. All other tradenames and trademarks are the property of their respective owners. Copyright © Metrowerks Corporation. 2002. ALL RIGHTS RESERVED. The reproduction and use of this document and related materials are governed by a license agreement between Metrowerks Corp. and its licensee.
Freescale Semiconductor, Inc. Table of Contents 1 General Description 5 1.1 1.2 1.3 Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 MMDS Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 System Components . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2 Installation 9 2.1 Introduction. . . . . . . . . . . . 2.2 Configuring the Platform Board . . . . 2.2.1 Factory Test Header (J1) . . . . . . 2.2.2 Port Voltage Control Headers (J2–J4) . 2.
Ta ble o f C onte n ts Freescale Semiconductor, Inc. 4.3.5 4.3.6 4.4 4.4.1 4.5 4.6 4.6.1 4.6.2 4.7 4.8 4.8.1 4.8.2 4.8.3 4.8.4 4.8.5 4.9 4.9.1 4.10 4.10.1 4.10.2 4.10.3 4.10.4 4.10.5 4.10.6 MCU . . . . . . . . . . . . . EM . . . . . . . . . . . . . . Interfacing Your System and the Target . Hardware Connection . . . . . . . Loading the MMDS0508 Target . . . . Communication Configuration . . . . Communication Device Specification Data Format . . . . . . . . . .
Freescale Semiconductor, Inc. 1 General Description 1.1 Introduction The M68MMDS05/08 Motorola Modular Development System (MMDS) is a tool for developing embedded systems based on an MC68HC05 or MC68HC08 microcontroller unit (MCU). A modular emulation system, the MMDS provides interactive control of a microcontroller application when connected to your target system. The MMDS environment allows for source-level debugging and simplifies writing and debugging code.
G e n er a l De s cr ip t io n System Components Freescale Semiconductor, Inc. • 64 hardware instruction breakpoints over the 64-kilobyte memory map • A personality file for each EM. (Each personality file defines a memory-map.) • Latch-up resistant design (47-Ω series resistor on I/O connections to the target system) to make power-up sequencing unimportant.
Freescale Semiconductor, Inc. G e n e ra l D es cr i p t i o n System Components • 9-lead RS-232 serial cable: the cable that connects the station module to the hostcomputer RS-232 port. • Serial adapter: a DB9M-to-DB25F RS-232 adapter, for use with a 25-pin hostcomputer serial port. • Two logic clip cable assemblies: twisted-pair cables that connect the station module to your target system, a test fixture, a clock, an oscillator, or any other circuitry useful for evaluation or analysis.
G e n er a l De s cr ip t io n System Components 1–8 Freescale Semiconductor, Inc. MMDS0508 Target Interface For More Information: www.freescale.
Freescale Semiconductor, Inc. Installation 2 Installation 2.1 Introduction Complete MMDS installation consists of: • Configuring the platform board, • Configuring the emulation module (EM), • Installing the EM, and • Making system cable connections. This section explains all items except EM configuration. (As EM configuration is specific to each EM, you must follow the instructions of your EM user's manual.) Additionally, this sections explains how to remove an EM from the station module. Figure 2.
Ins t a ll at ion Introduction Figure 2.1 2–10 Freescale Semiconductor, Inc. M68MMDS0508 Station Module (Right Side) MMDS0508 Target Interface For More Information: www.freescale.
Freescale Semiconductor, Inc. Figure 2.2 I ns t al la t io n Configuring the Platform Board M68MMDS0508 Station Module (Left Side) Panel Power Cord Socket Power Switch 9-Pin Serial Connector +5V Out 2.2 Configuring the Platform Board The MMDS platform board has four jumper headers, all located near the front. Jumper header J1 is for factory test. Jumper headers J2, J3, and J4 control the voltage levels for ports A through D.
Ins t a ll at ion Configuring the Platform Board Figure 2.3 Freescale Semiconductor, Inc. Factory Test Header (J1) (Ignore the alternate jumper position, which is reserved for factory tests.) 2.2.2 Port Voltage Control Headers (J2–J4) Jumper headers J2 through J4, near the right front corner of the platform board, set the voltage levels for ports A through D. Header J2 is the port A control; header J3 is the port B control; header J4 is the control for port C or D (whichever pertains to your EM).
Freescale Semiconductor, Inc. I ns t al la t io n Installing the EM 2.3 Installing the EM CAUTION Be sure to turn off power to the MMDS when you install or remove an EM. This prevents power surges that could damage MMDS circuits. Follow these steps to install an EM in the MMDS enclosure: 1. Make sure that station module power is off. 2. Unscrew (one quarter turn) the two captive screws of the access panel, then remove the panel. 3.
Ins t a ll at ion Making Cable Connections Freescale Semiconductor, Inc. 2.5 Making Cable Connections You must connect the station module to the host computer and to line power. According to your specific application, you also may need to connect the EM to your target system, or to connect the logic clip cable assemblies. 2.5.1 Host Computer Connection Connect the 9-lead serial cable between the MMDS 9-pin serial connector and the COM1 serial port connector of the host computer.
Freescale Semiconductor, Inc. I ns t al la t io n Making Cable Connections If you need the second logic cable assembly, connect it in the same way to the remaining pod connector of the station module. Make target-system connections as for the first cable. 2.5.3 Target Cable Connection To connect the MMDS to a target system, you must use a target cable assembly: a target cable and a target head. NOTE Press only on the rigid plastic terminators of the cable.
Ins t a ll at ion Making Cable Connections 2–16 Freescale Semiconductor, Inc. MMDS0508 Target Interface For More Information: www.freescale.
Freescale Semiconductor, Inc. 3 Connector Information 3.1 Introduction This section provides pin assignments and signal descriptions for connectors common to all MMDS systems. For similar information about EM connectors, see the corresponding EM user's manual. Additionally, this section explains the reset switch, and fuse replacement. 3.2 Reset Switch RS-232 handshake signals control MMDS resets. A reset initializes the control board from its startup point.
Freescale Semiconductor, Inc. C o n n e ct o r I n f o rm at i o n Logic Cables and Connectors Table 3.1 . Serial Connector and Cable Pin Assignments Connector Pin Mnemonic Signal 1 DCD DATA CARRIER DETECT — Output signal that indicates detection of an acceptable carrier signal. 2 RX RECEIVE DATA — Serial data output line. 3 TX TRANSMIT DATA — Serial data input line. 4 DTR DATA TERMINAL READY — Input signal that indicates on-line/in-line/active status.
Freescale Semiconductor, Inc. Table 3.2 C onne c t or I nforma t io n Logic Cables and Connectors .
C o n n e ct o r I n f o rm at i o n Power Supply Fuse Replacement Freescale Semiconductor, Inc. • Pod B pin 17 is the external timetag input for the bus state analyzer. To use this source, make the desired clock connection to the white probe tip, then use the TIMETAG command to select an external time tag source for the analyzer. 3.5 Power Supply Fuse Replacement The station module power switch/connector assembly contains a standard 1/4 x 1 1/4 inch, 1.6-ampere, 250-volt ceramic, time-delay fuse.
Freescale Semiconductor, Inc. C onne c t or I nforma t io n Power Supply Fuse Replacement 2. Insert a small screwdriver at the tab on the right edge of the switch/connector assembly. (Figure 1 shows where to insert the screwdriver.) Gently pry open the assembly door, which swings open to the left. 3. Remove the fuse holder from the switch/connector assembly. Remove the fuse from the holder. 4. Insert the replacement fuse into the holder. Then re-install the holder in the switch/ connector assembly.
C o n n e ct o r I n f o rm at i o n Power Supply Fuse Replacement 3–22 Freescale Semiconductor, Inc. MMDS0508 Target Interface For More Information: www.freescale.
Freescale Semiconductor, Inc. M MD S Ta rge t C omp one nt 4.1 Introduction 4 MMDS Target Component 4.1 Introduction An advanced feature of the debugger for the embedded systems development world is the ability to load different target components, which implement the interface with target systems. This document introduces the MMDS0508 Modular Development System for the MC68HC05 and MC68HC08 MCU families.
MM D S T a r g e t C o mp o n en t 4.2 General Freescale Semiconductor, Inc. 4.2 General This chapter describes the specific features of the MMDS0508, including emulation memory mapping, as well as the function and purpose of the bus analyzer. The explanations of windows and dialog boxes are with the explanations of corresponding MMDS0508 features. 4.2.1 MMDS0508 The MMDS0508 is an emulator system, for CPU05 or CPU08 MCUs, that provides emulation memory and a bus state analyzer. 4.2.
Freescale Semiconductor, Inc. M MD S Ta rge t C omp one nt 4.3 Definitions, Acronyms and Abbreviations 4.3 Definitions, Acronyms and Abbreviations 4.3.1 DLL Dynamic Link Library: A Microsoft Windows library file for dynamic linking. 4.3.2 Dynamic Linking Dynamic Linking: A Windows process that links a function call in one module to the actual function (in the library module), at run time. 4.3.
MM D S T a r g e t C o mp o n en t 4.5 Loading the MMDS0508 Target Freescale Semiconductor, Inc. computer to be a data terminal, so that it sends data on the TxD lead and receives data on the RxD lead (as shown in Figure 4.2 and as the MMDS0508 hardware manual explains). Figure 4.2 Hardware connection 4.5 Loading the MMDS0508 Target Usually, the PROJECT.INI file specifies the target. To make the MMDS the target, change the file’s “Target=” line to “Target=Motosil”.
Freescale Semiconductor, Inc. M MD S Ta rge t C omp one nt 4.6 Communication Configuration The MotoSIL driver automatically tries to find the MMDS target, behaving as text above explains. If MotoSIL does not detect a target, the MotoSIL item remains in the main menu bar as shown in Figure 4.4: Figure 4.4 Loading MotoSIL Target But after successful target loading, the MMDS0508 menu replaces the Target or MotoSIL menu in the main menu bar as show in Figure 4.5. Figure 4.5 Loading MMDS Target 4.
MM D S T a r g e t C o mp o n en t 4.6 Communication Configuration Figure 4.6 Freescale Semiconductor, Inc. MotoSIL Communication Configuration Make sure that host-computer parameter values are correct; make sure that the serialcommunication setting is correct. Otherwise, communication between the debugger and the target is not possible. 4.6.
Freescale Semiconductor, Inc. M MD S Ta rge t C omp one nt 4.7 The Debugger Status Bar for the MMDS NOTE Saving the communication device and the baud rate through this dialog box overrides environment variables BAUDRATE and COMDEV of the default.env file. 4.6.2 Data Format The MMDS0508 data format is 8 data bits, 1 stop bit, no parity, and a variable baud rate. The default speed is 9600 baud, unless you change this default via the menu selection MMDS0508>Communication....
MM D S T a r g e t C o mp o n en t 4.8 MMDS0508 Menu Entries Figure 4.9 Freescale Semiconductor, Inc. MMDS Menu Entries 4.8.1 Communication Baud Rate You should specify the baud rate for host-computer-to-MMDS0508 communication early in a session. The system operates most efficiently at the maximum baud rate that the host computer supports. You can modify this baud rate, as text below explains. 4.8.1.1 Communication Select MMDS0508>Communication...
Freescale Semiconductor, Inc. M MD S Ta rge t C omp one nt 4.8 MMDS0508 Menu Entries 4.8.1.2 Maximum Baud Rate The maximum baud rate depends on the speed and interrupt load of the host computer. For slow book computers, or for computers running in a network, the maximum baud rate may be as low as 19200. A buffered I/O card may allow the maximum rate of 115200 for any host computer. The default value is 9600. 4.8.1.
MM D S T a r g e t C o mp o n en t 4.8 MMDS0508 Menu Entries Figure 4.11 Freescale Semiconductor, Inc. Memory Configuration This dialog box shows the target’s memory setup. The system automatically loads this setup if you check the Auto select according to MCU-Id checkbox. The debugger identifies and sets the memory map through the processor MCU-Id. To open another configuration, click the Open button. To save modifications to the current configuration, click the Save... button. 4.8.3 Personality (.
Freescale Semiconductor, Inc. M MD S Ta rge t C omp one nt 4.8 MMDS0508 Menu Entries Figure 4.12 Error Message Click Cancel to open the Communication Device Specification dialog box, instead of establishing the connection. Click Retry to bring up the Open Personality File dialog box show in Figure 4.13: Figure 4.13 Open Personality File This dialog box lets you browse to find and open the necessary .MEM file. If you select another invalid .
MM D S T a r g e t C o mp o n en t 4.8 MMDS0508 Menu Entries Freescale Semiconductor, Inc. If you have checked the Auto Select according MCU-ID checkbox, the system automatically loads the default personality file for the MCU-ID. If this checkbox is clear, the system automatically loads the most recently opened or saved memory map file. You can use the Memory Configuration dialog box to modify the memory configuration, then save this new configuration into a memory configuration file.
Freescale Semiconductor, Inc. M MD S Ta rge t C omp one nt 4.8 MMDS0508 Menu Entries Figure 4.14 Target Signals This dialog box lets you specify the MCU clock and the reset signal connection. Warning: in order to use any of these clock signals, you must configure EM jumper headers correctly. This dialog box displays settings that the system reads from the MMDS0508. Click Ok to close the dialog box, and to write values back to the MMDS0508.
MM D S T a r g e t C o mp o n en t 4.9 Default Target Setup Freescale Semiconductor, Inc. 4.9 Default Target Setup As with any target, you can use the Target menu to load the MMDS target component, or you can set the MMDS target component as a default in the PROJECT.INI file. This file should be in the project directory. Example of PROJECT.INI file.
Freescale Semiconductor, Inc. M MD S Ta rge t C omp one nt 4.10 Bus Analyzer For a PC: Any valid communication device (COM1,COM2,etc.). Example:COMDEV=COM2 For SUN:Any valid communication device (/dev/ttya, etc.). Example:comdev=/dev/ttyb 4.9.1.2 BAUDRATE This parameter specifies the communication baud rate between the host computer and the target system. The debugger default is 9600 baud, but you may set any of these baud rates: 1200, 2400, 4800, 9600, 19200, 28800, 38400, 57600, 115200.
MM D S T a r g e t C o mp o n en t 4.10 Bus Analyzer Freescale Semiconductor, Inc. 4.10.1.1 Watchpoints The MMDS0508 automatically maps available watchpoints to a proper bus analyzer trigger pattern. You may use the bus analyzer to implement watchpoints. If you do, however, you should not use the bus analyzer for other purposes! 4.10.1.2 Trace Modes To gather pertinent bus data, you can operate the bus analyzer in different modes.
Freescale Semiconductor, Inc. M MD S Ta rge t C omp one nt 4.10 Bus Analyzer Figure 4.15 Bus Analyzer 4.10.2.1 The Trace window popup menu Figure 4.16 • • • • Trace Window popup The bus analyzer has setup pages for these functions: Triggers Search pattern Sequencer Clock timing These tabbed setup pages are part of the Bus Analyzer Configuration dialog box. The Bus Analyzer Configuration dialog box lets you define symbolic names for address values.
MM D S T a r g e t C o mp o n en t 4.10 Bus Analyzer • • • Freescale Semiconductor, Inc. symbolic name values must match. If there is an inconsistency, the system prompts you to: Use the address and remove the symbol. Replace address with the symbol address. Fix the inconsistency by returning to the dialog box and clicking the symbol button. 4.10.2.2 Trigger Setup The sequencer mode requires one or more terms to define the trigger events. To define these events (triggers) select Trace>Setup....
Freescale Semiconductor, Inc. M MD S Ta rge t C omp one nt 4.10 Bus Analyzer 4.10.2.2.1 Term Use this area to specify the term displayed for editing. The term identifies an event; that is, an event is a frame that satisfies the term. 4.10.2.2.2 Address In this edit box, specify the address to which the system writes data or from which the system reads data. 4.10.2.2.3 Data In this edit box, specify the data that the system is to read or write. 4.10.2.2.
MM D S T a r g e t C o mp o n en t 4.10 Bus Analyzer Freescale Semiconductor, Inc. In triggered modes, the analyzer uses your term definitions to track the occurrence of events, then stop data collection according to some combination of the events. Each term has an associated Pre Event count that counts events for that term. The sequencer condition includes that term, once the count reaches the pre-event count.
Freescale Semiconductor, Inc. M MD S Ta rge t C omp one nt 4.10 Bus Analyzer 4.10.2.4.2 Continuous: Events Only Stores all the events that you defined in the Triggers page. 4.10.2.5 Counted Modes In counted modes, data collection stops when the analyzer collects the specified number of frames. 4.10.2.5.1 Counted: All Cycles Records a specified number of cycles; you can trace that many cycles, of all types. 4.10.2.5.2 Counted: Events Only Stores all events until it reaches the specified count.
MM D S T a r g e t C o mp o n en t 4.10 Bus Analyzer Freescale Semiconductor, Inc. 4.10.2.6.3 Sequential: A + B -> C + D Select this option to start bus-analyser recording when either of two sequences occurs: (1) event A, followed by either event C or event D, or (2) event B, followed by either event C or event D. Data storage ends after the specified number of post-trigger cycles. You can simplify this sequence by leaving an event undefined. 4.10.2.6.
Freescale Semiconductor, Inc. M MD S Ta rge t C omp one nt 4.10 Bus Analyzer 4.10.2.8 Time Tag Clock Setup Each frame of the trace buffer includes a time reference value, or time tag. You can specify the clock signal that the analyzer uses for these time tags. To do so, choose the Trace>Setup... menu selection, to open the Bus Analyzer Configuration dialog box as shown in Figure 4.19. Then click on the Time Tag Clock tab. Figure 4.19 Bus Analyze Time Clock Setup 4.10.2.8.
MM D S T a r g e t C o mp o n en t 4.10 Bus Analyzer Freescale Semiconductor, Inc. 4.10.3 Collecting Data When your have initialized the emulator and the bus analyzer have been initialized, and when you have connected any logic clips that you defined, emulation can begin. 4.10.3.1 Arming the Analyzer Before you can start data collection, you must arm the bus analyzer. To do so, choose the MMDS0508>Bus Trace>Arm Analyzer menu selection.
Freescale Semiconductor, Inc. M MD S Ta rge t C omp one nt 4.10 Bus Analyzer 4.10.3.7 Recording Bus Data When data collection begins, the bus analyzer starts recording bus data into the buffer. When it reaches the end of the buffer, the Bus analyzer wraps around to the first buffer frame and continues recording.
MM D S T a r g e t C o mp o n en t 4.10 Bus Analyzer Freescale Semiconductor, Inc. The analyzer can display its contents as text or as a graphic. You can have a textual display of all frames, or a textual display of only instruction-start frames. Additionally, you can choose the Trace>Items... menu selection to specify items for display. 4.10.4.3 Textual Display If you choose the Textual format, the software displays all the frames of the trace buffer contents, in a textual form, as shown in Figure 4.20.
Freescale Semiconductor, Inc. M MD S Ta rge t C omp one nt 4.10 Bus Analyzer 4.10.4.3.2 Address This column lists frame address bus values, as four hexadecimal digits. Each value is the address on the address bus at the time the analyzer strobed the frame into the trace buffer. 4.10.4.3.3 Data This column lists frame data bus values, as two hexadecimal digits. Each value is the values on the data bus at the time the analyzer strobed the frame into the trace buffer. 4.10.4.3.
MM D S T a r g e t C o mp o n en t 4.10 Bus Analyzer Figure 4.21 Freescale Semiconductor, Inc. Trace Instructions Only Format Display 4.10.4.5 Graphical Display The figure below shows the graphical display of bus analyzer data. Selections of the Trace menu let you switch between formats easily, at any time. The left column lists data items. The next column lists the data values for the current frame. The rest of the display presents those data values graphically, or with greater resolution.
Freescale Semiconductor, Inc. M MD S Ta rge t C omp one nt 4.10 Bus Analyzer Figure 4.22 Trace Zoom Display The figure above is a zoomed-in graphical display. To zoom out, choose the Trace>Zoom Out menu selection, or press the O key of the keyboard. The Figure 4.23 show below is a zoomed-out graphical display. Figure 4.23 Trace Zoom In Display Dragging the marker over a bus analyzer display may also generate updates in component windows, such as the source and assembly windows.
MM D S T a r g e t C o mp o n en t 4.10 Bus Analyzer Freescale Semiconductor, Inc. moving the marker over a bus analyzer textual or graphical display lets you view and thoroughly examine data in continually updated windows. 4.10.4.5.2 ShowLocation To activate the ShowLocation selection for a frame, select the frame, click the right mouse button to activate the Trace menu, then select ShowLocation. Use a left mouse click to position the marker. This automatically updates the source and assembly windows. 4.
Freescale Semiconductor, Inc. M MD S Ta rge t C omp one nt 4.10 Bus Analyzer Figure 4.25 Item Content 4.10.5 Scrolling the Display You can use display scrollbars as you would those of other Windows applications, or you can scroll to a specific trace buffer frame. It is also possible to search for one or more trigger events, or to search for a specific pattern, as the Figure 4.26 illustration below indicates. Figure 4.26 Search Menu 4.10.5.
MM D S T a r g e t C o mp o n en t 4.10 Bus Analyzer Figure 4.27 Freescale Semiconductor, Inc. Search Frame 4.10.5.2 Search for Events To search for an event occurrence, choose the Trace>Search>Event... menu selection. This opens the Search Event Specification dialog box as shown in Figure 4.28. Check the checkboxes of one or more events. Figure 4.28 Search Events 4.10.5.2.1 OK Button To store your specification of events (not searching immediately), click OK. 4.10.5.2.
Freescale Semiconductor, Inc. M MD S Ta rge t C omp one nt 4.10 Bus Analyzer finds a matching frame, the marker moves to the frame. If necessary, the system scrolls the bus analyzer window to make the frame visible. If the search does not find a matching frame, an error message reports that fact. 4.10.5.2.5 Previous Event To search for the previous occurrence of the specified event, choose the Trace>Search >Previous Event menu selection.
MM D S T a r g e t C o mp o n en t 4.10 Bus Analyzer Freescale Semiconductor, Inc. Use this page to define the search pattern, in the same way you completed the Triggers page. The bus analyzer will look at specific collected cycles, match the frame that shows the pattern, then display this frame in the debugger window. 4.10.5.3.1 Address In this edit box, specify the Address to be matched. 4.10.5.3.2 Data In this edit box, specify the Data value to be matched. 4.10.5.3.
Freescale Semiconductor, Inc. M MD S Ta rge t C omp one nt 4.10 Bus Analyzer 4.10.6 Dumping the Bus analyzer data to a file To dump the Bus analyzer data to a file, choose the Trace>Dump... menu selection. This opens the Dump Bus Analyzer Frames dialog box as shown in Figure 4.30. Figure 4.30 Dump Bus Analyzer Frames 4.10.6.1 Dump File This dialog box lets you specify frames in the bus analyzer window, then dump those frames to a file.
MM D S T a r g e t C o mp o n en t 4.10 Bus Analyzer Figure 4.31 Freescale Semiconductor, Inc. Analyzer Dump Only Frame 4.10.6.1.5 OK Button Click the OK button to close the dialog box and dump the bus analyzer data to the file. 4.10.6.1.6 Cancel Button Click the Cancel button to close the dialog box without dumping any data. 4–58 MMDS0508 Target Interface For More Information: www.freescale.
Freescale Semiconductor, Inc. A Appendix A.1 MMDS Commands This section describes MMDS-specific commands. Use MMDS-specific commands as you would any other commands, typing them in the Command Line component, or inserting them into a command file. For further details about debugger commands, please see the debugger manual sections Appendix, Debugger Commands and Command Line Component. A.1.1 Baud Rate Command BAUD A.1.1.1 Short Description sets the communication baud rate. A.1.1.
Freescale Semiconductor, Inc. Ap p en d ix MMDS Commands Without a rate value, the command displays the Communications Baud Rate Specification dialog box for interactive rate selection. If the system does not support the requested rate, the red message, “Error: is not a supported baud rate.” appears in the Command Line window. Example: BAUD 57600 Changes the Baud Rate Command to 57600. A.1.2 Trigger Commands CT A.1.2.1 Short Description clear triggers. A.1.2.
Freescale Semiconductor, Inc. Ap p en d ix MMDS Commands CT * Clears all triggers. This command clears both triggers of a range definition, even though just one of the triggers is a parameter value. Example: If triggers C and D define a range, CT C clears both the triggers. ST A.1.2.4 Short Description set trigger. A.1.2.5 Syntax ST [id [[!] [(address | address range | ,) [(data | data range | ,) [(clips | ,) [LIR= (X | H | L)]]]] [;R | ;W| ;RW] [;D] ]] A.1.2.
Freescale Semiconductor, Inc. Ap p en d ix MMDS Commands address range: A range of addresses to trip the trigger. To specify a range, use starting and ending constants, or use a starting address and a length value: start-address[:mask][..end-address] or start-address[:mask][,length] If you include a mask value, the system comparison involves only the address bits that correspond to ones (1s) of the mask.
Freescale Semiconductor, Inc. Ap p en d ix MMDS Commands of Term A to H. Without a mask, the ST command uses the unmasked value 0x1F for the clips. Each trigger clip line has three options: H - High L - Low X - Don’t Care The bits of the clips and mask words are: Bit: 0 Signal: Group A- BRN 1 RED 2 ORG 3 YEL 4 GRN 6 LIR (active low) ;R: Trigger on a read bus cycle only. ;W: Trigger on a write bus cycle only. ;RW: Trigger on a read or write bus cycle.
Freescale Semiconductor, Inc. Ap p en d ix MMDS Commands A bit set in both the clips and masks sets the trigger to high (-H). A bit clear in clips, but set in masks, sets the trigger to low (-L). A bit clear in a mask means that the trigger does not depend on the state of the clip. Examples: STA 0x1000 Sets analyzer trigger A to match accesses at address $1000. STB , 4 Sets analyzer trigger B to match accesses with a value of 4, at any address. STC 8 20..
Freescale Semiconductor, Inc. Ap p en d ix MMDS Commands list: A list of trigger identifiers (A, B, C, or D), separated by comma or space characters. *: All triggers. A.1.2.9 Description The TD command disables specified triggers. Use the Set Trigger (ST) command to set triggers; use the Trigger Enable (TE) command to enable triggers. Use the Clear Triggers (CT) command to clear triggers. Example: TD A B Disables triggers A and B. Example: TD * Disables all triggers. TE A.1.2.
Freescale Semiconductor, Inc. Ap p en d ix MMDS Commands TE A B Enables triggers A and B. Example: TE * Enables all triggers. A.1.3 Bus Analyzer Commands ARM A.1.3.1 Short Description arm bus analyser. A.1.3.2 Syntax ARM A.1.3.3 Description The ARM command arms the bus analyzer. When armed, the analyzer records bus cycles while the emulator is executing user code. Arming the analyzer clears the current contents of the trace buffer. Use the disarm analyzer (DARM) command to disarm the analyzer.
Freescale Semiconductor, Inc. Ap p en d ix MMDS Commands A.1.3.5 Syntax DARM A.1.3.6 Description The DARM command disarms the bus analyzer. When disarmed, the analyzer does not record bus cycles. If the bus analyzer is disarmed already, this command does nothing. ARM arms the analyzer GE A.1.3.7 Short Description go to event. A.1.3.8 Syntax GE list | * [;B] ;B: Specifies a backward search; without this option, the command directs a forward search.
Freescale Semiconductor, Inc. Ap p en d ix MMDS Commands GF A.1.3.10 Short Description go to frame. A.1.3.11 Syntax GF frame frame: Frame number, in the range 1..8191. This number must be decimal number, regardless of the current default number base. A.1.3.12 Description The GF command moves the cursor to a specified trace buffer frame. If the command’s frame-number value is greater than the number of frames stored in the buffer, the command moves your display to the buffer’s last frame.
Freescale Semiconductor, Inc. Ap p en d ix MMDS Commands A.1.3.15 Description The GP command searches the analyzer trace buffer for a frame that matches the defined search pattern. (Use the SP command to define the pattern.) A forward search begins at the frame immediately following the current frame. A backward search begins at the frame immediately preceding the current frame. When the search finds a matching frame, the system positions the line cursor on the frame, in the center of the screen.
Freescale Semiconductor, Inc. Ap p en d ix MMDS Commands LF logfile Open the logging file. Example: LT Copy all the trace buffer to the logging file. Example: NOLF Close the logging file. SC A.1.3.19 Short Description set analyzer clock. A.1.3.
Freescale Semiconductor, Inc. Ap p en d ix MMDS Commands 500,000 Hz divided by an integer. Thus, 50000 is valid, but 49000 is not. (If you specify 49000, the system rounds the value up the the next higher valid frequency: 50000.) A.1.3.21 Description The SC command sets the source for the time tag clock, which increments the trace buffer time tag. If this command includes no parameter values, the command interpreter opens the Bus Analyzer Configuration dialog box.
Freescale Semiconductor, Inc. Ap p en d ix MMDS Commands !: The inversion operator, which applies to a single address or data value. Specifying !sets a pattern on addresses or data values other than the specified address or data value. address: Address part of the pattern, specified with an address constant: address [:mask] If you include a mask value, the system comparison involves only the address bits that correspond to ones (1s) of the mask.
Freescale Semiconductor, Inc. Bit: 1 2 3 4 5 6 7 Signal: RED ORG YEL GRN BLU LIR GRY Ap p en d ix MMDS Commands Bit: 9 10 11 12 13 14 15 Signal: RED ORG YEL GRN BLU VLT GRY ;R: Search for a read bus cycle only. ;W : Search for a write bus cycle only. ;RW: Search for either a read or write bus cycle. LIR: Search for a specific LIR-signal value: LIR=H searches for LIR high. LIR=L searches for LIR low. LIR=X searches for LIR either high or low.
Freescale Semiconductor, Inc. Ap p en d ix MMDS Commands would trip the trigger: 0xC000, 0xC001, 0xC002, or 0xC003. For Address 0x00B0, Mask 0xFFF0, any address in the range 0x00B0..0x00BF would trip the trigger. SQ A.1.3.25 Short Description set sequencer. A.1.3.
Freescale Semiconductor, Inc. Ap p en d ix MMDS Commands A.1.3.27 Description The SQ command sets the analyzer sequencer mode. If this command includes no parameter values, the command interpreter opens the Bus Analyzer Configuration dialog box: select the Sequencer Setup dialog box to program the sequencer interactively. Selecting from the Setup menu is another way to open the Sequencer Setup dialog box. Example: SQ ALL 100 Specifies 100 bus cycles.
Freescale Semiconductor, Inc. Ap p en d ix MMDS Commands TT Displays the difference between the beginning and ending frames in the trace buffer. Example: TT 80 Displays the difference between frame 80 and the ending frame in the trace buffer. Example: TT 10 40 Displays the difference between frames 10 and 40 in the trace buffer. VA A.1.3.31 Short Description analyzer view. A.1.3.
Freescale Semiconductor, Inc. Ap p en d ix MMDS Commands A.1.4 Target Signal Emulation Commands SIG A.1.4.1 Short Description set emulator signals. A.1.4.2 Syntax SIG [ [ENABLE] signal {signal}] [ DISABLE signal {signal}] signal: The signal to be enabled or disabled: RESETIN or RESETOUT. ENABLE: Connect the signal from the target system. DISABLE: Disconnect the signal from the target system. A.1.4.3 Description The SIG command enables or disables control signals from the target MCU.
Freescale Semiconductor, Inc. Ap p en d ix MMDS Commands A.1.5.2 Syntax RESET [GO|STOP] GO: Resets the MCU and does a Go from Reset. STOP: Resets the MCU and stops (default). A.1.5.3 Description The RESET command resets the target MCU. Examples: Reset Go Resets the MCU and does a GO from Reset. Reset Resets the MCU and stops (default setting). A.1.6 Other Commands LOADMAP A.1.6.1 Short Description loads memory map. A.1.6.
Freescale Semiconductor, Inc. Ap p en d ix MMDS Commands A.1.6.3 Description The LOADMAP command loads a memory map from a file. The file specification must be the full pathname. If the file is in the current directory, the characters “.\” must precede the name (for example: LOADMAP .\00123V22.MEM). Example: LOADMAP 0xC17 Loads a memory map from a file that matches this MCU identifier (68HC08AX48). Note that the MCUID identifies an MCU, not an EM Board. The memory map filename has this format: 0nnnnVvv.
Freescale Semiconductor, Inc. Ap p en d ix MMDS Commands ROM 3E00..FDFF ROM IO FE00..FE1F PRU or TOP TOP board resource or the PRU NONE FE20..FFDB NONE ROM FFDC..FFFE ROM COP FFFF..FFFF special ram for cop RT MEM 0.. 3FF (disabled) ------------------------------------------------------- OSC A.1.6.7 Short Description selects Emulator Clock Frequency command. A.1.6.8 Syntax OSC [rate | source] A.1.6.
Freescale Semiconductor, Inc. Ap p en d ix MMDS Commands Example: OSC OSC8MHZ // Use the 8 Mhz internal emulator clock. PROTOCOL A.1.6.10 Short Description controls Show Protocol functionality. A.1.6.11 Syntax PROTOCOL [ON | OFF] ON: Reports commands and responses in the command line window (default value for this command). OFF: Does not report commands or responses in the command line window; does not log commands or responses in the log file. A.1.6.
Freescale Semiconductor, Inc. Ap p en d ix MMDS Commands ;D: Disables the real time memory block. A.1.6.15 Description The RTMEM command lets you enable or disable real time memory. Example: RTMEM 0x1000 ;D Disables the real time memory block at base address $1000. A–82 MMDS0508 Target Interface For More Information: www.freescale.
Index Freescale Semiconductor, Inc. Symbols E .
Freescale Semiconductor, Inc. M MCU Clock 35 MCU clock 35 MCU-Id 32 MEM 79 Memory 34 Memory Configuration 31 Memory Map 31 Menu 29 MMDS0508 24 MMDS0508 Server 25 Modes counted 43 non-triggered 42 triggered 43 MotoSIL 26 Motosil 36 N Nth Event 44 O OSC 80 P Personality file 32 Pin Assignments, Connector 17 Platform Board, Configuration 11 Pod 19 Port Voltage Control Jumper Headers (J2–J4) 12 PROJECT.
Freescale Semiconductor, Inc. Search 53 Event 54 Frame 53 Pattern 55 Sequencer Setup 41 Sequential 43 Serial 18 Show Protocol 31 ShowLocation 52 SHOWPROT 37 SIG 77 Signals 34 SP 71 SQ 74 ST 61 Status Bar 29 System Components 6 Connections 14 T Target 26 Target Setup 36 TD 64 TE 65 Textual Display 48 Time Tag Clock 45 Trace Buffer 38 Trace Modes 38 Trigger 47 Trigger Events 40 Trigger Setup 40 TT 75 V VA 76 Viewing Data 47 W Watchpoints 38 Z Zoom 50 MMDS0508 Target Interface For More Information: www.
Freescale Semiconductor, Inc. IDX–86 MMDS0508 Target Interface For More Information: www.freescale.