Forum Discussion
Altera_Forum
Honored Contributor
21 years agoprintf("") in an interrupt handler
For debugging, printf's are such a useful tool, that I would like to try to circumvent the troubles associated with its use in irq routines. it says in the Nios II Software Developer’s manu...
Altera_Forum
Honored Contributor
21 years agolarsen,
The UART driver will use interrupts unless you tick the reduced drivers option in the system library config page, or you define ALTERA_AVALON_UART_SMALL. In answer to your other questions using printfs in the ISR if you have an interrupt driven UART driver is just asking for trouble so just use the polled driver as described above.