Do you have a question about the System Navigator and is the answer not in the manual?
Questions and answers
Summary of Contents for Mips Technologies System Navigator
Page 1
Getting Started System Navigator for the Handshake HT80C51 / HT80C51MX Microcontrollers Family of JTAG Debuggers Document Number: 11637.000 January 5, 2012 MIPS Technologies, Inc. 955 East Arques Avenue Sunnyvale, CA 94085-4521...
Page 2
MIPS Technologies reserves the right to change the information contained in this document to improve function, design or otherwise. MIPS Technologies does not assume any liability arising out of the application or use of this information, or of any error or omission in such information. Any warranties, whether express, statutory, implied or otherwise, including but not limited to the implied warranties of merchantability or fitness for a particular purpose, are excluded.
System Navigator for Handshake HT80C51 / HT80C51MX Getting Started 1. Introduction System Navigator is a JTAG-based debugging solution which communicates with USB (1.1 and 2.0) and supports Ethernet as an orderable option. Multiple cores and tools on a single JTAG chain can be accommodated.
System Navigator for Handshake HT80C51 / HT80C51MX Getting Started configuration is supplied. If you are using a multi-core setup, see the System Navigator Quick Start Guide for information on creating a new configuration file. 4. Software Interfaces Console A command-line interface (CLI) based on Tcl/Tk is provided. See the section Console Commands and Syntax Conventions for more information and tutorial.
Page 6
System Navigator for Handshake HT80C51 / HT80C51MX Getting Started Signal Active Comments JTAG test clock 2,10 Signal reference. Both pins must be connected. JTAG test data output Probe does not connect to this pin. JTAG test mode select Used by probe to configure output driver level.
System Navigator for Handshake HT80C51 / HT80C51MX Getting Started 5.1.2. Target Connection for FS2DI (2-wire) Cable The System Navigator uses a 10-position flat ribbon cable with standard 0.100” square post headers. A connector with an orientation key such as 3M 2510-6002UB is recommended. The pinout of the target connector is described in the following table.
6.2. Setting Up the Debugger Hardware If this is your first time using the debugger, see System Navigator Quick Start Guide to install your hardware. If you have already set up your hardware from a previous installation, no further hardware set up is needed.
Page 9
System Navigator for Handshake HT80C51 / HT80C51MX Getting Started Click on the Debug tab. Select the Use button on the right side and select the FS2 driver from the drop-down listbox. Choose FS2/Keil HANDSHAKE 8051 Driver: Select options you may want. Typically, Load Application at Startup is selected and Go till Main is selected if your startup code is debugged.
The drivers must appear in the ‘tools.ini’ Keil file in the root directory where you installed Keil. Be sure this file is writable. If you installed Keil after the System Navigator software, you will have to re-install the System Navigator software.
If you still have an error, go back to Options/Debug tab once more. Click on the Settings button. If it fails also, you have an installation problem. Re-install the System Navigator software. If Settings works, you have a code loading problem. Typically, de-selecting Load Application at Startup should resolve this issue.
Page 12
System Navigator for Handshake HT80C51 / HT80C51MX Getting Started Under the “Listing” tab , please make sure to check the “Linker Listing” check box as show below. After you have made the above changes, perform a “Rebuild” your project. Please verify that your project directory now contains a .MAP file.
Page 13
System Navigator for Handshake HT80C51 / HT80C51MX Getting Started Every time you begin a debug session, there are some “banking” log messages that are output in the COMMAND window at the very beginning of each session. Here is an example output.
In the system navigator, setup the “flash” configuration item to your flash memory type.(see below). This should be a one time setting. If you have used the System Navigator to flash your device already, this setting should already be setup for you.
Page 15
System Navigator for Handshake HT80C51 / HT80C51MX Getting Started Next, you need to create FlashMap.txt file, which must be located at ”C:\”. This file describes the sector layout of your flash device so that our software knows how to erase the device sector by sector.
Page 16
System Navigator for Handshake HT80C51 / HT80C51MX Getting Started Please note that the last entry is not a sector start address, but the last address of the device. Example 3 above was derived from the product spec using the following calculation.
Press OK, and exit Keil’s Options dialog. In Keil, select the Flash pull down menu, and select DOWNLOAD. You should see the System Navigator show up, go away, then the Keil progress bar at the bottom of the Keil window along with some log messages perhaps.
System Navigator for Handshake HT80C51 / HT80C51MX Getting Started Record Trace Button View Trace Button To use, press the record trace button when the application is halted. Hit run, and on the next halt/break, press the View trace button. The trace data should appear in the disassembly window above your PC(in Grey).
Now, let's get started by starting the software: From the Start Menu, choose Programs, then FS2, then the System Navigator Console. When the debugger starts, choose Source-level Debugger from the Windows menu.
Page 20
System Navigator for Handshake HT80C51 / HT80C51MX Getting Started Load a program: Choose the Tools menu, Load OMF… option. The default filename should be c:\Program Files\Fs2\HANDSHAKE51\samples\fs2. If not, you should reset to the default values by deleting the initsettings.tcl file in your installation directory.
System Navigator for Handshake HT80C51 / HT80C51MX Getting Started Step over a subroutine: Choose the Step Over button. The processor runs the entire func1 subroutine and breaks on line 43. 7.2.2. Inspecting Variables This step will load a program and use the basic emulation commands in the Source window.
System Navigator for Handshake HT80C51 / HT80C51MX Getting Started Click OK. You should be at line 31, the beginning of main. View symbols: Choose Windows and then Symbol Explorer to bring up the new window. You will see "+ C". This is an expandable/collapsible tree.
System Navigator for Handshake HT80C51 / HT80C51MX Getting Started View Trace: Choose Windows and then Trace to bring up the new window. The trace appears empty. However, the status bar indicates there are 7 frames of data collected. (See bottom right of status bar; you may have to expand the horizontal size of the window to see this.) The window is empty because the 7 frames are not in source...
Page 24
System Navigator for Handshake HT80C51 / HT80C51MX Getting Started Choose the Tools menu in the Source window, then the Load OMF… option. Use c:\Program Files\Fs2\HANDSHAKE51\samples\fs2 or wherever you installed the software. Click OK. You should be at line 31, the beginning of main.
System Navigator for Handshake HT80C51 / HT80C51MX Getting Started Choose Windows and then Source. Click on the Go button. Execution stops at line 45. Double click the variable loopx on line 45 and its value will be confirmed as a long 0x00000050.
To abort a command in progress, hit the ESC key. When the HANDSHAKE 8051 software is started, it runs a start-up script based on information supplied to the Connection dialog. See the System Navigator Quick Start Guide for more information on the System Navigator commands.
Page 27
System Navigator for Handshake HT80C51 / HT80C51MX Getting Started pc 0000 sp 07 dptr 0000 psw 00 b 00 cb 00 trigtime 00000000 3> Registers are extracted from the CPU and kept by the debugger software. Changes to the registers are not actually written into the CPU until the next time the CPU is started.
Page 28
System Navigator for Handshake HT80C51 / HT80C51MX Getting Started Memory may also be viewed in a number of other formats, such as: 10> dump 0x1000..+0x8 byte 1000p 90 12 34 E0 04 F0 80 FB 11> dump 0x1000..+0x8 word 1000p 9012 34E0 04F0 80FB 12>...
Page 29
System Navigator for Handshake HT80C51 / HT80C51MX Getting Started Single step. 1006p 80FB sjmp 0x1003 Single step. 1003p movx a,@dptr Single step. 1004p Single step. 1005p movx @dptr,a 27> a 28> Note that the registers can be accessed either using the register name command (e.g. dptr) or the register name variable (e.g.
Detailed descriptions of built-in Tcl commands may be found in the online Tcl/Tk Reference Manual included with Handshake 51 software. Detailed descriptions of the System Navigator commands can be found in the online help. Copyright (c) 2005-2011 MIPS Technologies, Inc. All rights reserved...
Page 31
MIPS Technologies reserves the right to change the Information to improve function, design or otherwise. MIPS Technologies does not assume any liability arising out of the application or use of the Information, or of any error or omission in such information. Any warranties, whether express, statutory, implied or otherwise, including but not limited to the implied warranties of merchantability or fitness for a particular purpose, are excluded.
Need help?
Do you have a question about the System Navigator and is the answer not in the manual?
Questions and answers