The RH850 family is equipped with a function for the output of software tracing information in response to debug instructions embedded within the user application.
Instructions embedded within the user application can be used to analyze applications.
As part of the solutions we provide for CS+, the IDE takes advantage of DBTAG instructions, which implement the function for the output of software tracing information.
For details on the individual debug instructions, see "RH850G3M/G3MH/G3K/G3KH User's Manual: Debug Instructions". |
For the usage of debug instructions in the solutions, see the following.
See "2.15.1 Configure the trace operation" for setting the operation of software tracing.
[IE850A][Full-spec emulator][E1][E20][E2]
To refer to the output results of external tracing or internal tracing of the IE850A, use the Trace panel or the Python console.
To refer to the output results of software tracing, use the Python console.
For the imm10 values which can be output by the DBTAG instruction, the following format is defined in consideration of using each of the solutions for CS+ at the same time.
CS+ uses 0b001 as the category.
The following shows the ID numbers used in each of the solutions (values within parentheses are the full representation in the imm10 values).
0x0(0x1), 0x1(0x9), 0x2(0x11), 0x3(0x19)
0x4(0x21), 0x5(0x29), 0x6(0x31), 0x7(0x39), 0x8(0x41), 0x9(0x49), 0xa(0x51), 0xb(0x59), 0xc(0x61), 0xd(0x69)
If you wish to use DBTAG within a user application, we recommend specifying a value other than 0b001 as the category.