Tool/software:
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.
Tool/software:
When you say ...
The variable tPFC_Ctrl.Bit.OnOff is unexpected changed
... I presume you mean this variable changes value at times, or in ways, that are different from the source code.
I suspect the root cause of the problem, whatever it is, is present all the time. Building without optimization hides the problem. Building with optimization reveals the problem.
I think I can help narrow the scope of the investigation. Identify one function that is running when this ...
The variable tPFC_Ctrl.Bit.OnOff is unexpected changed
... happens. For the source file that contains this function, please follow the directions in the article How to Submit a Compiler Test Case. After preprocessing, add a comment similar to ...
/* Problem occurs here. Behavior <something> is expected. Behavior <something else> is seen instead. */
Thanks and regards,
-George