SPRUIY2 November 2024 F29H850TU , F29H859TU-Q1
This ERAD module has an optional Program Counter trace block which helps keep track of PC discontinuity/jumps, which can in turn help track the complete sequence of software that got executed at any given point of time. The module only tracks the discontinuity in the instruction fetches/execution (non-sequential), the sequential code execution can be easily reconstructed using software. Once a trace is completed/stopped, the trace data can be read out using the debugger to reconstruct the code execution sequence. There are multiple trace modes to control when to enable tracing and when to disable tracing based on events generated by ERAD EBC events or some critical system level events.
Trace data is stored in a ram space which can be read at any time with additional status information on trace validity that can be used for reconstructing the code execution sequence. For every discontinuity, two PC values are stored, that is, the source of discontinuity and the destination.