AnsweredAssumed Answered

STM32 HAL IAR Remaining in while(x);

Question asked by Sajjad Azadfalah on Sep 8, 2017
Latest reply on Sep 8, 2017 by Alan Chambers

Hello friends

i set x=0; in timer Interruption x=0; per 1ms

in my program i using this Code


in debug i see x is 0 but CPU Remaining in while(x)

but if my while have any command work right and exit from while!!

while(x); not exit if x == 0

while(x) {for example LCD_Clear();} // exit from this while if x == 0

Is this a law in IAR or this is bug ?