From Texas Instruments Wiki
ETB - ARM
- Launch a debug session for AM335x
- Connect to the target
- Right click on the debug session in the Debug View and select "Show all cores"
- Select the ETB (CSETB_0) and click the connect button.
- Select the CS_DAP_DebugSS in the debug view
- Go to the Scripts menu and run Enable Trace -> Enable_ETB_CortexA8_Trace
- Wait until you see three messages in the console about ETB being enabled
- Select the Cortex_A8 in the Debug View
- Go Tools -> Trace Control
- Click on the "Receiver..." button at the bottom of the dialog.
- Select ETB as the Receiver
- Click OK.
- On the toolbar click on the down arrow beside the breakpoint button (blue circle) and select Trace
- This will open the breakpoints view and there will be a Trace breakpoint listed. Right click on it and select Breakpoint properties.
- Under Hardware Configuration, expand Type and What to Trace. Select what you want to capture. Program Address is typical. Then click Ok.
- Check the box beside the breakpoint to enable it. The color should change from grey to blue.
- You can now run your application and collect data.
Viewing Trace Data
- Go to Tools -> Open Trace Connection in New View -> <select the core you enabled trace on>
- The trace display should now open.
Please watch this short clip that demonstrates the process of configuring and collecting ETB Trace data on an AM3359 (BeagleBone).
- Format: MP4
- Resolution: 1280x768x32 15fps
- Size: 4.113.972 bytes
- Duration: 2:53