Tool/software: Code Composer Studio
Good morning,
I use msp430fr6922 with CCS 7.
I have problem with optimization - It is cut "if", I attached screens with code and disassembly.
If I set optimization to off(OPToff), code work fine.
If I set whole program opt to 0(OPTeveryto0), "while and if" are cut away.
If I set whole program opt to 1 (OPTeveryt1), "if" are cut away.
How shall I set optimization to work fine?