Visible to Intel only — GUID: yik1667871630016
Ixiasoft
1. About the RiscFree* IDE
2. Getting Started with the Ashling* RiscFree* IDE for Intel® FPGAs
3. Using Ashling* RiscFree* IDE for Intel® FPGAs with Nios® V Processor System
4. Using Ashling* RiscFree* IDE for Intel® FPGAs with Arm* Hard Processor System
5. Debugging Features with RiscFree* IDE for Intel® FPGAs
6. Debugging with Command-Line Interface
7. Ashling RiscFree* Integrated Development Environment (IDE) for Intel® FPGAs User Guide Archives
8. Document Revision History for the Ashling RiscFree* Integrated Development Environment (IDE) for Intel® FPGAs User Guide
A. Appendix
3.1. Importing Nios® V Processor Project
3.2. Building Nios® V Processor Project
3.3. Setting Run Configuration to Download Nios® V Processor Project
3.4. Setting Debug Configuration to Debug Nios® V Processor Project
3.5. Setting Debug Configuration to Debug a Booting Nios® V Processor Project
3.6. Debugging Tools
5.1. Debug Features in RiscFree* IDE
5.2. Processor System Debug
5.3. Heterogeneous Multicore Debug
5.4. Debugging µC/OS-II Application
5.5. Debugging FreeRTOS Application
5.6. Debugging Zephyr Application
5.7. Arm* HPS On-Chip Trace
5.8. Debugging the Arm* Linux Kernel
5.9. Debugging Target Software in an Intel® Simics Simulator Session
Visible to Intel only — GUID: yik1667871630016
Ixiasoft
5.7. Arm* HPS On-Chip Trace
You can configure and capture the Arm HPS On-Chip Trace with Intel® FPGA Download Cable II. The following table shows the Arm* trace sources that generate instruction trace:
Arm Trace Source | Encoding Type | Description | Supported Device |
---|---|---|---|
Program Trace Macrocell (PTM) | PTM | A real-time trace module providing instruction tracing of a processor |
|
Embedded Trace Macrocell (ETM) | ETMv4 | The Arm trace source that captures data and instruction trace |
|
Follow the steps to enable and configure the Trace feature:
- Launch Ashling Arm Hardware Debugging, and click the Trace tab.
Figure 58. Trace Tab
- Click the Enable trace checkbox to enable the trace selected settings. The Trace architecture defaults to Arm Coresight. The trace selected settings appear in the following tab:
- Capture Settings
- Producer Settings
- Trigger/Filter Settings
Figure 59. Capture Settings Sub-Tab
- Under the Capture Settings tab, set this settings:
- Select On-chip.
- Select one of the following Device Buffer Configuration:
- Embedded Trace FIFO (ETF) — stores trace data in small and fixed size trace buffer.
- Embedded Trace Router (ETR) — routes the trace data to the system memory. You need to specify the RAM location and Size .
- Wrap-around — enables overwriting old trace data with the new trace data when the trace buffer is full.
Note: Wrap-around is optional. If you do not select Wrap-around, trace capture stops when the trace buffer is full.
- Under Producer Settings tab, set this settings:
- Select your preferred settings:
- Cycle Accurate Trace — captures trace on all cycles even if there is no trace to output on that cycle.
- Enable context ID — enables the tracing of the ASID and the current process ID.
- Enable timestamp — enables timestamps in your trace.
- For Encoding type, you can select ETMv4 or PTM. Refer to Table Arm Trace Source for more details.
Note: ETMv3 is an older version of ETMv4 and not supported by Intel devices.Figure 60. Producer Settings Sub-tab
- Select your preferred settings:
- Under Trigger/Filter Settings tab, click the Enable trigger checkbox.
Figure 61. Trigger/Filter Settings Tab
- Click Add to bring up the Add Trigger dialog box as shown below:
Figure 62. Add Trigger Dialog Box
- For Trace action, choose one of the following options:
- Trace include— limits trace to the selected address range
- Trace exclude— excludes trace from the selected address range
- Trace start point— starts tracing when the selected address is executed
- Trace stop point— stops tracing when the selected address is executed
- For Core, use the same core that you select in Debugger tab.
- For Access type, select the only available option — Instruction execution as instruction trace and to support trigger.
- For Trace action, choose one of the following options:
- Once you complete the configuration, click Debug.
- Open Trace view via Window > Show > View > Other > Debug > Trace. Click Fetch, decode and populate trace data button on the top right of the window to fetch trace data from the target and display in the Trace view as shown below.
Figure 63. Trace View