Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHow to use interrupt?
Hello. I want to use interrupt from USER_PIO, but I don't know how to use. I tried this sample code , but it seems that ISR is not executed. (I modified two point. *definition of...
Altera_Forum
Honored Contributor
20 years agoI'm pretty sure you provided a code snippet, but I don't see you clearing the IRQ source in either the ISR or DSR which would lead to an infinite IRQ loop.
How are you generating the IRQ? Are you sure you are actually generating an interrupt? Are you sure you are attaching to the correct vector number? Finally remember that printf is not re-entrant so if you have prints in regular code and DSR code you will need to protect against simultaneous accesses.