Académique Documents
Professionnel Documents
Culture Documents
RX Debugger ............................................................................................................................
RX Debugger .........................................................................................................................
Warning ..............................................................................................................................
Reset Line
Troubleshooting ................................................................................................................
SYStem.Up Errors
Trace Errors
10
FAQ .....................................................................................................................................
11
Configuration .....................................................................................................................
12
System Overview
12
13
13
Daisy-chain Example
15
TapStates
16
SYStem.CONFIG.CORE
SYStem.CPU
SYStem.CpuAccess
18
18
19
JTAG lock
19
20
21
SYStem.Mode
1989-2016 Lauterbach GmbH
SYStem.LOCK
RX Debugger
17
SYStem.JtagClock
SYStem.MemAccess
SYStem.Option BigEndian
21
SYStem.Option IMASKASM
Interrupt disable
22
SYStem.Option IMASKHLL
Interrupt disable
22
SYStem.Option KEYCODE
Keycode
22
22
SYStem.RESetOut
Software Breakpoints
23
On-chip Breakpoints
23
Breakpoint in ROM
24
24
25
25
25
26
Sequential breakpoints
26
28
Trace ...................................................................................................................................
29
TrOnchip.RESet
TrOnchip.CONVert
TrOnchip.SEQ
AUD-Trace
29
29
SYStem.Option AUDBT
30
SYStem.Option AUDDT
30
30
30
SYStem.Option AUDRTT
SYStem.Option AUDClock
On-chip Trace
31
Onchip.Mode.ProgramTrace
31
31
32
33
34
35
Support ...............................................................................................................................
36
Onchip.Mode.DataTrace
Available Tools
36
Compilers
36
37
37
Products .............................................................................................................................
38
Product Information
38
Order Information
38
RX Debugger
RX Debugger
Version 24-May-2016
General Note
This documentation describes the processor specific settings and features for TRACE32-ICD for the
following CPU families:
RX61x
RX62x
RX63x
If some of the described functions, options, signals or connections in this Processor Architecture Manual are
only valid for a single CPU or for specific families, the name(s) of the family(ies) is added in brackets.
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.
RX Debugger
General Note
Warning
Signal Level
Debug signals are driven with the same voltage level as the target voltage.
ESD Protection
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.
RX Debugger
Warning
Application Note
Reset Line
Ensure that the debugger signal RESET is connected directly to the RESET of the processor. This will
provide the ability for the debugger to drive and sense the status of RESET.
VCC
10 k
Reset Sense
CPU_RES#
Force Reset
RX Debugger
Application Note
RX Debugger
Application Note
Select the device prompt B: for the ICD Debugger, if the device prompt is not active after the
TRACE32 software was started.
b:
2.
3.
If the TRACE32-ICD hardware is installed properly, the following CPU is the default setting:
RX6108
4.
This command resets the CPU and enters debug mode. After this command is executed it is possible
to access the registers.Set the chip selects to get access to the target memory.
Data.Set
6.
The option of the Data.LOAD command depends on the file format generated by the compiler. For
information on the compiler options refer to the section Compiler. A detailed description of the
Data.LOAD command is given in the General Commands Reference.
RX Debugger
The start up can be automated using the programming language PRACTICE. A typical start sequence is
shown below:
b::
WinCLEAR
MAP.BOnchip
0xFFE00000++0x0fffffffff
SYStem.CPU RX6108
SYStem.Up
Data.LOAD example.elf
Register.Set PC main
Data.List
Register /SpotLight
PER.view
Break.Set sieve
*) These commands open windows on the screen. The window position can be specified with the WinPOS
command.
RX 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.
All
All
All
All
All
RX Debugger
Troubleshooting
Trace Errors
There are several reasons for Trace Errors.
1.
2.
3.
4.
Calculation Error
The trace listing is calculated in conjunction of the trace records plus the memory contents. If the
memory content has changed (self modified code, different chipselect setting, MMU ) in between
run time and calculation time there will be mismatches of the trace records compared to the current
program in memory.
RX Debugger
10
Troubleshooting
FAQ
No information available
RX Debugger
11
FAQ
Configuration
System Overview
PODBUS Cable
PODPC
PODPAR
PODETH
Debug
Interface
EPROM
Simulator
(optional)
...
Debug Cable
CPU CLK
RESET
INT
Target Connector
EPROM
Target
RX Debugger
12
Configuration
SYStem.CONFIG
Format:
<parameter>
(General):
state
CORE
(JTAG):
DRPRE <bits>
DRPOST <bits>
IRPRE
<bits>
IRPOST <bits>
TAPState <state>
TCKLevel <level>
TriState [ON | OFF]
Slave
[ON | OFF]
<core>
The four parameters 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. ARM +
DSP). The information is required before the debugger can be activated e.g. by a SYStem.Up. See Daisychain Example.
For some CPU selections (SYStem.CPU) the above setting might be automatically included, since the
required system configuration of these CPUs is known.
TriState has to be used if several debuggers (via separate cables) are connected to a common JTAG port
at the same time in order to ensure that always only one debugger drives the signal lines. 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, TCK can have a pull-up or pull-down
resistor, other trigger inputs needs to be kept in inactive state.
Multicore debugging is not supported for the DEBUG INTERFACE (LA-7701).
RX Debugger
13
state
CORE
For multicore debugging one TRACE32 GUI has to be started per core.
To bundle several cores in one processor as required by the system this
command has to be used to define core and processor coordinates within
the system topology.
Further information can be found in SYStem.CONFIG.CORE.
DRPRE
DRPOST
(default: 0) <number> of TAPs in the JTAG chain between the TDI signal
of the debugger and the core of interest. If each core in the system
contributes only one TAP to the JTAG chain, DRPOST is the number of
cores between the TDI signal of the debugger and the core of interest.
IRPRE
IRPOST
TAPState
TCKLevel
TriState
(default: OFF) If several debuggers share the same debug port, this
option is required. The debugger switches to tristate mode after each
debug port access. Then other debuggers can access the port. JTAG:
This option must be used, if the JTAG line of multiple debug boxes are
connected by a JTAG joiner adapter to access a single JTAG chain.
Slave
(default: OFF) If more than one debugger share the same debug port, all
except one must have this option active.
JTAG: Only one debugger - the master - is allowed to control the signals
nTRST and nSRST (nRESET).
RX Debugger
14
Daisy-chain Example
TDI
Core A
Core B
Core C
Chip 0
Core D
TDO
Chip 1
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 0. 1.
RX Debugger
15
TapStates
0
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
RX Debugger
16
SYStem.CONFIG.CORE
Format:
<chipindex>:
1i
<coreindex>:
1k
RX Debugger
17
SYStem.CPU
Format:
SYStem.CPU <cpu>
<cpu>:
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.)
RX Debugger
18
SYStem.JtagClock
Format:
SYStem.LOCK
Format:
JTAG lock
Default: OFF. If the system is locked (ON) no access to the JTAG port will be performed by the debugger. All
JTAG connector signals of the debugger are tristated.
This command is useful if there are additional CPUs (Cores) on the target which have to use the same JTAG
lines for debugging. By locking the T32 debugger lines, a different debugger can own mastership of the
JTAG interface.
It must be ensured that the state of the RX-core JTAG state machine remains unchanged while the system
is locked. To ensure correct hand over between two debuggers a pull-down resistor on TCK and a pull-up
resistor on /TRST is required.
RX Debugger
19
SYStem.MemAccess
Format:
CPU
Denied
Default: Denied.
If MemAccess is set to CPU, setting breakpoints and realtime memory accesses (access class E) is
possible even if the core is running.
RX Debugger
20
SYStem.Mode
Format:
SYStem.Mode <mode>
<mode>:
Down
Go
Up
Down
Go
Resets the target with debug mode enabled and prepares the CPU for debug
mode entry. After this command the CPU is in the system.up mode and running.
Now, the processor can be stopped with the break command or until any break
condition occurs.
Up
Resets the target and sets the CPU to debug mode. After execution of this
command the CPU is stopped and prepared for debugging. All register are set
to the default value.
Attach
Not supported.
NoDebug
Not supported.
StandBy
Not supported.
SYStem.Option BigEndian
Format:
Default: OFF.
This option selects the byte ordering mechanism.
RX Debugger
21
SYStem.Option IMASKASM
Format:
Interrupt disable
Mask interrupts during assembler single steps. Useful to prevent interrupt disturbance during assembler
single stepping.
SYStem.Option IMASKHLL
Format:
Interrupt disable
Mask interrupts during HLL single steps. Useful to prevent interrupt disturbance during HLL single stepping.
SYStem.Option KEYCODE
Format:
Keycode
SYStem.RESetOut
Format:
SYStem.RESetOut
If possible (nRESET is open collector), this command asserts the nRESET line on the debug connector.
This will reset the target including the CPU but not the debug port. The function only works when the system
is in SYStem.Mode.Up.
Breakpoints
RX Debugger
22
There are two types of breakpoints available: Software breakpoints (SW-BP) and on-chip breakpoints (HWBP).
Software Breakpoints
Software breakpoints are the default breakpoints. A special breakcode is patched to memory so it only can
be used in RAM or FLASH areas.There is no restriction in the number of software breakpoints.
On-chip Breakpoints
The following list gives an overview of the usage of the on-chip breakpoints by TRACE32-ICD:.
CPU Family
Number of
Address Breakpoints
Number of
Data Breakpoints
Sequential
Breakpoints
RX
---
RX Debugger
23
Breakpoint in ROM
With the command MAP.BOnchip <range> it is possible to inform the debugger about ROM
(FLASH,EPROM) address ranges in target. If a breakpoint is set within the specified address range the
debugger uses automatically the available on-chip breakpoints.
; Software Breakpoint 1
; Software Breakpoint 2
; Software Breakpoint 3
On-chip breakpoints:
Break.Set 0x100 /Program
; On-chip Breakpoint 1
; On-chip Breakpoint 2
RX Debugger
24
TrOnchip Commands
TrOnchip.view
Format:
TrOnchip.view
TrOnchip.RESet
Format:
TrOnchip.RESet
RX Debugger
25
TrOnchip Commands
TrOnchip.CONVert
Format:
The onchip breakpoints can only cover specific ranges. If a range cannot be programmed into the breakpoint
it will automatically be converted into a single address breakpoint when this option is active. This is the
default. Otherwise an error message is generated.
TrOnchip.CONVert ON
Break.Set 0x1000--0x17ff /Write
Break.Set 0x1001--0x17ff /Write
...
TrOnchip.CONVert OFF
Break.Set 0x1000--0x17ff /Write
Break.Set 0x1001--0x17ff /Write
TrOnchip.SEQ
Sequential breakpoints
Format:
TrOnchip.SEQ <mode>
<mode>:
OFF
CD
BCD
ABCD
BA, CD
BCD, CBA
Sequential break, first condition, then second condition, then third conditon.
ABCD, DCBA
Sequential break, first condition, then second condition, then third conditon and
the fourth condition.
RX Debugger
26
TrOnchip Commands
RX Debugger
27
TrOnchip Commands
Memory Classes
The following memory classes are available:
Memory Class
Description
Program
Data
RX Debugger
28
Memory Classes
Trace
Analysis of the program history is supported as AUD-Trace and Onchip-Trace.
AUD-Trace
The AUD trace interface supports the branch trace function and the window data trace function.
Each change in program flow caused by execution or interruption of branch instructions are detected and
branch destination and branch source address are output.
The data trace function is for outputting memory access information. Two data-addresses (ranges) are
supported.
TRaceData
AUDBT
AUDDT
ProgTrace
all program
all program
DataTrace
all data
all data
selective
all program
selective
selective
The BreakAction TRaceEnable has highes priority to get selectiv DataTrace recording only.
The BreakAction TTraceData comes next to enable selective DataTrace. Depending on SYStem.Option
AUDBT also the program flow will be traced.
RX Debugger
29
Trace
SYStem.Option AUDBT
Format:
If ON all changes in program flow are output on the AUD trace port. By default this option is enabled.
SYStem.Option AUDDT
Format:
If ON all accesses to data range A and/or range B are output on the AUD trace port. By default this option is
OFF.
SYStem.Option AUDRTT
Format:
SYStem.Option AUDClock
Format:
Selects the clockspeed of the AUD interface. CPU system clock divided by 1,2,4 or 8.
The AUD clock should be as fast as possible to prevent AUD overrun condition.
RX Debugger
30
Trace
On-chip Trace
The RX core devices are equipped with an onchip trace buffer. Depending on the device in use it can cover
up to 256 branch and/or data records.
The trace functionality is equal to an AUD trace. It requires no extra pins and has no influence on the
performance of program execution.
See also: AUD-Trace)
Onchip.Mode.ProgramTrace
Format:
Default: ON
Enables tracing of programflow activity.
Onchip.Mode.DataTrace
Format:
Default: OFF
Enables tracing of the data-cylces. This setting is ignored if selective trace (TraceEnable) is active.
RX Debugger
31
Trace
RX Debugger
32
Runtime Measurement
The RX debug interface includes one signal which gives information about the program-run-status
(application code running). This status line is sensed by the ICD debugger with a resolution of 100ns.
The debuggers RUNTIME window gives detailed information about the complete run-time of the application
code and the run-time since the last GO/STEP/STEP-OVER command.
RX Debugger
33
Runtime Measurement
JTAG Connector
Signal
TCK
TRSTTDO
(MD1)
TMS
TDI
RESET-
Pin
1
3
5
7
9
11
13
Pin
2
4
6
8
10
12
14
Signal
GND
(EMLE)
(MDE)
VCC
(MD0)
GND
GND
JTAG Connector
Signal Description
CPU Signal
TMS
Jtag-TMS,
output of debugger
TMS
TDI
Jtag-TDI,
output of debugger
TDI
TCK
Jtag-TCK,
output of debugger
TCK
/TRST
Jtag-TRST,
output of debugger
TRST#
TDO
Jtag-TDO,
input for debugger
TDO
/ASEBRK
Break Acknowledge,
input/output for debugger
ASEBRK,BRKACK
/RESET
RESET
input/output for debugger
/RESET
EMLE
EMLE
MD0..2
MD0..2
RX Debugger
34
JTAG Connector
Signal
(MDE)
(EMLE)
N/C
N/C
RESETTDO
N/C
TCK
TMS
TDI
TRSTN/C
N/C
N/C
N/C
N/C
N/C
N/C
N/C
Pin
1
3
5
7
9
11
13
15
17
19
21
23
25
27
29
31
33
35
37
Pin
2
4
6
8
10
12
14
16
18
20
22
24
26
28
30
32
34
36
38
Signal
(MD0)
N/C
AUDCK
(MD1)
N/C
N/C
VCC
N/C
N/C
N/C
N/C
AUDATA3
AUDATA2
AUDATA1
AUDATA0
AUDSYNCN/C
N/C
N/C
Mictor Connector
Signal Description
CPU Signal
AUDCK
AUD clock,
output of cpu
AUDCK
AUDSYNC-
AUD sync,
output of cpu
AUDSYNC-
AUDATA0..3
AUD data,
output of cpu
AUDATA0..3
RX Debugger
35
Support
RX610
RX621
RX62N
RX630
RX631
RX63N
RX64M
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
INSTRUCTION
SIMULATOR
POWER
INTEGRATOR
ICD
TRACE
ICD
MONITOR
ICD
DEBUG
FIRE
ICE
CPU
Available Tools
YES
YES
YES
YES
YES
YES
YES
Compilers
Language
Compiler
Company
Option
C/C++
C/C++
C/C++
ICCRX
GNU
RXC++
IAR Systems AB
KPIT Infosystems Ltd.
Renesas Technology,
Corp.
ELF/DWARF
ELF/DWARF
ELF/DWARF
Comment
RX Debugger
36
Support
Company
Comment
OSEK
pSOS+
via ORTI
2.1 to 2.5, 3.0
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
ATTOL TOOLS
VISUAL BASIC
INTERFACE
LABVIEW
ALL
ALL
ALL
ALL
ALL
ALL
CODE::BLOCKS
C++TEST
RAPITIME
DA-C
TRACEANALYZER
SIMULINK
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
NATIONAL
INSTRUMENTS
Corporation
Open Source
Parasoft
Rapita Systems Ltd.
RistanCASE
Symtavision GmbH
The MathWorks Inc.
Windows
Windows
Windows
Windows
Windows
Windows
Windows
Windows
RX Debugger
37
Support
CPU
Tool
Company
Host
ALL
ALL
ALL
TA INSPECTOR
UNDODB
VECTORCAST UNIT
TESTING
VECTORCAST CODE
COVERAGE
WINDOWS CE PLATF.
BUILDER
Windows
Linux
Windows
Vector Software
Windows
Windows
Windows
ALL
ALL
Products
Product Information
OrderNo Code
Text
LA-3786
JTAG-RX
LA-3789
RX-JTAG14-MIC
LA-3792
RX-JTAG14-36Y-MIC
Order Information
Order No.
Code
Text
LA-3786
LA-3789
LA-3792
JTAG-RX
RX-JTAG14-MIC
RX-JTAG14-36Y-MIC
RX Debugger
38
Products
RX Debugger
39
Products