2014-09-22 11:36 AM
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 gio2014-09-22 12:19 PM
Check optimization settings, and the volatility of variable.
There is often not the perceived one-to-one linear source to assembler relationship. Step the assembler view, and understand exactly what the flow really is, and look at or review the code generated.We’re moving the ST Community to a new platform to give you a better and more reliable community experience.