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/MSP430FR6922: CCS 7/MSP430FR6922 Optimization problems

Part Number: MSP430FR6922

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?

Thank you to response