Forum Discussion
Altera_Forum
Honored Contributor
21 years agoKira,
There are a few things wrong with this code: 1. You should not be calling alt_sys_init in main. This has already been called before main gets called. Given that this function initialises hardware calling it twice might have unwanted results. 2. You are registerring for the IRQ belonging to the UART. I strongly suspect that you already have a driver in your system for the UART with it's own interrupt handler so I'm not surprised that your ISR is not getting called. 3. I'm not sure why you called alt_irq_enabled this only tells you if interrupts are enabled and as you do nothing with this result the call is not very useful.