Professional Documents
Culture Documents
Warning .................................................................................................................................
Configuration ........................................................................................................................
10
Adapter XC161CJ/XC164CS
10
Troubleshooting ...................................................................................................................
12
Hang-Up Conditions
12
Dualport Errors
12
FAQ ........................................................................................................................................
13
Basics ....................................................................................................................................
14
Overview
15
Trigger Module
16
Bondout Module
17
CPU Module
19
Emulation Modes
19
SYStem.Mode
Operation modes
SYStem.Access
20
Dualport access
21
22
23
24
SYStem.CpuAccess
SYStem.TimeReq
SYStem.CPU
SYStem.JtagClock
SYStem.Option MonLevel
SYStem.Option InjLevel
SYStem.Option V33
SYStem.Option IMASKASM
Monitor level
25
Injection level
26
26
26
26
On-circuit emulation
27
27
SYStem.Option ONCE
SYStem.Option ONCEReset
1989-2016 Lauterbach GmbH
25
25
SYStem.Option IMASKHLL
SYStem.RESetOut
SYStem.Option BusType
SYStem.Option CS_Register
SYStem.Option WriteLimit
SYStem.Option
Peripheral reset
27
Bus mode
28
CS programming
28
29
Start-up modes
29
SYStem.Option
Trace modes
30
SYStem.Option
Freeze modes
30
SYStem.Option
Watchdog settings
31
SYStem.Option LoadCS
Startup settings
31
SYStem.Option Overlay
31
Start modes
32
Clock test
32
Segmentation
33
SYStem.Option Start
SYStem.Option TestClock
SYStem.Option SGT
SYStem.Option CS
Chip selects
33
SYStem.Option CLOCK
PLL selects
33
34
35
Schematics
35
RSTIN Line
35
NMI
35
eXception.state
Exception control
36
eXception.Activate
Force exception
36
eXception.Enable
Enable exception
37
eXception.Trigger
Trigger on exception
37
Stimulate exception
39
Shadowing ............................................................................................................................
40
eXception.Pulse
Shadow Memory
40
41
41
42
42
43
Bondout Breakpoints
43
44
45
45
45
45
45
46
46
47
Code Coverage
47
Flag Mapping
47
48
Flag Operation
48
Flag Mapping
48
49
49
Injected Access
49
50
51
Breakpoints ...........................................................................................................................
52
52
53
54
54
54
55
55
56
56
56
57
58
Mechanical Dimensions
58
Adaptions
60
Adapters
61
Operation Voltage
62
Operation Frequency
63
Support ..................................................................................................................................
64
Probes
64
Available Tools
64
Compilers
65
65
66
Products ................................................................................................................................
68
Product Information
68
Order Information
69
code
E00C
E112
F0DC
08C1
E42D2E82
46FC1200
BDF8
label
mnemonic
comment
mov
r12,#0x0
movb
rl1,#0x1
mov
r13,r12
; r13,i
add
r12,#0x1
; i,#1
movb
[r13+#0x822E],rl1; [r13+#flags],rl
cmp
r12,#0x12
; i,#18
jm
F::r
745
for ( i = 0 ; C
C R1
1 R9
5FB3 DPP1
2
P:004C6C E00C
mo V
_ R2
3 R10 4058 DPP2
2
{
Z
_ R3
0 R11
2 DPP3
3
747
if ( f E
_ R4
2 R12
0 SP
FBF8
P:004C6E F42C2E82
mo MIP _ R5
2 R13
3 MDH
0
P:004C72 2D0F
jm USR U R6
C104 R14
3 MDL 071C
{
USR _ R7
1 R15
0 MDC
0
749
BNK G PSW 0843 CP
FC00 CSP
0
P:004C74 F0EC
mo S1 _ SOV FA0C SUN FC00 IP
4C80
P:004C76 00EC
ad IEN I IDX0
0 QX0
0 QR0
0
P:004C78 08E3
ad ILV 0 IDX1
0 QX1
0 QR1
0
750
Tsk
MAE
0 MAH
0 MAL
0
P:004C7A F0DC
mo
MCW
0 MSW 0200 MRW
0
P:004C7C 00DE
ad
751
GLOBAL R0
4058 R8
1
P:004C7E 0D05
jm
R1
1 R9
5FB3
R2
3 R10 4058
R3
0 R11
2
R4
2 R12
0
R5
2 R13
3
F::per h:\t32new\per161cj
R6
C104 R14
3
-"EBC
R7
1 R15
0
EBCMOD0 0158 RDYPOL low
RD
WRCFG WR/BHE
ARBEN 1 CSPEN 5
SAPEN 8
EBCMOD1 0000 DHPDIS no
APDIS 0000
TCONCSMM 6243 WRPHFMR 3 RDPHFMR 0 PHEMR 10 PHDMR 0
PHCMR 0 PHBMR 0 PHAMR 3
TCONCSSM 6243 WRPHFBR 3 RDPHFBR 0 PHEBR 10 PHDBR 0
PHCBR 0 PHBBR 0 PHABR 3
TCONCS0 6243 WRPHF 3 RDPHF 0
PHE 10 PHD 0
PHC 0 PHB 0 PHA 3
FCONCS0 0021 BTYP 16-demu RDYMOD asyn RDYEN yes
ENCS ena
For general informations about the In-Circuit Debugger refer to the FIRE Users Guide (fire_user.pdf). All
general commands are described in IDE Reference Guide (ide_ref.pdf) and General Reference
Guide.
Warning
NOTE:
Do not connect or remove probe from target while target power is ON.
Power up:
Switch on emulator first, then target
Power down: Switch off target first, then emulator
Warning
Quick Start
Before debugging can be started, the emulator must be configured by software:
Ready to run setup files for most standard compilers can be found on the software CD in the directory ../
Demo/c166/Compiler. All setup files are designed to run the emulator stand alone without target hardware.
The following description should make the initial setup (to run the emulator together with the target
hardware) easier. It describes a typical setup with frequently used settings. It is recommended to use the
programming language PRACTICE to create a batch file, which includes all necessary setup commands.
PRACTICE files (*.cmm) can be created with the PRACTICE editor pedit (Command: PEDIT <file name>)
or with any other text editor.
A basic setup file includes the following parts:
1.
2.
3.
4.
5.
6.
7.
8.
9.
Start application
10.
Quick Start
2.
;
;
;
;
;
;
;
;
3.
;
;
;
;
SYStem.CpuAccess Denied
4.
Quick Start
5.
6.
7.
8.
9.
Start application
Application can be started with giving a break address. For example go main starts the application
and stops at symbol main.
Go
;run application
Quick Start
10.
It is recommended to check the following chapters for all questions regarding the correct setup:
Configuration
Troubleshooting
Quick Start
Configuration
Adapter XC161CJ/XC164CS
BOTTOM VIEW
S102
S101
CPU
XC161CJ
1 2 3 4 5 6 7 8
OFF
XC164CS
1 2 3 4 5 6 7 8
OFF
VAGND/VAREF from Target
1 2 3 4 5 6 7 8
OFF
VAGND to GND
1 2 3 4 5 6 7 8
OFF
10
Configuration
VAREF to VCC
1 2 3 4 5 6 7 8
OFF
XTAL3 to internal 32 kHz
clock
1 2 3 4 5 6 7 8
OFF
XTAL3 to target
1 2 3 4 5 6 7 8
OFF
CPU
Default
1 2 3 4 5 6 7 8
OFF
Fast Emulation
on CS0 (XC161)
1 2 3 4 5 6 7 8
OFF
Fast Emulation
on CS0 (XC164)
1 2 3 4 5 6 7 8
OFF
11
Configuration
Troubleshooting
Hang-Up Conditions
If you are not able to stop the emulation, there may be some typically reasons:
No READY Signal
WATCHDOG
Dualport Errors
Dualport access is made either between bus cycles or by feeding NOP instructions (Bondout CPU). If no
bus cycle is generated (IDLE or SLEEP), an dualport error occurs.
The ROM emulation memory system (DATA, BREAK, FLAG) is always accessible.
12
Troubleshooting
FAQ
Debugging via
VPN
13
FAQ
Basics
The bondout module includes a separate 512K memory for ROM emulation up to 40/50 MHz. The ROM
emulation is supported by a BREAKPOINT memory and a FLAG memory. These memories are dualported
with no limitations.
14
Basics
Overview
The C16x/ST10 specific part of TRACE32-FIRE consists of the following modules:
Trigger Module
Bondout Module
CPU Module
Shadow Memory
Read Trace
Write Trace
Data Trace
IP Trace
Code Trace
Read Flag
Write Flag
Data Flag
IP Flag
Code Flag
Read Break
Write Break
Data Break
IP Break
Code Break
Trigger Module
Clock
Generator
Mapper
Trace Bus
Trigger System
ROM Bus
Bondout
FLASH
Emulation
Boot Loader
Ports
External Bus
Monitor RAM
Bondout Module
Fast
Overlay
RAM
(external)
Port
Analyzer
Target Adapter
CPU Module
15
Basics
Trigger Module
Trigger Module
Bondout Module
CPU Module
The trace system is build by an 128 bit and 64K deep trace storage. All
bondout signals are sampled by this unit. The trace works as a trace
extension to the trace memory within the FIRE emulation controller.
Break System/
Address Selectors
Flag System
Shadow Memory
Trigger Unit
The trigger unit combines address selectors to set trigger points (Alpha,
Beta, Charly and Delta address selector).
Break Unit
16
Basics
Bondout Module
Trigger Module
Bondout Module
CPU Module
The bondout module is the family specific part of TRACE32-FIRE. Three different bondout modules are
available:
C166V2
JTAG Accelerator
Clock Generator
The clock can be driven by the target or the emulator system. The
32 kHz clock is always driven by the emulator.
Trigger System
Exception Control
RSTIN and NMI lines can be enabled and stimulated by the emulator
system.
Exception Trigger
Monitor Memory
Bootloader
17
Basics
Bondout Chip
The XC166 bondout chip is a flip chip device, containing on one part all
the emulation logic and on the other part the production chip for XC161/
XC164. That means that on changing silicon step of the production
chips, new emulation devices can be producted very quickly. The
bondout chip is in a BGA socket and can be easily replaced by the
customer.
FLASH/ROM
Emulation Memory
Mapper
18
Basics
CPU Module
Trigger Module
Bondout Module
CPU Module
The CPU module is the device specific part of the FIRE-166 emulator.
Target Connection
The target connection is done by 100 mil socket rows. Clip-over, solderon oder socket adapters can be used.
All signal pins can be traced by the port analyzer. Buffers to all peripheral
signals are on the adapter board.
Emulation Modes
F::sys
system
Down
Up
RESet
Mode
RESet
AloneInt
AloneExt
EmulInt
EmulExt
CPU
XC161CJ
C166SV2
reset
RESetOut
MemAccess
ARAM
CPU
GAP
ROM
Monitor
MIXed
Denied
CpuAccess
Enable
Denied
Nonstop
TimeReq
1.000ms
JtagClock
CLK/4
Option
TraceInt
TraceExt
TraceRes
Option
IMASKASM
IMASKHLL
TestClock
V33
WriteLimi
PERSTOP
WDTSTOP
The emulations head can stay in 5 modes. The modes are selected by the SYStem.Up or the
SYStem.Mode command.
19
Basics
SYStem.Mode
Operation modes
Format:
SYStem.Mode <mode>
<mode>:
RESet
AloneInt
AloneExt
EmulInt
EmulExt
RESet
AloneInt
AloneExt
EmulInt
EmulExt
In active mode, the power of the target is sensed and by switching down the target the emulator changes to
RESET mode. The probe is not supplied by the target. When running without target, the target voltage is
simulated by an internal pull-up resistor. The command SYStem.Up in Stand-alone doesn't work correctly.
Use SYStem.Mode AloneInt to select the correct emulation mode.
20
Basics
SYStem.Access
Dualport access
Format:
SYStem.MemAccess <option>
<option>:
ARAM
GAP
ROM
CPU
MIXed
Denied
GAP
ARAM
The memory access is made directly to the ARAM. The perfoance is not
influenced. Only memory areas, which are mapped to emulation memory, are
accessible.
ROM
The ROM area can be accessed at every time without any performance
reduction.
CPU
The injected mode access of the C166S V2 is used for memory access. In this
access mode read/write to emulation and target memory is possible.
MIXed
Denied
Dualport allows access to emulation RAM and onchip ROM/FLASH, while emulation is running. This is
necessary to display variables, set breakpoints or display flag listings while the emulation is running.
Dualport access is only possible on the emulators internal RAM and not on target RAM.
21
Basics
SYStem.CpuAccess
Format:
SYStem.CpuAccess <option>
<option>:
Enable
Denied
Nonstop
Enable
Denied
Nonstop
Reserved.
The emulator uses a two stage strategy to realize the best possible dualport access method.
If MemAccess is set to GAP, the emulation controller tries a bus arbitration access as dualport cycle. This is
possible if memory is mapped to internal and on read cycles to shadow memory. Shadow memory means,
that memory is mapped in the emulator (map.ram), but the area is mapped external (map.extern). On
access to external mapped memory and write access to shadow memory the dualport is executed as a
spotpoint if CpuAccess is enabled. Dualport on access to external mapped memory and write access to
shadow memory is disabled if CpuAccess is disabled.
If MemAccess is set to CPU, the emulation controller uses the injection interface of the CPU to realize the
dualport cycle. The advantage of this method is that all memories, independent on the mapping, can be
used. The CpuAccess switch is ignored if MemAccess is set to CPU.
If MemAccess is set to Denied and CpuAccess is enabled, the emulation controller uses a spotpoint to
realize the dualport cycle.
If MemAccess is set to Denied and CpuAccess is disabled, dualport access is not possible.
22
Basics
The following table shows how the dualport is realized depending on the used system setting:
Mem
Access
Cpu
Access
Read
Map
Int.
Write
Map
Int.
Read
Shadow
Write
Shadow
Read
Map
Ext.
Write
Map
Ext.
GAP
Enable
gap
gap
gap
spot
spot
spot
GAP
Denied
gap
gap
gap
CPU
Enable
cpu
cpu
cpu
cpu
cpu
cpu
CPU
Denied
cpu
cpu
cpu
cpu
cpu
cpu
Denied
Enable
spot
spot
spot
spot
spot
spot
Denied
Denied
gap: The bus arbitration interface of the CPU is used for dualport access. Application performance is
only slightly influenced.
cpu: The injection interface of the CPU is used for dualport access. Application performance is more
influenced than with GAP mode.
spot: The emulation is breaked, memory access is done via CPU, emulation is continued. Application
performance is most influenced with this method.
SYStem.TimeReq
Format:
SYStem.TimeReq <time>
<time>:
23
Basics
Mode
RESet
AloneInt
AloneExt
EmulInt
EmulExt
CPU
XC161CJ
C166SV2
reset
RESetOut
MemAccess
ARAM
CPU
GAP
ROM
Monitor
MIXed
Denied
CpuAccess
Enable
Denied
Nonstop
TimeReq
1.000ms
JtagClock
CLK/4
Option
ResetMode
OWDDIS
WDTdis
Option
Overlay
Start
Standard
MonLevel
16.
InjLevel
17.
Option
TraceInt
TraceExt
TraceRes
Option
IMASKASM
IMASKHLL
TestClock
V33
WriteLimi
PERSTOP
WDTSTOP
Option
ResetExt
ONCE
ONCEReset
BOOTSTRAP
WRC
BusType
NOMUX8
CS
5
SGT
16M
CLOCK
0.5
FConCSx
0x6243
0x0
0x0
0x0
0x0
0x0
0x0
0x0
EBCMode0
0x0
AddrSelx
0x0
0x0
0x0
0x0
0x0
0x0
0x0
EBCMode1
0x0
24
SYStem.CPU
Format:
<cpu>:
XC161CJ
XC164CS
The CPU type is selected. The CPU should be selected before activating the emulator and before using the
first PER command. Selections which doesnt fit to the probe used are ignored. Be sure that the switches on
the probe have the correct setting.
SYStem.JtagClock
Format:
<rate>:
/2
/4
/8
10000000
5000000
2500000
The JTAG clock should not be faster than 25% of the CPU clock frequency.
SYStem.Option MonLevel
Monitor level
Format:
<level>:
1. 18.
The monitor system can be interrupted. The monitor level defined the level, where all lower level interrupts
are blocked.
25
SYStem.Option InjLevel
Injection level
Format:
<level>:
1. 18.
Memory access by the debug system is made by injected instructions. The INJECT level defines the priority
of this function. The inject level should be higher than the monitor level.
SYStem.Option V33
Format:
The emulator has a detection logic to detect a target power fail. This option must be set to on, if a 3.3 V
target is used.
NOTE: The C166S V2 bondout chip is specified for 5 V only.
SYStem.Option IMASKASM
Format:
If enabled, the interrupt mask bits of the cpu will be set during assembler single-step operations. The
interrupt routine is not executed during single-step operations. After single step the interrupt mask bits are
restored to the value before the step.
SYStem.Option IMASKHLL
Format:
If enabled, the interrupt mask bits of the cpu will be set during HLL single-step operations. The interrupt
routine is not executed during single-step operations. After single step the interrupt mask bits are restored to
the value before the step.
NOTE: By changing the status register through target software, this option can affect the flow of the
target program. Accesses to the interrupt-mask bits will see the wrong values.
1989-2016 Lauterbach GmbH
26
SYStem.Option ONCE
Format:
On-circuit emulation
Set to ON when using the Clip-Over-Adapter with QFP-Packages. The CPU chip on the target board is set
to tristate on RESET of the target system (Push reset key on your target).
P0.1
Target
ONCEEmulator
10K
SYStem.Option ONCEReset
Format:
Some new probes support target reset out of the probe for ONCE mode. The RSTIN input of the CPU must
be an open-drain type. Then the emulator can force an RSTIN signal on the target when an
SYSTEM.MODE or SYSTEM.UP command is executed.
RSTINTarget
Emulator
SYStem.RESetOut
Format:
Peripheral reset
SYStem.RESetOut
27
SYStem.Option BusType
Bus mode
Format:
<mode>:
ROMEN
NOMUX8
MUX8
NOMUX16
MUX16
reserved.
NOMUX8
Non-multiplexed 8 bit bus. Port 0L is data port, Port 1 and 4 are address ports.
MUX8
NOMUX16
Non-multiplexed 16 bit bus. Port 0 is data bus, port 1 and 4 are address signals.
MUX16
Multiplexed 16 Bit bus. Port 0 is address and data bus. The upper address lines
(segments) are supported on port 4.
SYStem.Option CS_Register
CS programming
Format:
SYStem.Option <cs_reg>
<cs_reg>:
FConCS[7..0]
AddrSel[7..0]
EBCMode[1..0]
For correct operation of the XC161/XC164 emulators all chip-select and address-line related registers must
be programmed before emulator is started. The address-regeneration is done by the emulator logic in
hardware. The FConCS and AddrSel registers are programmed by the emulator system. They should not be
changed later on.
A16..A22
CS0..CS7
Address
Regenerator
A16..A23 to Memory
28
SYStem.Option WriteLimit
Format:
The write strobe for the emulation RAM is limited. Ths option should be activated if chip selects with zero
tristate cycles are used.
SYStem.Option
Start-up modes
Format:
<mode>:
BOOTSTRAP
ResetExt
WRC
ResetMode
BOOTSTRAP
ResetExt
The setup after RESET is defined by the target system. The internal setups
(BOOTSTRAP, etc.) are ignored. This mode is valid for the C167 probe only.
Usually the probe can use the reset vector from the target. However some
targets supply this vector on reset of the target only (which must not be the
same time as the reset of the emulator), or the pull-down resistors didnt work
very fine (the buffers on Port 0 of the emulator need some input current). In all
this situations the internal reset vectors should be used:
SYStem.Option BusType
SYStem.Option ChipSelect
SYStem.Option Clock
SYStem.Option BOOTSTRAP
SYStem.Option WRC
SYSTem.Option Start
WRC
ResetMode
reserved.
29
SYStem.Option
Trace modes
Format:
<mode>:
TraceExt
TraceInt
TraceRes
TraceExt
TraceInt
The internal bus cycles on the bondout bus are traced. The option can be used
together with the TRACEEXT option to force a mixed trace of internal (bondout)
operations together with external cycles.
TraceRes
The dummy cycles on reset state are trace additionally (Bondout probes only).
This option is only necessary, if the trace should work through reset operation.
The MIXED trace mode (TRACEINT + TRACEEXT) is the most powerful trace function, but delivers a lot of
information that can disturb operations especially for performance and code coverage tests.
SYStem.Option
Freeze modes
Format:
<mode>:
PERSTOP
WDTSTOP
WDTSTOP
PERSTOP
30
SYStem.Option
Watchdog settings
Format:
<mode>:
WDTdis
OWDDIS
WDTdis
OWDDIS
SYStem.Option LoadCS
Startup settings
Format:
LoadCS
SYStem.Option Overlay
Format:
Overlay
31
SYStem.Option Start
Start modes
Format:
<mode>:
External
ExternalPLL
Boot
Internal
AltExternal
AltBoot
AltInternal
External
ExternalPLL
Boot
Internal
AltExternal
AltBoot
AltInternal
SYStem.Option TestClock
Clock test
Format:
TestClock
32
SYStem.Option SGT
Segmentation
Format:
<size>:
OFF
256K
1M
16M
The segmentation must be set up for all non-bondout probes. However it is recommended on the C167
bondout probe for correct address mirroring. The setup defines the reset vector in stand-alone mode.
SYStem.Option CS
Chip selects
Format:
SYStem.Option CS <size>
<size>:
0
2
3
5
The reset vector for the chip selects is defined for all C167 probes.
SYStem.Option CLOCK
PLL selects
Format:
<factor>:
0.5
1.0
2.0
2.5L
2.5H
3.0
4.5
5.0
The reset vector for the PLL multiplier is defined for all C167 probes.
33
Register Access
The XC166 devices contain 3 additional register set.
F::r
C
_
V
_
Z
_
E
_
MIP _
USR _
USR _
BNK G
S1 _
IEN _
ILV 0
Tsk
R1
R2
R3
R4
R5
R6
R7
PSW
SOV
IDX0
IDX1
MAE
MCW
0
F000
1
0
7FFF
C104
1
0
FA00
0
0
0
0
R9
R10
R11
R12
R13
R14
R15
CP
SUN
QX0
QX1
MAH
MSW
5FB3
4251
C5C6
CE5A
DCB1
3267
CFE8
FC00
FC00
0
0
0
0200
GLOBAL R0
R1
R2
R3
R4
R5
R6
R7
3A01
0
F000
1
0
7FFF
C104
1
R8
R9
R10
R11
R12
R13
R14
R15
6B94
5FB3
4251
C5C6
CE5A
DCB1
3267
CFE8
LOCAL1 R0
R1
R2
R3
R4
R5
R6
R7
0
0100
F0
0100
F0
0100
F0
0100
R8
R9
R10
R11
R12
R13
R14
R15
F0
0100
F0
0100
F0
0100
F0
0100
LOCAL2 R0
R1
R2
R3
R4
R5
R6
R7
F0
0100
F0
0100
F0
0100
F0
0100
R8
R9
R10
R11
R12
R13
R14
R15
F0
0100
F0
0100
F0
0100
F0
0100
Register.Set R0G
Register.Set R0L1
DPP1
1
DPP2
2
DPP3
3
SP
FC00
MDH
0
MDL
0
MDC
0
CSP
0
IP
0
QR0
0
QR1
0
MAL
0
MRW
0
34
Register Access
Exception Control
Schematics
RSTIN Line
Vcc
X.Enable
10K
RSTIN(Target)
RSTIN(CPU)
X.Activate
or
X.Pulse
NMI
VDD
10K
NMI- Target
>=1
X.Enable-
&
NMI- Cpu
X.Pulse-
35
Exception Control
eXception.state
Exception control
Format:
F::x
exception
OFF
ON
RESet
eXception.state
Activate
OFF
RSTIN
NMI
Enable
OFF
ON
RSTIN
NMI
Trigger
OFF
ON
RSTIN
RSTOUT
NMI
TRAP
PEC
BUSIDLE
CPUIDLE
ClockFail
Pulse
eXception.Activate
Pulse
OFF
RSTIN
NMI
Pulse
Single
Width
1.000us
PERiod
OFF
ON
0.000
Force exception
Format:
Format:
Format:
eXception.Activate OFF
RSTIN
NMI
OFF
36
Exception Control
eXception.Enable
Enable exception
Format:
Format:
Format:
eXception.Enable ON
Format:
eXception.Enable OFF
RSTIN
NMI
ON
OFF
eXception.Trigger
Trigger on exception
Format:
Format:
Format:
Format:
Format:
Format:
Format:
Format:
Format:
37
Exception Control
Format:
Format:
Format:
Format:
eXception.Trigger OFF
Format:
eXception.Trigger ON
RSTIN
RSTOUT
NMI
TRAP
PEC
BUSIDLE
Trigger on Busidle.
CPUIDLE
Trigger on Cpuidle.
ClockFail
Pulse
Trigger on Pulse.
ON
OFF
38
Exception Control
eXception.Pulse
Stimulate exception
Format:
Format:
Format:
eXception.Pulse OFF
RSTIN
NMI
OFF
39
Exception Control
Shadowing
Shadow Memory
Format:
MAP.RAM <range>
The XRAM area can be supported by the emulator. When mapping external memory to this areas, the
memory can be used as shadow memory.
MAP.RAM 0xc000--0xdfff
Dump
E:0xc000
40
Shadowing
Function
For high-speed emulation of external FLASH memories the standard emulation memory can be too slow.
The target adaptet contains 2 sockets for 2 512K*8 RAMs (10..15ns). By setting the DIP switches on the
adapter board, the CS0- line is routed to this memory and the connection to the target system is opened.
The WRL- and WRH- lines are used for loading this memory.
DIP Switch
CS0- (Target)
CS0A[19..1]
A[0..18]
A[0..18]
D[7..0]
D[7..0]
RD-
OE-
OE-
WRL-
WE-
WE-
RAM 512K*8
RAM 512K*8
D[15..0]
WRH-
41
Bondout Trace
The bondout bus delivers information on the instruction pointer, the opcode, the operand data (result or
operation) and the source and destination address. The bondout trace system makes filtering and dequeing
of this busses to build qualified trace and trigger information. Valid trigger information is highlighted in the
trace.
ADD1
ADD2
IP
Instruction Pointer
OPC
Opcode
OD
MACH,MAC
MAC Data
DPP
INJ
NI
BSEL
ILVL
Every operation is shown in on trace frame. The IP address belongs to the source and destination address
and the operand data.
Analyzer Modes
The analyzer can work in 3 different modes:
TraceInt
All cycles inside the CPU are traced, the external bus cycles are not
traced.
TraceExt
Only external bus cycles are traced. The internal breakpoints (OD, etc.)
can be used for emulation break, but not for analyzer control.
TraceInt+TraceExt
(TraceMixed)
In this mode the internal CPU cycles as well as the external bus cycles
are traced.
42
Bondout Trace
Bondout Breakpoints
Format:
<mode>:
Read
Write
Program
Data[.<size>] <data>
<size>:
auto
Byte
Word
<data>:
<value>
<range>
<mask>
The breakpoint system is based on the bondout bus. The breakpoint information is filtered out of the
program counter (instruction pointer), the operand read and write addresses and the resulting data of the
operation. Every breakpoint can be qualified by a data word, byte, range or pattern.
Break.Set
flags /write
Break.Set
v.range(flags) /write
Break.Set
flags /read
Break.Set
sieve /program
Break.Set
sieve /p /hard
43
Format:
<mode>:
Alpha
Beta
Charly
Delta
Read
Write
Program
Data[.<size>] <data>
<size>:
auto
Byte
Word
<data>:
<value>
<range>
<mask>
As all trace records are synchronized, and no prefetches are on the trace bus, triggering and selective
sampling is very easy with the FIRE emulator. By using the program address qualifier, triggering on local
variables is possible. Every qualifier is combined with a data qualifier.
Alpha
Beta
+
Charly
Instruction Address
IP Qualifier
Delta
Data
Data (Result)
Data Qualifier
Data
44
trigger.program if ab
trigger.trace if ab
;
;
;
;
;
;
;
;
;
sample if ab
;
;
;
;
;
trigger.trace if ab
45
sample if ab
;
;
;
;
sample if ab
;
;
;
;
;
;
46
Code Coverage
As prefetches are filtered by the bondout, the code coverage is 100% valid. The trigger system has 2 areas
for code coverage with 1 MByte each. There are no restrictions on memory used by the program code. The
code coverage works for external memory, ROM, XRAM and IRAM. There is no distinguish between BOOT
ROM, ROM and external memory.
Flag Mapping
Flag mapping is done by:
Format:
MAP.CFlag <addressrange>
Format:
MAP.NoCFlag <addressrange>
MAP.CFlag
0--0xfffff
MAP.NoCFlag
47
Flag Operation
The data flag system works on all accesses with short and long addresses, in all types of memory. The flag
system has 2 areas for read and write with 1 MByte each. Stack, register and bit operations are not covered
by the flag system
The flag system works with byte resolution
Flag Mapping
Data flag mapping is done by:
Format:
MAP.Flag <addressrange>
MAP.ReadFlag <addressrange>
MAP.WriteFlag <addressrange>
Format:
MAP.NoFlag <addressrange>
MAP.NoReadFlag <addressrange>
MAP.NoWriteFlag <addressrange>
MAP.Flag
0--0xfffff
MAP.NoFlag
48
Format:
MAP.Shadow <addressrange>
Format:
MAP.NoShadow <addressrange>
The shadow memory is displayed, when the emulation is running and the
The shadow memory has 1 block with 1MByte length.
Injected Access
The C166S supports injected dualport access. A memory-memory transfer instruction is feeded to the
instruction queue. This type of dualport access can access internal and external memory, IRAM and XRAM,
as well as memory on the target system.
The injected access mode is used when CPU access is enabled (C166S only).
49
50
Special Functions
DPP( <offset> )
Returns the memory addressed by the short pointer argument. The lower 14 bits of the argument hold the
offset, the two upper bits the DPP selector.
51
Special Functions
Breakpoints
For a basic description of the breakpoint system please refer to FIRE Users Guide.
Hardware
Breakpoints
These breakpoints are used as address selectors for the trigger unit (see
FIRE Users Guide).
On-chip
Breakpoints
The following table shows realization of the logical breakpoint types in auto-mode.
Breakpoint Type
Program
Software
On-chip (If the address is mapped as ReadOnly)
On-chip (If the CPU is in running mode)
HLL
Software
On-chip (If the address is mapped as ReadOnly)
Stepmode (If HLL-Line is too complex)
Spot
Software
On-chip (If the address is mapped as ReadOnly)
Read, Write
Hardware
Alpha, Beta,
Charly, Delta,
Echo
Hardware
52
Breakpoints
Memory Classes
Memory Class
Description
D
P
Data
Program
X
R
L
B
External Area
ROM/Flash Area
Bootloader Area
Bit
C
E
A
53
Memory Classes
State Analyzer
Meaning
BYTE
Byte transfer
EXTREAD
EXTWRITE
INTCYCLE
Internal cycle
OPFETCH
Opfetch cycle
TRIGOUT0
TRIGOUT1
Word
Word transfer
For non cpu-specific keywords see non-declarable input variables in ICE/FIRE Analyzer Trigger Unit
Programming Guide (analyzer_prog.pdf).
54
State Analyzer
IP
IPY
OPC
OD
ADD1
ADD1Y
ADD2
ADD2Y
DPP
INJ
NI
BSEL
ILVL
List.Bondout
List.NoDummy
The information from the bondout busses is displayed in the way like external operations. In mixed trace
mode bondout data display is omitted, when it matches an external cycle. Cycles which sample only internal
bondout information are marked as DUMMY cycles. Cycles which contain only external information have the
EXTONLY flag set. Internal bondout cycles get the timestamp and external line information of the closest
cycle if possible. This allows the display of timestamp and external lines even when the processor has no
external bus activities. Variable accesses can be displayed in HLL form even for register and stack variables
(Var command).
55
State Analyzer
Port Analyzer
Group
Description
NMI-
MISC
Line NMI-
RSTIN-
MISC
Line RSTIN-
P000 .. P015
P0
P100 .. P115
P1
P208 .. P215
P2
P2000 .. P2002
P20
P2004 .. P2005
P20
P2012
P20
Port P2012
P300 .. P313
P3
P315
P3
Port P315
P400 .. P407
P4
P500 .. P515
P5
P600 .. P607
P6
P704 .. P707
P7
P900 .. P905
P9
Name
Group
Description
NMI-
MISC
Line NMI-
RSTIN-
MISC
Line RSTIN-
P100 .. P113
P1
P301 .. P311
P3
P313
P3
Port P313
P315
P3
Port P315
P500 .. P507
P5
P510 .. P515
P5
P900 .. P905
P9
56
Port Analyzer
Group
Description
NMI-
MISC
Line NMI-
RSTIN-
MISC
Line RSTIN-
P000 .. P015
P0
P100 .. P115
P1
P2000 .. P2001
P20
P2004 .. P2005
P20
P2012
P20
Port P2012
P301 .. P313
P3
P315
P3
Port P315
P400 .. P407
P4
P500 .. P515
P5
P900 .. P905
P9
57
Port Analyzer
Technical Data
Mechanical Dimensions
Dimension
LA-9595
M-XC161
ET128QF63
58
Technical Data
Dimension
LA-9596
M-XC164CS
4250
5000
FRONT VIEW
TOP VIEW
ALL DIMENSIONS IN MILS
PIN1
ET100QF49
750
1900
1650
ET128QF49 PIN1
450
LA-9597
3800
5100
6500
6875
M-XC164CM
750
2150
4250
PIN1 ET64QF64
FRONT VIEW
5000
TOP VIEW
ALL DIMENSIONS IN MILS
450
4225
6500
6875
59
Technical Data
Adaptions
CPU
Adaption
XC164CS
XC164D
XC164N
XC164S
ET100-QF49
XC161CJ
XC161CS
XC167CI
ET144-QF63
60
Technical Data
Adapters
Socket CPU
Adapter
ET100-QF49
YA-1091 ET100-EYA-QF49
Emul. Adapter for YAMAICHI socket ET100-QF49
XC164CS
XC164D
XC164N
XC164S
8
6
56
SIDE VIEW
66
18
14
TOP VIEW (all dimensions in mm)
61
Technical Data
Socket CPU
Adapter
ET144-QF63
YA-1111 ET144-EYA-QF63
Emul. Adapter for YAMAICHI socket ET144-QF63
XC161CJ
XC161CS
XC167CI
8
6
69
SIDE VIEW
69
17
18
Operation Voltage
This list contains information on probes available for other voltage ranges. Probes not noted here supply an
operation voltage range of 4.5 5.5 V.
62
Technical Data
Operation Frequency
Module
CPU
F-W010
F-W110
S-W010
S-W110
CHIP
LA-9595
LA-9595
LA-9597
LA-9596
LA-9596
LA-9597
LA-9597
LA-9597
LA-9596
LA-9596
LA-9597
LA-9597
LA-9595
XC161CJ
XC161CS
XC164CM
XC164CS
XC164D
XC164GM
XC164KM
XC164LM
XC164N
XC164S
XC164SM
XC164TM
XC167CI
33.0
33.0
33.0
33.0
33.0
33.0
33.0
33.0
33.0
33.0
33.0
33.0
33.0
40.0+
40.0+
40.0+
40.0+
40.0+
40.0+
40.0+
40.0+
40.0+
40.0+
40.0+
40.0+
40.0+
24.8
24.8
24.8
24.8
24.8
24.8
24.8
24.8
24.8
24.8
24.8
24.8
24.8
40.0+
40.0+
40.0+
40.0+
40.0+
40.0+
40.0+
40.0+
40.0+
40.0+
40.0+
40.0+
40.0+
40.0
40.0
40.0
40.0
40.0
40.0
40.0
40.0
40.0
40.0
40.0
40.0
40.0
TRACE HEAD
RAM
63
Technical Data
Support
Probes
LA-9606
XC161CJ
ET144-QF63
XC161CS
ET144-QF63
XC164CM
ET64-QF64
XC164CS
ET100-QF49
XC164D
ET100-QF49
XC164GM
ET64-QF64
XC164KM
ET64-QF64
XC164LM
ET64-QF64
XC164N
ET100-QF49
XC164S
ET100-QF49
XC164SM
ET64-QF64
XC164TM
ET64-QF64
XC167CI
ET144-QF63
LA-9595
LA-9597
LA-9596
LA-9597
LA-9596
LA-9597
LA-9595
YES
YES
YES
YES
YES
YES
YES
YES
INSTRUCTION
SIMULATOR
YES
YES
YES
YES
YES
YES
YES
YES
POWER
INTEGRATOR
ICD
MONITOR
YES
YES
YES
YES
YES
YES
YES
YES
ICD
TRACE
ICD
DEBUG
XC161CJ
XC161CS
XC164CM
XC164CS
XC164D
XC164GM
XC164KM
XC164LM
FIRE
ICE
CPU
Available Tools
YES
YES
YES
YES
YES
YES
YES
YES
64
Support
YES
YES
YES
YES
YES
INSTRUCTION
SIMULATOR
ICD
MONITOR
YES
YES
YES
YES
YES
POWER
INTEGRATOR
ICD
DEBUG
YES
YES
YES
YES
YES
ICD
TRACE
FIRE
ICE
CPU
XC164N
XC164S
XC164SM
XC164TM
XC167CI
YES
YES
YES
YES
YES
Compilers
Language
Compiler
Company
Option
C
C
C
C166
XC16X/ST10
GNU-GCC166
EOMF-166
ELF/DWARF
DBX
C
C++
C166
GNU-CPP166
C++
CP166
Comment
IEEE
DBX
IEEE
Company
Comment
ARTX-166
CMX-RTX
Elektrobit tresos
Erika
Nucleus PLUS
osCAN
OSE Basic
OSE Epsilon
OSEK
ProOSEK
PXROS
via ORTI
via ORTI
via ORTI
(OS166)
(OS166), 3.x
via ORTI
via ORTI
65
Support
Name
Company
Comment
RTX166/-tiny
RTXC 3.2
RTXC Quadros
Rubus OS
SDT-Cmicro
uC/OS-II
2.0 to 2.92
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
ALL
CODE::BLOCKS
C++TEST
RAPITIME
DA-C
TRACEANALYZER
SIMULINK
TA INSPECTOR
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.
Timing Architects GmbH
Windows
Windows
Windows
Windows
Windows
Windows
Windows
Windows
Windows
66
Support
CPU
Tool
Company
Host
ALL
ALL
UNDODB
VECTORCAST UNIT
TESTING
VECTORCAST CODE
COVERAGE
WINDOWS CE PLATF.
BUILDER
SDT CMICRO
Undo Software
Vector Software
Linux
Windows
Vector Software
Windows
Windows
Windows
IBM Corp.
Windows
ALL
ALL
C166
67
Support
Products
Product Information
OrderNo Code
Text
LA-9606
FIRE-XC166
LA-9607
FIRE-XC166-TRIGG-64K
LA-9632
FIRE-XC166-TRIGG-512
LA-9595
M-XC161
LA-9596
M-XC164CS
LA-9597
M-XC164CM
68
Products
Order Information
Order No.
Code
Text
LA-9606
LA-9607
LA-9632
LA-9595
LA-9596
LA-9597
FIRE-XC166
FIRE-XC166-TRIGG-64K
FIRE-XC166-TRIGG-512
M-XC161
M-XC164CS
M-XC164CM
Additional Options
LA-7512
MON-166
LA-7759
OCDS-C166S-V2
69
Products