Interrupts- AT91SAM7X and Crossworks

Hi, I’m using Crossworks FreeRTOS demo for AT91SAM7X. When I try to use interrupts for example from SPI my program freezes at undef_handler in AT91SAM7_Startup. I suppose i have to add something to startup but I can’t figure out what exactly.

Interrupts- AT91SAM7X and Crossworks

You need to configure the interrupt controller to tell it where the interrupt handler is. Look at the examples in the FreeRTOSDemo directory to see how.