Hello experts,
while debugging on the CLA, I would like to display the local variable ElecAngle. But it does not work. Trying to display it via the Expressions window didn't help either.
How can I fix it?

Thanks in advance - Bui
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.
Hello experts,
while debugging on the CLA, I would like to display the local variable ElecAngle. But it does not work. Trying to display it via the Expressions window didn't help either.
How can I fix it?

Thanks in advance - Bui
Looks like the variable is using the CLA core register MR0. Could you try viewing that in the Registers view?
Reagrds,
Veena
Hello Veena,
I found the cause of the problem.
when the compiler optimization is on a high level, the CLA registers MR0...MR3 are used as local variables. It can also be that the local variables are no longer needed by the optimization. Therefore the local variables can no longer be displayed correctly during debugging. The compiler optimization should be switched off. Then the local variables can be displayed normally.
Thanks Veena and have a nice weekend - Bui