Hi all,
I'm using an OMAP3630 and the DSP/BIOS version 5.33.04, I'm trying to get the time that an very symple funtion takes to be exectuted, this function only performs a couple of sums and two comparations, to sum up, looking at the assembly code in this function only a couple of ADD and CMPLTU assembly instructions are performed. This make me thing that the function will take very few millisecons, even nanoseconds, but I get surprised that the STS viewer reports an average of 500 ms and a maximum value of 18 seconds!! how is this possible if the execution of the program only takes 2 seconds??
Below are the steps I followed to configure my STS object:
1. TCONF configuration:
var dmmCheckTimingStats = prog.module("STS").create("dmmCheckTimingStats");
dmmCheckTimingStats.comment = "DMM Check API timing statistics";
dmmCheckTimingStats.unitType = "Low resolution time based";
2. C source file:
cregister volatile unsigned int TSCL;
extern STS_Obj dmmCheckTimingStats;
STS_set(&dmmCheckTimingStats, TSCL);
myfunction ( data1, data2);
STS_delta(&dmmCheckTimingStats, TSCL);
Why Im getting so high times?
Do you have any clue what Im doing wrong?
Thanks and best regards,
Armando