🎉 We're happy to announce new public releases 🎉

  • SWAT v1.2r1 - Discover what's new in our latest software trace tool release. Check out theRelease Notes.
  • TriCore v6.3r1 Inspector - v1.0r9 - A family of tools that provide an automated method for identifying toolset issues in compiled output code
Contact us to get access

Recording long trace sessions and large TRD files

04-Dec-2026

Long trace sessions, such as code coverage measurement during system tests, produce large Trace Recording Data (TRD) files. A TRD file stores the raw trace data that the on-chip trace engine sends to the BlueBox and that winIDEA Analyzer streams to the PC. The longer the session, the more data the target, the BlueBox, the USB connection, and the PC disk must handle without a break.


This article first lists the PC and target setup for long sessions, and then explains why a recording can fail and how to fix it.


Before you start: recommended setup

PC
  • Multi-core CPU
  • 4 GB RAM minimum, 8 GB or more recommended.
  • NVMe SSD for the trace temporary folder, with 100 GB or more free space. Use a drive other than the system drive if possible.
  • Free USB 3.0 port for BlueBox debuggers that support it. Connect the BlueBox directly, not through a USB hub.


Debugger
  • iC5700, iC7pro or iC7max BlueBox. These have more trace RAM, which buffers short bursts of trace data when the PC can't write fast enough.


Target system
  • Target board with a trace port
  • Maximum available trace port width
  • Differential (serial) trace if the device supports it, for example Aurora Gigabit Trace on TriCore/AURIX, Power Architecture and RH850, or HSSTP on Arm Cortex.
  • PCB layout that allows the fastest trace streaming - see Hardware design guidelines


Why a recording fails

A recording stops or reports errors when one link in the chain is slower than the data it receives.


Symptom Cause See 
Trace FIFO overflow, tracing haltsThe trace engine generates data faster than the trace port can transfer it off-chip.Prevent FIFO overflow
winIDEA reports a write or disk error during recordingData arrives over USB 3.0 faster than the PC can write it to disk.Optimize data storage
Recording stops when the disk is full, or analysis fails afterwardsNot enough free space for the TRD file or for the temporary analysis data.Optimize data storage


Fix recording problems

Prevent FIFO overflow

The on-chip trace FIFO overflows when the trace engine produces messages faster than the external trace interface drains them. Tight loops are a common cause, because they generate many trace messages in a short time.

  • Make sure the trace port configuration matches the target system recommendations: maximum width, highest stable speed, differential trace if available.
  • Reduce the amount of generated trace data, see Minimize recorded data section
  • For more information, see Buffer (FIFO) overflows


Optimize data storage
  • Redirect trace data to a fast, non-system SSD with the ISYSTEM_TEMP environment variable.
  • Exclude the trace temporary folder from disk encryption software, such as BitLocker.
  • Exclude the trace temporary folder from antivirus real-time scanning.
  • Keep enough free disk space. winIDEA can warn you about low disk space
  •  If you still use a mechanical hard drive, defragment it regularly. An SSD is strongly recommended.


Redirect trace data with ISYSTEM_TEMP

By default, winIDEA writes trace data to the folder in %TEMP%. To use a different drive:

1. Open Windows Settings and search for Edit the system environment variables.

2. Select Environment Variables.

3. Under User variables, select New.

4. Enter ISYSTEM_TEMP as the variable name and a folder on the fast SSD as the value, for example, D:\iSYSTEM_Temp.

5. Select OK, and restart winIDEA.


Minimize recorded data

Record only what you need. To catch a rare event, use a trigger and qualifiers instead of recording everything. For example, a 100 µs event doesn't need a 100 GB TRD file.


Handle profiler data

Profiler analysis creates temporary data in the temporary folder. This data can be up to five times the size of the raw trace data. winIDEA deletes it after the analysis. Make sure the temporary folder has enough free space for the TRD file plus this temporary data.


See also


Was this answer helpful?