SPC570 IACKR - HighTec IDE - Interrupt
Hi guys,
i have the following problem.
I configure the interrupts as follow.
INTC.BCR.R = 0;
INTC.IACKR[0].R = (uint32_t)&VectorTable[0];
INTC.CPR[0].B.PRI = 0;
// enable interrupts
__asm__ volatile ("wrteei 1" : : : "memory");After that, i configure one Etimer Channel with timer compare interrupt. The interrupt flag will set in etimer module, but the ISR will never be called.
If i change my configuration to the following, the interrupts will come:
INTC.BCR.R = 0;
INTC.IACKR[0].R = (uint32_t)&VectorTable[0];
(void)INTC.IACKR[0].R; // read back
INTC.CPR[0].B.PRI = 0;
// enable interrupts
__asm__ volatile ("wrteei 1" : : : "memory");I would be happy if someone could explain what I'm doing wrong, because I can't find anything about it in the reference manual.
best regards
david
