Академический Документы
Профессиональный Документы
Культура Документы
TRACE32 Directory
TRACE32 Index
H8S ...........................................................................................................................................
Warning .............................................................................................................................. 5
Troubleshooting ................................................................................................................ 10
FAQ ..................................................................................................................................... 10
FAQ for Monitor 10
FAQ for Monitor H8 10
Basics ................................................................................................................................. 11
Monitor Features 11
Hardware Breakpoints 11
Monitor Files 12
Address Layout 13
Vector Table 14
Interrupt Control Mode of H8S 14
Configuration 15
Support ............................................................................................................................... 22
Available Tools 22
Compilers 25
Compilers H8_300H 25
Compilers H8S 25
Realtime Operation System 26
3rd Party Tool Integrations 26
Products ............................................................................................................................. 27
Product Information 27
Order Information 27
Version 24-May-2016
E::w.d.l
addr/line code label mnemonic comment
{
696 primz = i + i + 3;
P:0123BC 0FE5 mov.l er6,er5
P:0123BE 0AD6 add.l er5,er6
P:0123C0 0B86 adds.l #2,er6
P:0123C2 0B06 adds.l #1,er6
697 k = i + primz;
P:0123C4 01006975 mov.l @sp,er5
P:0123C8 0AE5 add.l er6,er5
P:0123CA 01006FF60004 mov.l er6,@(4,sp) ; er6,@(pri
E::w.v.f /l /c E::w.v.w
{ flags = (1, 1, 1, 1, 1, 1, 1, 1, 1, 1
sieve(); ast = (word = 0x0, count = 12346, lef
-000 sieve()
i = 0
primz = 1
k = 1073741824
anzahl = 0
Architecture-independent information:
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 system-
aware debugging. The appropriate RTOS manual informs you how to enable the OS-aware
debugging.
NOTE: Do not connect or remove probe from target while target power is ON.
b:
sys.d
This instruction is necessary when the system is restarted. When the system is active while you try to
reinitialize it, you get an error message.
3. Map the EPROM simulator. The mapping of the EPROM simulator is described in the Emulator
Reference Manual.
map.rom 0x0--0x1ffff
d.load.ubrof appl.dbg
The format of the Data.LOAD command depends on the file format generated by the compiler. The
corresponding options for all available compilers are listed in the compiler list. A detailed description
of the Data.LOAD command is given in the Emulator Reference Manual.
4. Load the monitor program. Usually the monitor program runs from address 200 in the Eprom
Simulator RAM.
Set other vector locations as required. The NMI and one of the four software traps must point into the
monitor.
sys.cpu H8S2655
sys.o advanced on
9. Set the polarity of the Reset and NMI signal according to your target.
x.respol -
x.nmipol -
x.nmibreak on
10. Start the ROM Monitor. If the RESET output of the ESI is not connected you must perform a reset
manually.
sys.up
b:
sys.d
This instruction is necessary when the system is restarted. When the system is active while you try to
reinitialize it, you get an error message.
sys.cpu H8S2655
sys.o advanced on
sys.o bv 0
sys.up
d.load.ubrof appl.dbg
The format of the Data.LOAD command depends on the file format generated by the compiler. The
corresponding options for all available compilers are listed in the compiler list. A detailed description
of the Data.LOAD command is given in the Emulator Reference Manual.
No information available:
FAQ
Monitor Features
The monitor requires no stack during startup and memory operations. A valid stack is only required for single
step and go commands (stack pointer must be set by the user). This allows to use the monitor even when
the stack is not valid. External RAM memory is not required during startup and for memory operations. This
allows to use the monitor also on not fully functional hardware. The NMI pin of the EPROM Simulator can be
used to manually stop the target program. The serial version uses the receive interrupt of the SCI to stop the
emulation.
Hardware Breakpoints
Address Breaks (Processor-Type 5)
The Address-Break-Controller of the CPU is used to provide a Read-Breakpoint which reacts on
program fetch cycles. It generates an address break interrupt which is not maskable.
In the serial version, it is helpful to use the Address-Break-Controller as one program breakpoint
in ROM and Flash areas. It doesnt work as a break before make breakpoint (see hardware
manual chapter Address Breaks), but it is the only way to stop the cpu on a specified point. For
doing this, the read-only area must be mapped as BOnchip. Then a program breakpoint is
automatically converted to a Read-Breakpoint. For example: map.BOnchip 0--1ffff
The different s-record monitor files are for the following applications:
romh8as.s1 and romh8ns.s1 are precompiled files for the serial version of the monitor with the following
configuration settings:
proctype H8S/265x
mon_imask0 0x3
mon_imask1 0x7
scichannel SCI0
scibrr 0x0A
scibase 0xFFFF78
pllfactor 0x0
The general source file is romh8.asm. This source file should not be modified, it is only included for
reference purposes.
The Rom Monitor is freely relocatable by reassembling the source. The communication area for the Eprom
Simulator is located at the fixed address 1000 to 1FFF for 8-bit EPROMs. For 16-bit EPROMs the
communication area is at address 2000--3FFF.
The serial version doesnt need a communication area. Communication with the host is done via one of the
serial interfaces of the CPU.
Vector Table
Configuration Table
The '.s1' and '.asm' files contain the first three parts of the monitor. The address layout of the default monitor
is as follows:
For the first tests of a software, the '.s1' files can be loaded with vector and configuration table. When the
vector table becomes part of the application, it is not loaded with the monitor. Instead the table is setup
according to the application. Some vectors must be set up to point into the monitor program code. The entry
points are located at the beginning of the monitor.
The Breakpoint Trap Vector can be configured by the SYStem.Option BrkVector command (0, 1, 2 or 3 can
be selected for the vectors 8, 9, 10 and 11). The default is vector 8.
The serial monitor doesn't change the interrupt control mode of the H8S, but the SCI control level is set to
high and SCI priority is set to 0x7 before every start of the emulation. So, if the emulation shall be stopped by
pressing the break button, the user must take care that the RXI interrupt isn't masked. If it is masked, then
the emulation can be stopped by triggering an NMI.
The configuration table of the monitor must always be located directly before the monitor main program
code. The default location used in binary files is 330 (hex).
0xFFFF78 = default
Selects the processor type. The ROM monitor software requires also a modification in the configuration table
for different processor types.
Default: Denied.
Nonstop Lock all features of the debugger, that affect the run-time behavior.
Nonstop reduces the functionality of the debugger to:
run-time access to memory and variables
trace display
The debugger inhibits the following:
to stop the program execution
all features of the debugger that are intrusive (e.g. action Spot for break-
points, performance analysis via StopAndGo mode, conditional break-
points etc.)
Default: Denied.
<mode>: Down
NoDebug
Go
Up
Down The CPU is in reset. Debug mode is not active. Default state and state after fatal
errors.
NoDebug The CPU is running. Debug mode is not active. Debug port is tristate. In this
mode the target should behave as if the debugger is not connected.
Go The CPU is running. Debug mode is active. After this command the CPU can be
stopped with the break command or if any break condition occurs.
Up The CPU is not in reset but halted. Debug mode is active. In this mode the CPU
can be started and stopped. This is the most typical way to activate debugging.
If the mode Go is selected, this mode will be entered, but the control button in the SYStem window jumps
to the mode UP.
Defines the number of the TRAPA-Instruction used for breakpoints and single stepping. The default is
TRAPA #0.
Default: OFF.
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.
Default: OFF.
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.
General Restrictions
Stack Memory The ROM debugger needs 44 bytes of memory on the current stack
for starting and stopping the emulation.
D Data
P Program
Available Tools
INSTRUCTION
INTEGRATOR
SIMULATOR
MONITOR
POWER
DEBUG
TRACE
FIRE
CPU
ICD
ICD
ICD
ICE
H8/3006 YES YES YES YES
H8/3007 YES YES YES YES
H8/3008 YES YES YES
H8/3044 YES YES YES
H8/3045 YES YES YES
H8/3046 YES YES YES
H8/3047 YES YES YES
H8/3048 YES YES YES
H8/3052 YES YES YES
H8/3060 YES YES YES YES
H8/3061 YES YES YES YES
H8/3062 YES YES YES YES
H8/3064 YES YES YES YES
H8/3065 YES YES YES YES
H8/3066 YES YES YES YES
H8/3067 YES YES YES YES
H8/3068 YES YES YES
H8S/2120 YES YES YES
H8S/2122 YES YES YES
H8S/2123 YES YES YES
H8S/2124 YES YES YES
H8S/2126 YES YES YES
H8S/2127 YES YES YES
H8S/2128 YES YES YES
H8S/2130 YES YES YES
H8S/2132 YES YES YES
H8S/2133 YES YES YES
H8S/2134 YES YES YES
H8S/2137 YES YES YES
H8S/2138 YES YES YES
H8S/2142 YES YES YES
H8S/2143 YES YES YES
H8S/2144 YES YES YES
H8S/2147 YES YES YES
1989-2016 Lauterbach GmbH
H8S and H8/300H Monitor 22 Support
INSTRUCTION
INTEGRATOR
SIMULATOR
MONITOR
POWER
DEBUG
TRACE
FIRE
CPU
ICD
ICD
ICD
ICE
H8S/2148 YES YES YES
H8S/2214 YES YES YES
H8S/2223 YES YES YES
H8S/2225 YES YES YES
H8S/2227 YES YES YES
H8S/2233 YES YES YES
H8S/2235 YES YES YES
H8S/2236 YES YES YES
H8S/2237 YES YES YES
H8S/2238 YES YES YES
H8S/2240 YES YES YES
H8S/2241 YES YES YES
H8S/2242 YES YES YES
H8S/2243 YES YES YES
H8S/2244 YES YES YES
H8S/2245 YES YES YES
H8S/2246 YES YES YES
H8S/2310 YES YES YES
H8S/2311 YES YES YES
H8S/2312 YES YES YES
H8S/2316 YES YES YES
H8S/2318 YES YES YES
H8S/2319 YES YES YES YES
H8S/2320 YES YES YES
H8S/2322 YES YES YES
H8S/2323 YES YES YES
H8S/2324 YES YES YES
H8S/2327 YES YES YES
H8S/2328 YES YES YES
H8S/2329 YES YES YES YES
H8S/2332 YES YES YES
H8S/2337 YES YES YES
H8S/2338 YES YES YES
H8S/2339 YES YES YES YES
H8S/2340 YES YES YES
H8S/2341 YES YES YES
H8S/2343 YES YES YES
H8S/2345 YES YES YES
H8S/2350 YES YES YES
H8S/2351 YES YES YES
H8S/2352 YES YES YES
SIMULATOR
MONITOR
POWER
DEBUG
TRACE
FIRE
CPU
ICD
ICD
ICD
ICE
H8S/2353 YES YES YES
H8S/2355 YES YES YES
H8S/2357 YES YES YES
H8S/2367 YES YES YES
H8S/2368 YES YES YES
H8S/2377 YES YES YES
H8S/2378 YES YES YES
H8S/2612 YES YES YES
H8S/2621 YES YES YES
H8S/2622 YES YES YES
H8S/2623 YES YES YES
H8S/2626 YES YES YES
H8S/2631 YES YES YES
H8S/2632 YES YES YES
H8S/2633 YES YES YES
H8S/2636 YES YES YES
H8S/2639 YES YES YES
H8S/2646 YES YES
H8S/2653 YES YES YES
H8S/2655 YES YES YES
H8SX/1642 YES YES YES
H8SX/1644 YES YES YES
H8SX/1648 YES YES YES
H8SX/1648G YES YES YES
H8SX/1648H YES YES YES
H8SX/1663 YES YES YES
H8SX/1664 YES YES YES
H8SX/1668 YES YES YES
H8SX/1668M YES YES YES
H8SX/1668R YES YES YES
H8SX/1725 YES YES YES
Compilers H8_300H
Compilers H8S
Products
Product Information
Order Information
LA-7528 MON-H8 ROM Monitor for H8/300H and H8S family on ESI
LA-7528D MON-H8-SER-UD ROM Monitor for H8/300H or H8S Serial Acc. UD