SPRADN5 December   2024 F29H850TU , F29H859TU-Q1

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2C28x vs C29x vs ARM Logging
  6. 3SysConfig
    1. 3.1 Start or Stop Logging
    2. 3.2 Capture Modes
    3. 3.3 Trigger for transferring Logs
  7. 4Interpreting DLT Logs
  8. 5Compiler Intrinsic
  9. 6DLT Tool
    1. 6.1 Visualization
    2. 6.2 Walkthrough on Tool
    3. 6.3 Add Logs to Application
    4. 6.4 Export DLT Log
    5. 6.5 CCS Theia
  10. 7Summary
  11. 8References

Add Logs to Application

There are very specific variables to data log in the example. A couple of the variables to log are sensorSample and sensorTemp. The variables that can be passed into the intrinsic can also be an element of an array. For example, if an array of size 30 is being used. The intrinsic can be passed with array[29] to data log the 30th element. Here is the code snippet to add to the reference design to log the variables. Adhering to the guidelines, at least one tag is placed in every new function scope. Within the reference design under the psfbpcmc.c file, add the following instrinsics.

 DLT Code Marker and Data Log Intrinsic
          - PSFB_updateSensedValues() Figure 6-11 DLT Code Marker and Data Log Intrinsic - PSFB_updateSensedValues()

As shown in Figure 6-11, the logging starts to the DLT log buffer since the value passed into the code marker intrinsic is 0x05 and this value matches the start reference value configured in DLT initialization.