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.
What compiler version are you using? I recommend updating to the latest (currently 6.1.13) as described here.
If you have a need for reduced interrupt latency then you should be using the --interrupt_threshold compiler option as described in the compiler guide. Keep in mind that will only apply to code you are compiling (i.e. libraries like RTS library should be recompiled with that option).
I am using Code Composer Studio 3.3, when I look from the help menu I see the Code Generation Tools version as v6.0.8. I will try updating it.
The current interrupt threshold is 5000. Do you recommend to reduce the interrupt threshold value?
Definitely update the compiler as that is a really old version. The interrupt threshold is up to you. You need to determine how much latency is acceptable for your application.
Elric,
Can you show an example of assembly output code from your program where the v6.0.8 compiler did not adequately address the Advisory 1.3.4 "Back-to-Back SPLOOPs" errata? As long as the work-around is applied to any SPLOOP pairs that are too close, there should not be a problem with interrupts affecting the functionality of any of the SPLOOPs.
It is much less common now to require the DINT/EINT wrapper with the SPLOOP construct than it was with the older Software Pipelining technique. In fact, I would expect the only reason to use the DINT/EINT wrapper should be for a critical loop where speed is more important than the resulting interrupt latency.
RandyP,
I suspect the problem may be valid for only the library functions such as sprintf. Using the library functions like sprintf lead to CPU stalling. But in case, we just encapsulated every SLOOP with clear and restore interrupts which may be a very very wrong idea. There is no output code for sprintf, it is just stated as a SLOOP in the assembly output file.
As I said we were using an old version of compiler. I updated the compiler but couldn't investigate the matter because of other issues. I will look to this and report the new situation here.