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.

PDATS to Text Converter

From Texas Instruments Wiki
Jump to: navigation, search

PDATS to Text Converter[edit]

PDATS to Text Converter (pdats2text.exe) is a stand-alone utility that converts a compressed PDATS trace file into a text file. The pdats2text utility has to be invoked to get a textual representation of the trace file. Download the utility - pdats_to_txt

Usage[edit]

The PDATS trace is a binary format and hence need a script to convert it to the textual format. The pdats2text.exe utility available with the Code Compose Studio at <CCS installation path>bin\utilities\trace_pdats_64bit> helps you to convert the PDATS format to textual format. The pdats2text utility has the following mode of invocation

pdats2text.exe <pdats_file> <text_file>
pdats2text.exe -with_access_width <pdats_file> <text_file>

Output File Format[edit]

The address trace (compressed using the PDATS format) is generated in the same folder as the program file, with the extension .pdat. For example, if the program file is c:\test\mp3decoded.out, the address trace will be generated in the c:\test\mp3decoded.pdat file. The output text file is a simple, user readable ASCII format. The listing below shows a sample output:

#address:address_type(0=DATA_READ,1=DATA_WRITE,2=INSTR_FETCH):time_stamp
0x000015f4:2:21
0x000015f8:2:22
0x000015fc:2:23
0x00001600:2:24

The first line of the file is the header. This specifies the format in which the trace record is stored. Each record is stored in the following format: <address>:<address type>:<time stamp>

  • <address> - Address to which the access occurred
  • <address_type> - The type of address. It could be one of the following:
    • 0 – The access is a DATA READ
    • 1 – The access is a DATA WRITE
    • 2 – The access is an INSTRUCTION FETCH
  • <time stamp>: The cycle at which the access occurred.


For more details on PDATS Converter and PDATS reader API refer the user guide - link.

E2e.jpg {{
  1. switchcategory:MultiCore=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article PDATS to Text Converter here.

Keystone=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article PDATS to Text Converter here.

C2000=For technical support on the C2000 please post your questions on The C2000 Forum. Please post only comments about the article PDATS to Text Converter here. DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article PDATS to Text Converter here. MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article PDATS to Text Converter here. OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article PDATS to Text Converter here. OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article PDATS to Text Converter here. MAVRK=For technical support on MAVRK please post your questions on The MAVRK Toolbox Forum. Please post only comments about the article PDATS to Text Converter here. For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article PDATS to Text Converter here.

}}

Hyperlink blue.png Links

Amplifiers & Linear
Audio
Broadband RF/IF & Digital Radio
Clocks & Timers
Data Converters

DLP & MEMS
High-Reliability
Interface
Logic
Power Management

Processors

Switches & Multiplexers
Temperature Sensors & Control ICs
Wireless Connectivity