Difference between revisions of "Adjusting trace timings and general troubleshooting"
|Line 48:||Line 48:|
=== The ugly ===
=== The ugly ===
== Troubleshooting ==
== FAQ ==
== FAQ ==
Revision as of 09:15, 23 September 2022
This article will explain how the trace sample timing of the J-Trace Pro can be adjusted and some general troubleshooting steps if a setup does not work out-of-the-box as it would be typically expected.
Trace Timing Configuration
In some cases a target device or board design will output trace signals that do not follow the Arm trace timing requirements. If the issue is due to an incorrect sampling point in the time domain this can be fixed with J-Trace Pro's "Trace Timing Configuration" feature.
Configuration with Ozone
The recommended way is to use Ozone. It can be used directly to set the number of used trace pins and the trace sampling delay. To access this option simply open the trace project in Ozone and go to Tools->Trace Settings.
Here you can switch between different trace sources and the number of trace pins used. Default for ETM/PTM trace is Trace Source = Trace Pins and Trace Port Width = 4-bit.
To modify the trace sampling delays open the options under Trace Timing and set the the "Override Timings" checkbox. Now either one delay for all data lines can be selected or for each individually.
If you see trace data in the instruction trace window when the target device is halted and no trace related error message is printed in Ozone console the trace setup is currently stable.
Just make sure to restart the debug session each time you adjust the timing delays so they take effect.
Via exec command
The J-Trace Pro runs a webserver application and one of its features is to adjust the trace sampling timing.
This can be done as follows:
- Connect the J-Trace Pro via Ethernet cable to a local area network.
- Connect to the J-Trace Pro via J-Link Commander to find out the assigned IP address (default is DHCP mode).
- Type the assigned IP-address into your browsers address bar and press enter. The webserver should open now.
- In the webserver main menu click on "Trace timing configuration".
- Here you can now shift the sample timing to an earlier or later moment by either adjusting all or individual trace data pins.
- Changes to the sampling delay will be take over immediately.
- For verification we recommend to start the trace session with your debugger and let it halt at main.
- If you see trace data by then without error messages from the J-Trace Pro you have a working setup.