TriCore architecturally does not have a mechanism that would allow the CPU to be stopped when a trap (in some other architectures known as an exception) occurs. Various mechanisms can trigger traps on the core, such as null pointer dereference or data alignment errors.
Trap handler scripts help to stop the TriCore on entry to the trap handler and decode the trap that is being serviced:
The scripts can be invoked via Tools | SoC Scripts.
Trap table address is written in the BTV register. Its value can be obtained with the help of the SFR Window. In this case, the start of the trap table is on the address 0xA0000000.
1. Open the SFR Window and locate the address.
2. Configure range execution breakpoint through Debug | Hardware Breakpoints.
In the case of TriCore TC1.6.2, this trap is Internal Protection Trap - Memory Protection Null Address. For other traps consult Infineon TriCore documentation.