Altera_Forum
Honored Contributor
9 years agoInterrupts using the ARM core and the GIC
I have been looking at the Altera documentation for the GIC on the Cyclone V device. Found here: ftp://ftp.altera.com/up/pub/altera_material/15.0/tutorials/using_gic.pdf
At the bottom of which (Appendix B) has some sample code. Does anyone know what the following is for:
// Define the remaining exception handlers
void __attribute__ ((interrupt)) __cs3_reset (void){
while(1);
}
void __attribute__ ((interrupt)) __cs3_isr_undef (void){
while(1);
}
void __attribute__ ((interrupt)) __cs3_isr_swi (void){
while(1);
}
void __attribute__ ((interrupt)) __cs3_isr_pabort (void){
while(1);
}
void __attribute__ ((interrupt)) __cs3_isr_dabort (void){
while(1);
}
void __attribute__ ((interrupt)) __cs3_isr_fiq (void){
while(1);
}
When I try to use the sample code it causes my program to get stuck in the __cs3_reset function. Obviously they're full of while(1); statements so the fact it gets stuck isn't that surprising, however I don't know why these are part of the 'complete code example' Any one got any ideas? Cheers