SPRADN5 December 2024 F29H850TU , F29H859TU-Q1
The first step to configuring the DLT is setting up the start and stop events to log information. There are two main methods of starting or stopping logged information through the code markers (DLTAGs) or using ERAD events. The third method is security focused and prevents logged information to occur based on the enabled LINK filters. The TAG or ERAD filters control when to start or stop data logging. LINK filters are used to filter out sections of code to data log based on what current LINK has access.
The TAG based filtering has a few options such as the Start Tag Reference, Start Tag Mask, and the end tag configurations. These can be used to start or stop the DLT from logging. The mask is and’ed with the code marker that is reached in the application code. If the and’ed output of the current tag value and the tag filter start mask equals the start tag reference and the tag based filtering is enabled, then the DLT starts logging. The same is true to stop the DLT from logging using the end tags. The start/end tag reference can be any 16-bit value.
Below is a flow chart diagram that explains what happens if users have both TAG based and ERAD based conditions to start or stop logging.
Configuring the start or stop end tags can be any 16-bit value. SysConfig offers a helpful GUI to configure these.
Figure 3-2 DLT Tag Filter SysConfigThe Enable Tag based Filtering option must be selected. The configurations outlined to configure the start tag reference value and end tag reference value. The Start Tag Mask and End Tag Mask get AND'ed with the respective start or end reference values to control when the logs occur. In the above configuration, 0x5 is the start tag reference value being used and the end tag reference value of 0x20. These values are arbitrary and can be configured with any value. The code generated in SysConfig's board.c file is shown below.
Figure 3-3 DLT Initialization Snippet