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/TMS320C6655: CGTV7.4.x will turn off interrupt when do -O3 optimization at loop codes.

Part Number: TMS320C6655


Tool/software: Code Composer Studio

Hi team,

My customer used CGT V7.4.24  to do C6655 dsp code compile. They found if use -O3 option some of the loop codes will turn off the interrupt.

This will cause the high priority interrupt can't been executed at real time. 

Could you please help to confirm if there any option to turn off this behavior of compiler?

You can check by attached project.

And also I attached the .asm file of the main.c, you can search DINT and RINT, it turn off and on the interrupt.

Also CGT V8.x doesn't have this behavior, but customer can't change to CGTV8.x due to the stability reason.

Please help to fix it on CGT V7.x

thanks!

BR,
Dennyhttps://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/81/8081.test.7zmain_7424.asm