I am using a global variable called i2c_process_wait_delay. This variable is used in a while loop condition, and at that time, the value of the variable is zero (0). However, the program pauses at the while loop condition, even though I set the optimization level to 'NO'. More details PFA..
i2c_process_wait_delay
while
Thanks in Advance.
I am also facing same problem.. still i didn't get any solution.
This does not happen on my side. Are you sure you have not set a breakpoint in your code ?
I have been faced with this problem before. Sometimes, no optimization or most optimization causes errors. Try with more or debug flag.
Without the code and assembly listing, it is quite difficult to guess what is happening.
Is the global var declared as volatile? How is it being modified outside of this routine's context?
Can you share more info, perhaps the project or at least the source code for this routine, and the corresponding assembly listing generated by the compiler?
Yes. sure, I don't have any breakpoint. kindly support for this.
Can you share a project with this error ?