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/TMS320F280049: "0-Register Optimizations" causes unexpected behavior

Part Number: TMS320F280049
Other Parts Discussed in Thread: C2000WARE, TEST2

Tool/software: TI C/C++ Compiler

Hi expert,

My customer is testing example code "C2000Ware_1_00_05_00 - led_ex1_blinky" on F280049 device in CCS 7.2.

They get unexpected result in C code after optimization. Could you help us explain this a bit?

Their configurations:

Not-good case:

test2 equals to 15.4567, "if" logic is not executed.

When turn off the optimization, things are good:

Thanks

Sheldon