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.

Compiler/TMS320C6713B: super loop skipped in case of Compiler Optimization level 2

Part Number: TMS320C6713B

Tool/software: TI C/C++ Compiler

Hi,

I am using CCSv7, when i increase compiler optimization level to high, the simple super loop (infinite loop) to blink is skipped and cursor goes to return statement in main function. Is there a way to tell the compiler not to skip the infinite loop??? or is it debugging configuration issue  like full debug, symbol debug etc.

int main () {

initGPIO();

while (1) {

     GPIO_Val_Reg ^= 1;

}

return 0;

}