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.

TMS320F28377S: data translation error in cla

Part Number: TMS320F28377S

Dear TI engineers,

Now, I used cla task1\task2\task3 tripped by timer2 to do some calculation. All of these tasks would use a function. The problem would happened in this action.

Before cla task quoted the function named sCla1TaskX, global variable uwCHxx would be assigned a related constant. The related code shown in below pic.

In order to verify uwCHxx translate specified constant, I write a debug logic in sCla1TaskX().

The correct result should be fdebug1==cCH1,fdebug2==cCH2,fdebug3==cCH3. But it is not, in fact. Also, different compiler version caused different result. When I use TI v22.6.0.LTS, if uwCHxx is even num, the result is right. If uwChxx is odd number, value is right but address is wrong. For example, if uwChxx is cCH2(1), fdebug1 would become 1. Correct result is fdebug2 equal 1.

All of variable mentioned above is define in RAMLS4, and initialization shown in pic.

So, could you give me some suggestion?

Looking forward for yours.

coke.