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;
}