Page 8
CPU or for specific family lines, the name(s) of the family/families is/are added in brackets. Available Tools This chapter gives an overview over available Lauterbach tools for the RH850 processors. Debugger Debugging RH850 requires a Lauterbach Debug Cable together with a Lauterbach PowerDebug Module.
Page 9
SFT Trace SFT trace (software trace) requires no extra Lauterbach hardware. Trace data can be saved to the On-chip trace or it can be streamed to the debug box in real time (LPD4 mode only). In streaming mode up to 32MRec of trace data can be recorded.
Page 10
Co-Processor Debugging (GTM) Debugging the RH850 coprocessors GTM is included free of charge, i.e. there is no additional license required. For details about coprocessor debugging, see the specific Processor Architecture Manuals: • “GTM Debugger and Trace” (debugger_gtm.pdf) Multicore Debugging Lauterbach offers multicore debugging and tracing solutions, which can be done in two different setups: Symmetric Multiprocessing (SMP) and Asymmetric Multiprocessing (AMP).
Page 11
You can now search the demo folder and its subdirectories for PRACTICE start-up scripts (*.cmm) and other demo software. You can also manually navigate in the ~~/demo/rh850/ subfolder of the system directory of TRACE32. Brief Overview of Documents for New Users Architecture-independent information: •...
Page 13
Useful Tips Application Starts Running at SYStem.Up Before TRACE32 can get control of the RH850, the cpu already has started the application startup code. This is a restriction of the RH850 core! It depends on the executed startup code which peripherals are initialized and if this can cause trouble for the debugging session.
Page 15
This becomes important if the debugger should attach to an already running application which has entered the STOP- or DeepSTOP mode. TRACE32 displays the message “running (stopmode)” in the state line if the RH850 device enters the STOP- or DeepSTOP-mode. The message will switch to “running (stop occurred)” as soon as there is a wake-up event.
Page 17
Select the CPU type to load the CPU specific settings. SYStem.CPU R7F701035 If the TRACE32-ICD hardware is installed properly, the following CPU is the default setting: JTAG Debugger for RH850 R7F701035 Tell the debugger where’s FLASH/ROM on the target. MAP.BOnchip 0x00000000++0x7FFFF This command is necessary for the use of on-chip breakpoints.
Page 21
Debugging RH850 Debug Interface Modes The RH850 offers three Debug Interface Modes (JTAG, LPD1, LPD4) plus the SerialFlashProgramming mode by use of the same debug connection. • The DebugInterface modes are selected by the setting of the CPU OptionBytes. •...
Page 22
• TRACE32 command: SYStem.CONFIG DEBUGPORTTYPE LPD1 • Interface baud rate is detected/configured automatically • There are RH850 CPU versions which do not support LPD1 mode! UART Mode • For serial flash programming and OptionByte programming (no debugging!) • All CPU internal flashes can be programmed TRACE32 is configured with the commands: •...
Page 24
RAM or FLASH areas.There is no restriction in the number of software breakpoints. Onchip Breakpoints Each core of a RH850 device is equipped with 12 Onchip breakpoints. These breakpoints only can be set if the RH850 has stopped program execution.
Page 27
Access Class Description System Register (SR) access The RH850 supports 256 System Registers which are divided into 8 groups (selID) with 32 registers (regID) each. Example: The ISPR register has a regID==10 and selID==2 Using the SR: access class the System Register address is defined by: •...
Page 28
Each RH850 core (also called ProcessorElemet PEx) has it’s own set of debug registers. Each set can have up to 8 banks with 256 registers each. • Address bits(7..0) = IR register number • Address bit(11..8) = Bank number •...
Page 30
SMP debugging is only possible for cores of the same architecture. TRACE32 also supports mixed AMP/SMP operation. E.g. RH850/P1x-C devices can be controlled with two PowerView instances, one for PE5_core (ICU-M) and one controlling PE1_core and PE2_core in SMP mode.
Page 34
FLASH Programming Support Before Flash programming can work TRACE32 has to be informed about the CPU's flash memory mapping. This is done with the demo scripts in the ~~/demo/rh850/flash directory or by use of the TRACE32 AutoSetup. AutoSetup offers a convenient way to connect to RH850 single-core devices and to configure TRACE32 for flash programming.
Page 35
The big advantage of this method is that only modified flash-segments are erased/programmed. Programming is quicker and programming-stress for the FLASH is reduced. NOTE: SerialFlashProgramming of “RH850-F1x WS1.0” and “RH850/E1x FCC (R7F701Z00)” This devices do not support memory-read in UART mode. As result an UART-Error message is displayed in AREA window.
Page 36
No extra trace hardware or license is needed. NEXUS On-chip Trace Many processors of the RH850 family implement a feature to store the NEXUS messages of cores and peripheral trace clients into an on-chip trace memory. Using the on-chip trace with just a debug cable (LA-3719) requires the on-chip trace license LA-3734X.
Page 37
PowerTrace Serial. Trace tools for the parallel NEXUS AUX interface: • Preprocessor Focus II RH850 (LA-3918) in conjunction with PowerTrace II / PowerTrace III • Preprocessor RH850 (LA-3843) in conjunction with PowerTrace II / PowerTrace III The TRACE32 online help provides a “AutoFocus User’s Guide”...
Page 38
Note for OnchipTrace (optional bugfix): There are RH850 devices with a bug in the NEXUS coding for Onchip-Trace. In case of flow-errors in the trace listing please set NEXUS.SYNC ON and try again. Tracing of Data (read/write) Transactions General data tracing is enabled using the command NEXUS.DTM. This command enables the data trace for the full address space.
Page 39
Trace Filtering and Triggering with Debug Events Event Breakpoints Each core of a RH850 chip is equipped with 16 Event breakpoints. TRACE32 uses them for: • Trace-recording control: TraceOn, TraceOff, TraceEnable, TraceData, WatchPoints • Trigger control: TraceTrigger, BusTrigger, BusCount The following list gives an overview of the usage of the Event breakpoints by TRACE32:...
Page 59
Format: SYStem.Option.CFU [ON | OFF] Enables TRACE32 specific support for the RH850 CalibrationFunctionUnits (G4-core variants only!). The CalibrationFunctionUnits are only available in RH850 emulation devices. Typically the CalibrationFunctionUnits are used by other tool vendors to replace FLASH areas by Calibration-RAM.
Page 70
ResetStart RESYNC Defines the debugger’s action when a reset is detected. Default setting is ResetHalt. This option is only supported for RH850 devices with G4-core. If and how a reset can be detected is set using SYStem.Option.ResetDetection. Disabled No actions to the processor take place when a reset is detected.
Page 73
SYStem.Option (Exception Lines Enable) The RH850 supports disabling of several CPU core inputs. This can be useful to lock watchdog- or target resets. SYStem.Option.CPINT CPINT line enable Format: SYStem.Option.CPINT [ON | OFF] (deprecated) No function anymore. SYStem.Option.REQest Request line enable Format: SYStem.Option.REQ [ON | OFF]...
Page 75
SYStem.MemAccess CPU). Performance counters and event counters of RH850 CPUs can be started or stopped using on-chip breakpoints. This A-to-B mode allows to determine performance metrics for a single code block. RH850 CPUs support two different types of benchmark counters: •...
Page 88
Forces NEXUS address-sync trace messaging on all branch instructions. Note for OnchipTrace (optional bugfix): There are RH850 devices with a bug in the NEXUS coding for Onchip-Trace. If there are flow-errors in the trace listing please set “NEXUS.SYNC ON” and try again.
Page 99
Trace Connectors and Adapters Adapter for RH850 (LA-3561) Connector Function AUTO26 debug connector JTAG14 debug connector Target connector PowerTrace Serial connector for Serial Port 1 Jumper Function X130 Set: Connects pin 16 (EVTI) of the target connector to TRIGOUT of...
Page 102
This target pin-assignment requires adaptors to connect to the TRACE32 tools. LA-xxxx: Convert SAMTEC 34pin -> SAMTEC 40pin (Trace only) LA-xxxx: Split-adapter SAMTEC 34pin -> SAMTEC 40pin, RH850-14pin, RH850-motive We recommend to place the even numbered pins at the PCB border side (flex cable won't be twisted).
Page 104
This target pin-assignment requires adaptors to connect to the TRACE32 tools. LA-3899: Converter for RH850-Samtec34 pin assignment to a target with Samtec46 debug/trace connector We recommend to place the even numbered pins at the PCB border side (flex cable won't be twisted).
Need help?
Do you have a question about the RH850 and is the answer not in the manual?
Questions and answers