Hi,
I imported a project from CCSv4 and it seems the new CCSv5 compiler version are optimizing functions which are critical for my application.
I tried to modify the optimization parameter from empty to 0 but the result is the same.
Do you have any idea to fix this problem.
Example, this simple delay function below are not executed anymore :
void Loop_Xms(UInt16 x){
UInt16 Loop_1ms;
UInt16 Tune_1ms;
for (Loop_1ms = 0;Loop_1ms < x; Loop_1ms++){
for (Tune_1ms = 0;Tune_1ms < 1700; Tune_1ms++);
}
}
Please consider lot of my CCSv4 project implement this quind of functions, so add a NOP(); instruction to force compiler to execute my function is not a good solution.
Micro : MSP430F47166
Clock: External Quartz 32.768 Khz , OSC : 10MHz