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/TMS320F28069: SGEN function / optimisation level Problems

Part Number: TMS320F28069

Tool/software: Code Composer Studio

hello everyone ,

I am actually using sgen function , but i seems that some problemes occurred when you change the optimisation level .

When --opt_level = OFF or 0 or 1  , the following code is refreshing when you set another values in the expression tab.

But if --opt_level >= 2 the value doens't change .

I  refered me to these line :

sgen.offset =  0x3FFF; 
sgen.gain = 0x3FFF; 
sgen.freq = ((float)outputFreq_hz/maxOutputFreq_hz)*0x8000; 
sgen.step_max = (maxOutputFreq_hz*0x10000)/samplingFreq_hz; 
sgen.alpha = 0; 

Whatever i try , for example setting intial values of sgen.offset to 3FFF , in the case of --opt_level is higher than lvl 1 , there is no change sgen keep defqult values .

Have you an idea about what happening ?

Did I miss something ?

Could anyone try ?

Thank you .