Forum Discussion
Altera_Forum
Honored Contributor
14 years agoJust a general comment, it is best to avoid doing printf's in interrupt routines. First some i/o implementations use IRQ themselves and you could end up locking the system, and second ISR should execute as fast as possible, especially if you are looking for real time performance. printf's use lots of CPU cycles.
A better way to print information from an ISR is to wake up a task that will do it once the ISR returns. (of course this only applies if you are using a multitask operating system).