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

Export DLT Log

After inserting all the compiler intrinsic, exporting out of the device can be easily done by reading from the FIFO and calling the DLT export package software API. Inside of a background loop the following code snippet can be used to send out the DLT package.

The below empties out the content from the DLT log buffer and writes to an API to export the data out of the device. The DLT interrupt content is used to set the empty_dlt_fifo flag when the FIFO reaches 500 elements.

 DLT Code Marker and Data Log Intrinsic - psfb_main.c Figure 6-12 DLT Code Marker and Data Log Intrinsic - psfb_main.c
 DLT Interrupt Content Figure 6-13 DLT Interrupt Content