Everything
2.14.10 Output information by embedding debug instructions

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.

Remark

For details on the individual debug instructions, see "RH850G3M/G3MH/G3K/G3KH User's Manual: Debug Instructions".

(1)

Usage of debug instructions in the solutions

For the usage of debug instructions in the solutions, see the following.

(2)

Setting the operation of software tracing

See "2.14.1 Configure the trace operation" for setting the operation of software tracing.

(3)

The output results 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.

 

[Simulator]

To refer to the output results of software tracing, use the Python console.

(4)

imm10 for DBTAG

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.

 

[9:3]: ID number

[2:0]: Category

 

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).

 

-

Exclusive control checking tool

0x0(0x1), 0x1(0x9), 0x2(0x11), 0x3(0x19)

-

Debugging CAN bus reception procedures

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.