Forum Discussion
Altera_Forum
Honored Contributor
15 years agogenral software problem
im writing a simple clock program for a niosII standard processor and i encountered this bug in my main loop i have an infinite loop which updates all the seven segments(DE2 board) like
w...
Altera_Forum
Honored Contributor
15 years agoYou could try and declare the variables that your isr update as volatile. It will prevent the compiler from trying to optimise your code and will force a variable read at each IOWR call.
I'm not sure this is the cause of your problem but you can always try.