Forum Discussion
Altera_Forum
Honored Contributor
21 years agoWhy Nios II don't execute my ISR?
Hi All: I want implement a ISR in Nios II system, however, if I implement it with Nios HAL, everything is OK, the Isr call successfully, but if I implement it in alt_main(), without HAL, the inter...
Altera_Forum
Honored Contributor
21 years agoAlso take a look at the "Hello Freestanding" software example in the IDE. Basically this is the same as what monkeyboy is suggesting (that is, the example source code performs the same functions that our alt_main.c does), but is provided as a ready-to-modify documented software example. The code in Hello Freestanding performs all the normal stuff you get with starting in main() -- you can then modify it as you see fit to reduce code size. One of the things in the freestanding example is calling alt_irq_init() as monkeyboy mentioned.
Have fun!