Forum Discussion
Altera_Forum
Honored Contributor
14 years agoBlinking LED - stays on
I was trying to use NIOS to get an LED to blink over a set period. However, everytime the code is loaded the LED stays on. After a couple of hours of troubleshooting I added a print statement f...
Altera_Forum
Honored Contributor
14 years agoIf you make a delay by a while loop, the compiler will optimize it away. If you would like to include the delay, you either set the compiler option to not do optimization, or your should use a timer based delay function from the library.