Tool/software: Code Composer Studio
Hello everyone,
I'm working on a real time project (communication), so I need to repeat the performance test thousands of times(by making the code repeats itself automatically) to make sure the firmware will perform well in the real life when it will be executed repeatedly , when I execute the project one time there's no problem and it goes well till the end, but when I made the code repeats itself automatically ,the code stops at some point after several times of repeating , at first it stopped after the 6th time and didn't complete the last cycle ,then we commented out some unused global variables in one of the project modules, after this the code went further and didn't stop at the 6th time as before, it continued till the 176th time of repeating but then stopped again. we found the same unused global variables in another module and commented it out too, then also the code went further and didn't stop at 176, now we're doing an over night test to see if it's going to stop again or no. my question is what could be the issue with those global variables ?! I expect that it's a memory issue but still I couldn't justify that or know what scenario is happening exactly and mess up the code.
Note : there are a lot of unused variables in my code but they don't affect its performance, only those variables I commented out
unsigned long long start_time;
unsigned long long end_time;
unsigned long long diff_time;
above are the variables which make the problem, they has nothing to do with the core of the code and they were used only for measuring the time that each function take.
Thanks in advance.