AnsweredAssumed Answered

program stuck in if(true) condition

Question asked by montagnani.giovanni_ on Sep 22, 2014
Latest reply on Sep 22, 2014 by Clive One
hi all,
i work with stm32f4 and keil uv5
my program seems stuck in if condition
my code is
while(1)
        {
            if(i==0)
            {
                break;
            }
        }
and my debugger says that the program stops in the if despite i is zero!

have you experienced something like that?
do you know a possible explanation?

thank you
gio

Outcomes