2014-10-22 02:17 AM
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