Hi,
I wonder the problem is because of the optimization.
I suggest you cast the variable as "volatile" then try again. for example.
volatile int myval;
Have a great day,
Jun Zhang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi,
I wonder the problem is because of the optimization.
I suggest you cast the variable as "volatile" then try again. for example.
volatile int myval;
Have a great day,
Jun Zhang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------