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.
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 halts | The 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 recording | Data 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 afterwards | Not enough free space for the TRD file or for the temporary analysis data. | Optimize data storage |
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.
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.
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.
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.