NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.

DM36x Trace

From Texas Instruments Wiki
Jump to: navigation, search

ETB[edit]

Setup[edit]

If you are not using CCSv5.3.0 or newer then there are some files you need to add to your installation.

  1. Download this Media:DM36x_ETB.zip
  2. Extract DM365.xml and DM368.xml and place them in /ccsv5/ccs_base/common/targetdb/devices
  3. Extract device_dm36x.xml and place it in /ccsv5/ccs_base/emulation/analysis/xmldb/trace_config/devices
  4. Run ccstudio.exe -clean This ensures that the cache of the device database is updated
  5. You will need to update your target configuration files (.ccxml). Simply just go and uncheck the device and check it again on the basic tab.

Configuring ETB[edit]

  1. Launch a debug session for DM36x
  2. Connect to the ARM9
  3. Right click on the debug session in the Debug View and select "Show all cores"
  4. Expand the Non Debuggable Devices node
  5. Select the ETB (ETB11_0) and click the connect button.
  6. Select the ARM9 in the Debug View
  7. Go Tools -> Trace Control
  8. Make sure the ARM9 tab is selected in the dialog.
  9. Click on the "Receiver..." button at the bottom of the dialog.
  10. Select ETB as the Receiver and click OK. Note that there may be a pause of 10-20 seconds before the properties show up in the Trace Control Dialog.
  11. Click OK again to exit the trace control dialog.

Enabling Trace[edit]

  1. On the toolbar click on the down arrow beside the breakpoint button (blue circle) and select Trace
  2. This will open the breakpoints view and there will be a Trace breakpoint listed.  Right click on it and select Breakpoint properties.
  3. Under Hardware Configuration, expand Type and What to Trace.  Select what you want to capture.  Program Address is typical. Then click Ok.
  4. Check the box beside the breakpoint to enable it.  The color should change from grey to blue.
  5. You can now run your application and collect data.
  6. If your program runs past the exit point you may not be able to see trace data.  In this case put a breakpoint on your last line of code.

Viewing Trace Data[edit]

  1. The trace display may have opened automatically after configuring ETB.  If not you will need to open it.
  2. Go to Tools -> Open Trace Connection in New View -> <select the core you enabled trace on>
  3. The trace display should now open.


Validation Status[edit]

Notes which version of CCS the instructions were verified with.

  • Windows: CCSv5.2.1.00018 + xml files noted in setup instructions PASSED