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.

CCS: UIA missing Log_write1() when code optimization turned on



Tool/software: Code Composer Studio

Hello, I'm using CCS v7.2, SYS/BIOS 6.50.01.12 and UIA 2.20.00.02, running on TDA2x board's C66x DSP via XDS220 debugger.

I wrote a double buffering example using EDMA3 LLD 02.12.00.20. I have a Log_write1 before calling the core of the algorithm and one after that. When compiled with debug configuration the logs are obtained correctly and the duration view of system analyzer shows the time spent. However, when compiled with optimizations (level 2 if it makes any difference) only the first log is registered and the other one is missing so I am unable to see the execution time. Does anyone have any idea why this is happening? It is very confusing since I have another EDMA test which does simple copying and the instrumentation works fine even when the code is optimized, before and after the algorithm core.

Thank you in advance.

  • Hi Nik,
    The second call being optimized out with -o2?

    Thanks
    ki
  • Hi Ki,

    I ran -o2 optimizer on the whole code, did not exclude any code neither do I know how I could do it in the same project. It is weird that all of the logs work fine when compiled in debug configuration so I can cross out the possibility of the EDMA code messing something up in the meantime. Has there been any reports on this so far?

    Thank you for your help.