ARC ...........................................................................................................................................
Warning ..............................................................................................................................
Troubleshooting ................................................................................................................
SYStem.Up Errors
FAQ .....................................................................................................................................
13
13
13
13
14
14
14
15
15
15
15
17
17
22
SYStem.CpuAccess
22
SYStem.CpuAccess
23
25
26
27
28
29
SYStem.CPU
SYStem.JtagClock
SYStem.LOCK
SYStem.MemAccess
SYStem.Mode
SYStem.Option
ARC Debugger
SYStem.Option detectOTrace
SYStem.Option Endianess
SYStem.Option HotBreakPoints
SYStem.Option IMASKASM
SYStem.Option IMASKHLL
29
30
30
30
SYStem.Option IntelSOC
SYStem.Option LimmBreakPoints
SYStem.Option MMUSPACES
31
31
31
32
SYStem.Option OVERLAY
SYStem.Option RegNames
29
32
33
33
34
35
SYStem.Option ResetDetection
SYStem.Option TIMEOUT
SYStem.state
35
35
Limitations
36
TrOnchip.CONVert
TtrOnchip.VarCONVert
37
37
38
38
38
39
TrOnchip.OnchipBP
TrOnchip.RESet
TrOnchip.view
MMU.DUMP
39
40
41
42
43
Support ...............................................................................................................................
44
MMU.List
MMU.SCAN
Available Tools
44
Compilers
44
45
45
Products .............................................................................................................................
46
Product Information
46
Order Information
46
ARC Debugger
ARC Debugger
Version 24-May-2016
Debugger Basics - Training (training_debugger.pdf): Get familiar with the basic features of a
TRACE32 debugger.
Architecture-specific information:
Processor Architecture Manuals: These manuals describe commands that are specific for the
processor architecture supported by your debug cable. To access the manual for your processor
architecture, proceed as follows:
-
RTOS Debugger (rtos_<x>.pdf): TRACE32 PowerView can be extended for operating systemaware debugging. The appropriate RTOS manual informs you how to enable the OS-aware
debugging.
ARC Debugger
ARCtangent-A5 cores
ARCtangent-A4 cores
Warning
NOTE:
Disconnect the debug cable from the target while the target power is
off.
2.
Connect the host system, the TRACE32 hardware and the debug
cable.
3.
4.
5.
6.
7.
Power down:
1.
2.
3.
4.
ARC Debugger
Troubleshooting
SYStem.Up Errors
The SYStem.UP command is the first command of a debug session where communication with the target is
required. If you receive error messages while executing this command this may have the following reasons.
A FPGA which could hold an ARC Core like an ARCangel, is not loaded yet or does not contain
an ARC Core with a debugging interface.
There is a problem with the electrical connection between the debugger and the target - check if
the JTAG connector is plugged correctly and if the target is built corresponding to the definition
of the used JTAG connector.
ARC Debugger
Troubleshooting
FAQ
Debugging via
VPN
ARC Debugger
FAQ
Setting a
Software
Breakpoint fails
MetaWare 8.2
and TRACE32
Eclipse plug-in
problems
I get an error using the TRACE32 Eclipse plug-in in MetaWare 8.2. What
should I do?
According to ARC, there is a bug in MetaWare 8.2 that has been fixed in
MetaWare 8.3.
Please update your MetaWare installation.
Note:
For MetaWare 8.2, ARC modified part of the Eclipse/CDT distribution.
Currently (2009APR) there is no published source or an Eclipse update
server for MetaWare 8.2.
Please understand that Lauterbach is unable to test, debug and support
the TRACE32 Eclipse plug-in for installations where Eclipse or CDT components have been modified ("based" on or "derived from" Eclipse, not an
"Eclipse plug-in").
ARC Debugger
FAQ
ARC
Emulation
debug port fail
ARC Debugger
FAQ
ARC
MetaWare
Hostlink
Library
TERM.METHOD METAWARE
TERM.GATE
When starting your target application with GO, PowerView checks if your ELF
file contains the magic symbol called __HOSTLINK__ , which usually indicates
that you are using the MetaWare hostlink library. If this magic symbol is there but
a suitable TERM.GATE-window is not yet open, PowerView opens the window
automatically.
Thus, PowerView might have opened TERM.GATE when you are not using the
hostlink library but has created a symbol named __HOSTLINK__ by your own.
What can you do to avoid an automatically popping up TERM.GATE-window?
Open the window on purpose after loading your ELF file by using the commands
TERM.METHOD METAWARE and TERM.GATE .
Remove the MetaWare hostlink library from your target application by linking it with the compiler switch "-Hhostlib=" with nothing after the equals
sign (=).
Rename symbol
__HOSTLINK__ in your target application.
Rename symbol
__HOSTLINK__ in the debugger after loading the ELF file with e.g.
sYmbol.Modify.NAME __HOSTLINK__ __HOSTLINK-OFF__
See also: "MetaWare C/C++ Programmers Guide for ARC"
ARC Debugger
FAQ
ARC
MetaWare
Hostlink
Library
ARC
Viewing
auxiliary
registers
data.dump AUX:0
For any ARC700 core lots of registers will be displayed with ???????? , which
means that those registers are inaccessible, because they are not present at
your core.
For ARC600 and older cores unimplemented auxiliary registers normally show
the same value than the IDENTITY register.
The most common auxiliary register are also shown in the peripheral view. Open
the peripheral view with the command PER .
ARC Debugger
10
FAQ
ARC
Viewing
member
variables in
C++ methods
How can I see member variables in C++ methods without using the 'this'
pointer?
Adding a member variable to the watch window without an object name should
show a usefull value, when you are debugging a method/function of the desired
object (like local variables).<BR> However at least MetaWare compiler 8.5 and
earlier do not mark its code as C++ code. As a result TRACE32 does not search
for the 'this' pointer.<BR>
Solution:<BR> Update TRACE32 to build 27455 or higher and load your ELF
with /CPP option<BR> or update your MetaWare compiler to a version witch
addresses this issue.<BR>
Workaround:<BR> Always explicitly use 'this->' in the watch window.<BR>
ARC Debugger
11
FAQ
NOTE:
On all TRACE32 tool configurations except for the emulator device B:: is
already selected.
ARC Debugger
12
If you have more than one CPU core connected to the same JTAG port, please tell the debugger how it
should connect to the core you want to debug:
In case of a JTAG daisy chain use command SYStem.DETECT SHOWChain to scan the chain. The result
is shown in a window. Double-click on the desired core to tell the debugger which core youd like to debug.
To configure the position of your core in the JTAG daisy chain manually use commands
SYStem.CONFIG IRPOST, SYStem.CONFIG IRPRE, SYStem.CONFIG DRPOST and
SYStem.CONFIG DRPRE.
In case your CPU is designed in the mature ARC MADI multicore configuration, please use command
SYStem.CONFIG MADI to specify the core you want to debug.
Configure Compact-JTAG
Some ARC cores must be debugged via a two-wire debug interface called Compact-JTAG, cJTAG or
IEEE 1149.7.
Use command SYStem.CONFIG DEBUGPORTTYPE CJTAG to enable two wire mode.
Add command SYStem.CONFIG CJTAGFLAGS 0x03 to skip TCA-scanning and to use TRACE32pseudo-keeper to workaround problems with the cJTAG implementation of your core.
This command resets the CPU, enters debug mode and jumps to the break address of the debugged core.
After this command is executed it is possible to access memory and registers.
1989-2016 Lauterbach GmbH
ARC Debugger
13
The options of the Data.LOAD command depend on the file format generated by the compiler. A detailed
description of the Data.LOAD command is given in General Commands Reference.
Register.Set SP 0xbff
Register.Set PC main
WinClear
SYStem.Reset
ARC Debugger
14
SYStem.CPU ARC700
System.JtagClock 5.MHz
SYStem.Up
Data.LOAD.Elf demo.elf
Data.List
Register.view
Break.Set 0x400
Break.Set main
For information about how to build a PRACTICE script file (*.cmm file), refer to Debugger Basics Training (training_debugger.pdf). There you can also find some information on basic actions with the
debugger.
Please keep in mind that only the Processor Architecture Manual (the document you are reading at the
moment) is CPU specific, while all other parts of the online help are generic for all CPUs. So if there are
questions related to the CPU, the Processor Architecture Manual should be your first choice.
ARC Debugger
15
SYStem.CONFIG
Format:
SYStem.CONFIG.<sub_cmd> <parameter>
SYStem.MultiCore.<sub_cmd> <parameter> (deprecated)
<sub_cmd>:
(JTAG)
state
DRPRE <bits>
DRPOST <bits>
IRPRE <bits>
IRPOST <bits>
Slave [ON | OFF]
TAPState <state>
TCKLevel [0 | 1]
TriState [ON | OFF]
CORE <core> <chip>
MADI <id>
The four parameter IRPRE, IRPOST, DRPRE, DRPOST are required to inform the debugger about the TAP
controller position in the JTAG chain, if there is more than one core in the JTAG chain (e.g. ARC + ARM).
The information is required before the debugger can be activated e.g. by a SYStem.Up. See example below.
TriState has to be used if multiple debuggers are connected to a common JTAG port. TAPState and
TCKLevel define the TAP state and TCK level which is selected when the debugger switches to tristate
mode. Please note: nTRST must have a pull-up resistor on the target.
CONFIG Sub-Commands
state
DRPRE <bits>
DRPOST <bits>
ARC Debugger
16
IRPRE <bits>
IRPOST <bits>
(default: OFF) If more than one debugger share the same JTAG port,
all except one must have this option active. Only one debugger - the
master - is allowed to control the signals nTRST and nSRST
(nRESET).
TAPState <state>
TCKLevel [0 | 1]
(default: OFF) If more than one debugger share the same JTAG port,
this option is required. The debugger switches to tristate mode after
each JTAG access. Then other debuggers can access the port.
DEBUGPORTTYPE
[JTAG | SWD | CJTAG |
CJTAGSWD]
Default: JTAG.
ARC Debugger
17
CJTAGFLAGS <flags>
CJTAGTCA <value>
MADI
Some chips with multiple ARC cores use the so called Multiple
ARCtangent Processor Debug Interface (MADI). MADI is a multiplexer
which allows you to debug several ARC cores via one JTAG TAP.
While you select the TAP with IRPRE, IRPOST, DRPRE, DRPOST
the MADI options tells the debugger which core connected to the
MADI-TAP you want to debug.
Setting MADI to OFF means you dont have a MADI IP between your
TAP and your core.
If your target system does not have MADI, MADI is set automatically
to OFF.
ARC Debugger
18
MultiCore Example
Multicore with JTAG Daisy Chain
+------------------------+ +--------------------+
TDI --|-> Core A ---> Core B --|--|-> ARC ---> Core D -|--> TDO
+------------------------+ +--------------------+
Chip1
Chip2
Instruction register length of
Core A: 3 bit
Core B: 5 bit
Core D: 6 bit
SYStem.CONFIG.IRPRE 6
; IR Core D
SYStem.CONFIG.IRPOST 8
; IR Core A + B
SYStem.CONFIG.DRPRE 1
; DR Core D
SYStem.CONFIG.DRPOST 2
; DR Core A + B
SYStem.CONFIG.CORE 1. 2.
; Core 1 in Chip 2
SYStem.Up
SYStem.CONFIG MADI 2
SYStem.Up
ARC Debugger
19
TapStates
Exit2-DR
Exit1-DR
Shift-DR
Pause-DR
Select-IR-Scan
Update-DR
Capture-DR
Select-DR-Scan
Exit2-IR
Exit1-IR
10
Shift-IR
11
Pause-IR
12
Run-Test/Idle
13
Update-IR
14
Capture-IR
15
Test-Logic-Reset
See also
SYStem.LOCK
ARC Debugger
20
SYStem.CPU
Format:
SYStem.CPU <cpu>
<cpu>:
AUTO |
ARC-A4 |
ARC-A5 |
ARC600 | ARC601 | ARC605 | ARC610 | ARC625D |
ARC700 | ARC710D | ARC725D | ARC750D | ARC770D
ARC-EM-1r0 | ARC-EM-1r1
ARC-HS
Default: AUTO.
Selects the processor type.
ARC-A4 and ARC-A5 are abbreviations for ARCtangent-A4 and ARCtangent-A5.
AUTO reads out the IDENTITY auxiliary register after a SYStem.Up or SYStem.Mode Attach, and sets the
system cpu to ARC-A4, ARC-A5, ARC600, ARC700, ARC-EM or ARC-HS accordingly.
SYStem.CpuAccess
Format:
Default: Denied.
Enable
ARC Debugger
21
Denied
Nonstop
Lock all features of the debugger, that affect the run-time behavior.
Nonstop reduces the functionality of the debugger to:
trace display
The debugger inhibits the following:
all features of the debugger that are intrusive (e.g. action Spot for breakpoints, performance analysis via StopAndGo mode, conditional breakpoints etc.)
SYStem.CpuAccess
Format:
Default: Denied.
Enable
Denied
Nonstop
Lock all features of the debugger, that affect the run-time behavior.
Nonstop reduces the functionality of the debugger to:
trace display
The debugger inhibits the following:
all features of the debugger that are intrusive (e.g. action Spot for breakpoints, performance analysis via StopAndGo mode, conditional breakpoints etc.)
ARC cores normally support non-intrusive run-time memory access. Use SYStem.MemAccess therefore.
ARC Debugger
22
If specific windows, that display memory or variables should be updated while the program is running select
the memory class prefix E: or the format option %E.
Data.dump ED:0x100
Data.List EP:main
Var.View %E first
See also
Memory Classes
SYStem.MemAccess
ARC Debugger
23
SYStem.JtagClock
Format:
<clockmode>:
<frequency>:
6 kHz 80 MHz
1250000. | 2500000. | 5000000. | 10000000. (on obsolete ICD hardware)
(<frequency> is optional if <clockmode> is set to RTCK)
<frequency>
The debugger can not select all frequencies accurately. It chooses the next
possible frequency and displays the real value in the System Settings window.
Besides a decimal number like 100000. also short forms like 10kHz or
15MHz can be used. The short forms implies a decimal value, although no .
is used.
RTCK
ARTCK
Accelerated method to control the JTAG clock by the RTCK signal (Accelerated
Returned TCK).
Theoretically RTCK mode allows frequencies up to 2/3 of the processor clock.
For designs using a very low processor clock we offer a different mode
(ARTCK) which might not work on all target systems. In ARTCK mode the
debugger uses a fixed JTAG frequency for TCK, independent of the RTCK
signal. TDI and TMS will be delayed by 1/2 TCK clock cycle. TDO will be
sampled with RTCK
ARC Debugger
24
CTCK
CRTCK
With this option higher JTAG speeds can be reached, if your target provides
RTCK.
The TDO signal will be sampled by the RTCK signal. This compensates the
debugger internal driver propagation delays, the delays on the cable and on the
target (Compensation by RTCK). This feature requires that the target provides a
RTCK signal. Other as on RTCK option, the TCK is always output with the
selected, fix frequency.
The modes RTCK, ARTCK, CRTCK can only be used if the target provides a
RTCK signal.
Furthermore the modes are only available with the 20-pin Debug Cable
LA-3750 (or LA-3750A in an ARM Debug Cable).
SYStem.LOCK
Format:
Default: OFF.
If the system is locked, no access to the debug port will be performed by the debugger. While locked, the
debug connector of the debugger is tristated. The main intention of the lock command is to give debug
access to another tool.
ARC Debugger
25
It must be ensured that the state of the JTAG state machine remains unchanged while the system is locked.
To ensure correct hand over the options SYStem.CONFIG TAPState and SYStem.CONFIG TCKLevel
must be set properly. They define the TAP state and TCK level which is selected when the debugger
switches to tristate mode. Please note: nTRST must have a pull-up resistor on the target.
SYStem.MemAccess
Format:
CPU
Denied
Default: Denied.
This option declares if an non-intrusive memory access can take place while the CPU is executing code.
Although the CPU is not halted, run-time memory access creates an additional load on the processors
internal data bus.
If SYStem.MemAccess is not Denied, it is possible to read from memory, to write to memory and to set
software breakpoints while the CPU is executing the program.
If specific windows, that display memory or variables should be updated while the program is running select
the memory class prefix E: or the format option %E.
Data.dump ED:0x100
Data.List EP:main
Var.View %E first
See also
Memory Classes
SYStem.CpuAccess
ARC Debugger
26
SYStem.Mode
Format:
SYStem.Mode <mode>
<mode>:
Down
NoDebug
Go
Attach
Up
Down
NoDebug
Go
Resets the CPU, enters debug mode, jumps to the break address of the debugged
core and starts the program execution. Program execution can be stopped by the
break command or external trigger.
Attach
Initializes the debug interface and connects to core while program remains
running. After this command the user program can be stopped with the break
command or by any other break condition (e.g a breakpoints).
Up
Resets the CPU, enters debug mode and jumps to the reset address of the
debugged core.
StandBy
NOTE:
ARC Debugger
27
SYStem.Option
Format:
SYStem.Option detectOTrace
Format:
Default: OFF.
When connecting the debugger to the ARC core via commands SYStem.Mode Attach or
SYStem.Mode Up the debugger tries to detect if the ARC on-chip trace (SmaRT) by reading auxiliary
register 255 (AUX:0xFF).
For some reason some rare core implementations without SmaRT seem to have a fatal side-effect on
AUX:0xFF. For these cores use this option to avoid the read of AUX:0xFF during SYStem.Mode Attach or
SYStem.Mode Up.
SYStem.Option Endianess
Format:
Default: AUTO.
This option selects the target byte ordering mechanism (endianness). It effects the way data is read from or
written to the target CPU.
In AUTO mode the debugger sets the endianness corresponding to the ARC Build Registers, when the
debugger is attached to the target. AUTO mode is not available for ARCtangent-A4 cores.
Consider that the compiler, the ARC core and the debugger should all use the same endianness.
ARC Debugger
28
Format:
Default: AUTO.
This option controls how software breakpoints are set to a running ARC core:
ON
The debugger tries to set a software breakpoint while the CPU is running, if
SYStem.MemAccess is set to CPU
OFF
To set a software breakpoint, the debugger tries to stop the CPU temporarily, if
SYStem.CpuAccess is set to ENABLED.
AUTO
To set a software breakpoint, the debugger stops the CPU temporarily if the CPU
has an Instruction Cache (requires SYStem.CpuAccess set to ENABLED)
otherwise the debugger tries to set a software breakpoint while the CPU is running
(requires SYStem.MemAccess set to CPU)
SYStem.Option IMASKASM
Format:
Default: OFF.
If enabled, the debug core will disable all interrupts for the CPU, when single stepping assembler
instructions. No hardware interrupt will be executed during single-step operations. When you execute a Go
command, the hardware interrupts will be enabled again, according to the system control registers.
SYStem.Option IMASKHLL
Format:
Default: OFF.
If enabled, the debug core will disable all interrupts for the CPU, during HLL single-step operations. When
you execute a Go command, the hardware interrupts will be enabled again, according to the system control
registers. This option should be used in conjunction with IMASKASM.
1989-2016 Lauterbach GmbH
ARC Debugger
29
SYStem.Option IntelSOC
Format:
Default: OFF.
Inform the debugger that the ARC core is part of an Intel SoC. When enabled, all IR and DR pre/post
settings are handled automatically, no manuel configuration is necessary.
Requires that the ARC debugger is slave in a multicore setup with x86 as the master debugger and that
SYStem.Option.CLTAPOnly is enabled in the x86 debugger.
Format:
Default: OFF.
Any ARC instruction set allows instructions with so called Long Immediate Data (LIMM). These instructions
have a total length of 6 or 8 bytes. When setting a software breakpoint the instruction at the address of the
software breakpoints gets replaced by a BRK or BRK_S instruction. The BRK instruction has a length of 4
byte and the BRK_S has a length of 2 bytes. When SYStem.Option LimmBreakPoints is set to ON the
remaining 2 or 4 bytes of a LIMM instruction are overwritten with NOP_S instructions when setting a
software breakpoint on them.
This option helps to workaround a buggy implementation of an ARC core.
[build no. 38448 - DVD 08/2012]
SYStem.Option MMUSPACES
Format:
Default: OFF.
Enables the usage of the MMU to support multiple address spaces. The command should not be used if
only one translation table is used. Enabling the option will extend the address scheme of the debugger by a
16 bit memory space identifier. You should activate the option first, and then load the symbols.
1989-2016 Lauterbach GmbH
ARC Debugger
30
SYStem.Option OVERLAY
Format:
Default: OFF.
ON: Activates the overlay extension and extends the address scheme of the debugger with a 16 bit virtual
OverlayID. Addresses therefore have the format <OverlayID>:<address>. This enables the
debugger to handle overlayed program memory.
OFF: Disables support for code overlays.
WithOVS: Like option ON, but also enables support for software breakpoints. This means that TRACE32
writes software breakpoint opcodes both to the execution area (for active overlays) and to the storage area.
In this way, it is possible to set breakpoints into inactive overlays. Upon activation of the overlay, the target's
runtime mechanisms copies the breakpoint opcodes to execution area. For using this option, the storage
area must be readable and writable for the debugger.
SYStem.Option OVERLAY ON
Data.List 0x2:0x11c4
; Data.List <OverlayID>:<address>
SYStem.Option RegNames
Format:
Default: ON.
This option just effects the way core registers are displayed e.g. in the Register.view window or in
disassembled memory. If the option is enabled some core registers are displayed by their trivial names
describing the registers function e.g. blink for core register 31. When disabled the systematic name is used
corresponding tho the register number e.g. r31 for core register 31.
ARC Debugger
31
SYStem.Option ResetDetection
Format:
<method>:
Default: Sem1.
Selects the method how an external target reset can be detected by the debugger.
Sem0 Sem3
RAbit
Detects a reset by checking the RA-bit in the JTAG status register or DEBUG
auxiliary Register (AUX:0x05). This option is only available for ARC cores with
JTAG version 2 or higher. (This detects core resets.)
(This method detects core resets.)
nSRST
None
SYStem.Option TIMEOUT
Format:
Default: 1000.ms
After each JTAG transaction the debugger has to wait until the ARC core acknowledges the successful
transaction.
With this option you can specify how long the debugger waits until the debugger has to assume that the core
does no longer respond. You have to use this option only if you what to debug a unusual slow core.
ARC Debugger
32
SYStem.state
Format:
SYStem.state
Opens a window which enables you to view and modify CPU specific system settings.
ARC Debugger
33
On-chip Breakpoints/Actionpoints
On-chip Breakpoints and Actionpoints are two names for the same thing: A mechanism provided by the
on-chip debug logic to stop the core when an instruction is fetched form a specific address or data is read
from or written to a specific memory location. This enables you to set breakpoints even if your not able to
modify the code on the fly e.g. in a Read Only Memory.
Actionpoints is the name used by Synopsys in the ARC manuals, while On-chip Breakpoints is the
generic name used by Lauterbach. In the rest of the documentation well speak only about On-chip
Breakpoints.
An ARC core can have 2, 4, 8 or none on-chip breakpoints. The debugger detects the number of available
breakpoints after youve connected to your target CPU with SYStem.Up or SYStem.Mode Attach. To find
out how many on-chip breakpoints are available execute PER.view, "Build" and check the value at
AP_BUILD.
When a read or write breakpoint triggers, any ARC CPU stops with an
additional delay after the instructions, which causes the trigger.
The delay is 1 cycle for ARC700 and 3 cycles for ARC600. For memory reads
there is an extra delay corresponding to the memory latency.
(However program breakpoints always stop before executing the instruction.)
On ARC600 you can set on-chip breakpoints only when the core is stopped. You can set
SYStem.CpuAccess to Enable to allow the debugger to stop and restart the core to set on-chip
breakpoints.
On ARC700 you can set on-chip breakpoints also while the core is running, when youve set
SYStem.MemAccess to CPU.
ARC Debugger
34
On-chip Breakpoints/Actionpoints
Limitations
Due to limitations in the ARC core logic, some common features for on-chip breakpoint are not available.
ARC600 and ARC700 cores do not provide resources to set on-chip breakpoints for arbitrary
address or data ranges. Instead they use bit masks. If a given range cant be programmed with a
bit mask, the next larger range will be used, if TrOnchip.CONVert is active.
You can check the address ranges actually set by the debugger inside the Break.List /Onchip
window.
While normal read breakpoints are available, which stop the core on the read of a given address,
so called read data breakpoints area not available. So you cant stop the core, when specific
data is read from a given address.
(Write data breakpoints are available.)
On ARC700 you can use Write data breakpoints together with address ranges only for 32-bit
wide data.
For ARC600 using on-chip program breakpoints together with instruction data is not supported,
since the on-chip logic of an ARC600 does not align the fetched instruction before comparing it to
the value, which make this feature useless.
On ARC600 you cant set on-chip breakpoints, while the core is running.
ARC Debugger
35
On-chip Breakpoints/Actionpoints
TrOnchip.CONVert
Format:
Default: ON
ARC cores does not provide resources to set on-chip breakpoints for arbitrary address ranges. Only bit
masks can be used to mark a memory range with a breakpoint.
If TrOnchip.Convert is set to ON (default) and a breakpoint is set to a range, this range is extended to the
next possible bit mask. The result is, that in most cases a bigger address range is marked by the specified
breakpoint. This can be easily checked with the Break.List /Onchip command.
If there are on-chip breakpoint resources left, the debugger combines some on-chip breakpoint to keep the
protruding address range as small as possible.
If TrOnchip.Convert is set to OFF, the debugger will only accept breakpoints which exactly fit to the on-chip
breakpoint hardware.
TtrOnchip.VarCONVert
Format:
Default: OFF
ARC cores does not provide resources to set on-chip breakpoints for arbitrary address ranges. Only bit
masks can be used to mark a memory range with a breakpoint.
If TrOnchip.VarCONVert is set to ON and a breakpoint is set to a scalar variable then it is converted into a
single address breakpoint.
If TrOnchip.VarCONVert is set to OFF variable breakpoints will be set to an address range covering the
whole variable.
ARC Debugger
36
On-chip Breakpoints/Actionpoints
Format:
Default: AUTO.
An ARC core has between 0 and 8 on-chip breakpoint resources (Called Actionpoints in the ARC core
documentation). These resources are normally completely controlled by the debugger and are modified e.g.
when you set on-chip breakpoints e.g. via Break.Set <addr> /Onchip /Write.
Sometimes you might want to control the breakpoint resources (AUX:0x220--0x237) or parts of it by you
own. With TrOnchip.OnchipBP you can tell the debugger how many on-chip breakpoint registers the
debugger may control, leaving the rest of them untouched.
E.g.: If you have an ARC core with 4 on-chip breakpoints but you want control one breakpoint by your own,
set TrOnchip.OnchipBP to 3. The registers you can control then by your own are those of the fourth
breakpoint (AUX:0x229--0x22b).
NOTE:
This option is only for advanced users which have a good knowledge of the
Actionpoint Auxiliary Registers described in the ARC600 Ancillary Components
Reference or the ARC700 System Components Reference.
TrOnchip.RESet
Format:
TrOnchip.RESet
TrOnchip.view
Format:
TrOnchip.view
ARC Debugger
37
On-chip Breakpoints/Actionpoints
MMU.DUMP
Format:
<table>:
PageTable
KernelPageTable
TaskPageTable <task>
and CPU specific tables
If the command is called with either an address range or an explicit address, table entries will
only be displayed, if their logical address matches with the given parameter.
The optional <root> argument can be used to specify a page table base address deviating from the default
page table base address. This allows to display a page table located anywhere in memory.
PageTable
KernelPageTable
TaskPageTable
ARC Debugger
38
ITLB
DTLB
TLB
TLB0
MMU.List
Format:
<table>:
PageTable
KernelPageTable
TaskPageTable <task>
Lists the address translation of the CPU specific MMU table. If called without address or range parameters,
the complete table will be displayed.
If called without a table specifier, this command shows the debugger internal translation table.
See TRANSlation.List.
If the command is called with either an address range or an explicit address, table entries will only be
displayed, if their logical address matches with the given parameter.
PageTable
KernelPageTable
TaskPageTable
ARC Debugger
39
MMU.SCAN
Format:
<table>:
PageTable
KernelPageTable
TaskPageTable <task>
ALL
and CPU specific tables
Loads the CPU specific MMU translation table from the CPU to the debugger internal translation table. If
called without parameters the complete page table will be loaded. The loaded address translation can be
viewed with TRANSlation.List.
If the command is called with either an address range or an explicit address, page table entries will only be
loaded if their logical address matches with the given parameter.
PageTable
KernelPageTable
TaskPageTable
ALL
ARC Debugger
40
Memory Classes
Description
P:
Program Memory.
D:
Data Memory.
AUX:
Auxiliary Register Space. Accesses to this memory class allows you to read
and write Auxiliary Registers and read Build Registers.
Currently any cache is always bypassed. Thus, the debugger updates the memory from the cache before
any memory gets accessed. After each memory access the debugger invalidates the cache.
See also
SYStem.MemAccess
ARC Debugger
41
Memory Classes
JTAG Connector
Signal
VTREF
TRST- (optional)
TDI
TMS|TMSC
TCK|TCKC
RTCK (optional)
TDO
SRST- (optional)
(leave open)
(leave open)
Pin
1
3
5
7
9
11
13
15
17
19
Pin
2
4
6
8
10
12
14
16
18
20
Signal
VSUPPLY (not used)
GND
GND
GND
GND
GND
GND
GND
GND
GND
This image shows the top view to the male connector on the target board. The meaning of the Pins is as
follows:
TCK|TCKC
to CPU
JTAG Clock
It is recommended to put a pull-DOWN to GND on this signal.
TMS
to CPU
TMSC
to/from CPU
TDI
to CPU
JTAG TDI
It is recommended to put a pull-UP to VTREF on this signal.
Only required for standard 4-pin JTAG / Optional for compact JTAG.
TDO
from CPU
TRST-
to CPU
RTCK
from CPU
VTREF
from CPU
Reference voltage
This voltage should indicate the nominal HIGH level for the JTAG
and trace pins. So for example, if your signals have a voltage swing
from 0 3.3 V, the VTREF pin should be connected to 3.3 V.
SRST-
to/from CPU
ARC Debugger
42
JTAG Connector
Support
ARC-A4
ARC-A5
ARC-EM4
ARC-EM6
ARC-HS34
ARC-HS36
ARC601
ARC605
ARC610D
ARC625D
ARC710D
ARC725D
ARC750D
ARC770D
AS210
AS211SFX
AS221BD
INSTRUCTION
SIMULATOR
POWER
INTEGRATOR
ICD
TRACE
ICD
MONITOR
ICD
DEBUG
FIRE
ICE
CPU
Available Tools
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
Compilers
Language
Compiler
C/C++
GNU-GCC
C/C++
Company
Free Software
Foundation, Inc.
METAWARE-C/C++ Synopsys, Inc
Option
Comment
ELF/DWARF
ELF/DWARF
ARC Debugger
43
Support
Tool
Company
ALL
ALL
ALL
ADENEO
X-TOOLS / X32
CODEWRIGHT
ALL
CODE CONFIDENCE
TOOLS
CODE CONFIDENCE
TOOLS
EASYCODE
ECLIPSE
RHAPSODY IN MICROC
RHAPSODY IN C++
CHRONVIEW
LDRA TOOL SUITE
UML DEBUGGER
Adeneo Embedded
blue river software GmbH
Borland Software
Corporation
Code Confidence Ltd
ALL
ALL
ALL
ALL
ALL
ALL
ALL
ALL
ALL
ALL
ALL
ALL
ALL
ALL
ALL
ALL
ALL
ALL
ALL
ALL
ALL
ALL
ATTOL TOOLS
VISUAL BASIC
INTERFACE
LABVIEW
CODE::BLOCKS
C++TEST
RAPITIME
DA-C
TRACEANALYZER
SIMULINK
TA INSPECTOR
UNDODB
VECTORCAST UNIT
TESTING
VECTORCAST CODE
COVERAGE
WINDOWS CE PLATF.
BUILDER
Host
Windows
Windows
Windows
Linux
EASYCODE GmbH
Eclipse Foundation, Inc
IBM Corp.
IBM Corp.
Inchron GmbH
LDRA Technology, Inc.
LieberLieber Software
GmbH
MicroMax Inc.
Microsoft Corporation
Windows
Windows
Windows
Windows
Windows
Windows
Windows
Windows
Windows
NATIONAL
INSTRUMENTS
Corporation
Open Source
Parasoft
Rapita Systems Ltd.
RistanCASE
Symtavision GmbH
The MathWorks Inc.
Timing Architects GmbH
Undo Software
Vector Software
Windows
Windows
Windows
Windows
Windows
Windows
Windows
Linux
Windows
Vector Software
Windows
Windows
Windows
ARC Debugger
44
Support
Products
Product Information
OrderNo Code
Text
LA-3750
JTAG-ARC
LA-3750A
JTAG-ARC-A
LA-3752
JTAG-ARC-XDP
LA-3914X
TRACE-LICENSE-ARC
LA-3860
CONV-ARM-PPC16
Order Information
Order No.
Code
Text
LA-3750
LA-3750A
LA-3752
LA-3914X
LA-3860
JTAG-ARC
JTAG-ARC-A
JTAG-ARC-XDP
TRACE-LICENSE-ARC
CONV-ARM-PPC16
Additional Options
LA-2101
AD-HS-20
LA-3776A DEBUG-INTEL-X86-A
LA-3778A JTAG-APS-A
LA-7744A JTAG-ARM10-A
ARC Debugger
45
Products
Order No.
Code
Text
LA-7765A
LA-7746A
LA-7742A
LA-3743A
LA-7843A
LA-7844A
LA-7774A
LA-3760A
LA-7960X
JTAG-ARM11-A
JTAG-ARM7-A
JTAG-ARM9-A
JTAG-ARMV8-A-A
JTAG-CORTEX-A/R-A
JTAG-CORTEX_M-A
JTAG-TEAK-JAM-20-A
JTAG-XTENSA-A
MULTICORE-LICENSE
ARC Debugger
46
Products