Hi,
Can anyone help me how to generate an isntruction trace file in code composer studio.
Thanks
sandeep
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
With simulation, you can read about it here: http://www.tiexpressdsp.com/index.php/PDATS_Trace
Or with hardware: http://www.tiexpressdsp.com/index.php/XDS560_Trace
Hi steve,
Thank you for your reply.
i had followed the instructions presented in wiki and i observed the trace in pdat format is getting generated, but the address in the trace file does not match with the ones in the actual program.i'm using the c5510 device simulator. can u please let me know if i need to change any settings such that both the addresses are same.
I'm using the following code and code composer version is 3.1.0
void main(void)
{
int i;
int a = 10, b =5, c= 0;
if(a== 10 && b ==5)
c=5;
else
c=6;
fun1();
}
Addresses for instructions (a = 10 , b = 5) are present in the trace file but the addresses correponding to "if" condition are not present in the trace file.
Gel file i had used is as follows:
GEL_Go(main);
GEL_DriverString("START_PDATS_COLLECTION") ;GEL_TextOut("start of trace\n");
GEL_Go(fun1);
GEL_DriverString("STOP_PDATS_COLLECTION") ;
GEL_TextOut("end of trace\n");
// Output the text in GEL output window
GEL_TextOut("End of Step 1\n"); .
Thanks in advance
sandeep
Hi Sandeep,
PDATS trace is not available on C5510 simulator and I am not sure how the trace got generated.
Supported configuration - http://www.tiexpressdsp.com/index.php/PDATS_Trace#Supported_Configuration
regards,
Mani
Hi mani,
when we configure the simulator for c5510 there are some options "Generate address trace". Ienabled the option and the trace is getting generated.But that option is not available for C6416 Cycle simulator. Please let me know if we need to enable the trace from different options
thanks
sandeep
Hi Sandeep,
C6416 cycle accurate simulator support traces in CCSv3.3 with Service Release 12 version. I believe you are using CCSv3.1 and this version doesn't support the trace generation for C6416.
If you get CCSv3.3 SR12 then you need to modify "sim6416.cfg" config file to enable traces. For more details - http://www.tiexpressdsp.com/index.php/PDATS_Trace#Configuration_File_Changes
About C5510 Simulator - we don't support this feature anymore, so it's difficult to support if the feature has any issue. Secondly Your post doesn't clarify anything on the expected data in the trace file. The generated trace files gives info on the memory address accessed by the CPU.
regards,
Mani