AnsweredAssumed Answered

Loop problem on an STM32F4 Discovery

Question asked by mannara.aurelio on Oct 22, 2014
Hi guys, I'm Aurelio, I'm 22 and I'm from Italy :)
Yesterday I bought an STM32F407VGT6 Discovery board, but I have a strange problem. I wrote this simple code to light the LEDs on the board when the user button is pressed:
Now the problem is that the while loop doesn't work: when I press the button nothing happen, but if I hold it down and then I reset the board the LEDs turn on and stay on even if I release the button, just like the code in the while loop is executed one time only.
Another strange thing is that if I debug the code it works really well...

I don't know what to do... Can you help me?

Thank you