Using Trace32 (currently in simulation mode, but will be using real hardware as well) I'm running a demo program. I want to trace both function calls and variables (data trace), so when I break I run the following:
trace.EXPORT.CSVFunc <funcfile>
PRINTER.FILE <varfile>
WinPrint.Trace.ListVar %hex var1 var2 var3
This gives two resulting files. The first with function calls which includes positive timestamps (in ns resolution). The second with data access (reads and writes) but this contains negative timestamps (with 100 ns resolution). So far I have not been able to find any way of generating different timestamps for either of the exports, and I have also not been able to correlate the times in any way. If I assume that the timestamp from the last line in my is the same as 0 time for , I get the correct magnitude of the timestamps from , but they are still off by too much. I know from the code that certain write updates is between specific function entry/exit so I can see that it is off.
Anyone else have used these two exports in combination? Are there any other way of getting the "current time" that is using translated to format, or vice versa? Or am I using the wrong exports maybe? I haven't found any other good export commands, but there are so many that I can be missing an obvious one.